Class RoadUser
The RoadUser is the the most abstract implementation of the ISpatialGraphEntity
within the SmartOpenHamburg model. It can be anything from a person to a vehicle that
moves on a graph managed by the ISpatialGraphEnvironment.
Inheritance
System.Object
RoadUser
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SOHDomain.Model
Assembly: SOHDomain.dll
Syntax
public abstract class RoadUser : ISpatialGraphEntity, IEntity, IModelObject, IPositionable
Constructors
| Improve this Doc View SourceRoadUser()
Standard constructor for type-initializing.
Declaration
protected RoadUser()
Properties
| Improve this Doc View SourceAcceleration
Gets or sets the acceleration of this entity in
meter per second square (m/s²)
Declaration
public virtual double Acceleration { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Bearing
Gets or sets the bearing of this entity in degree 0-360.
Declaration
public double Bearing { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
CurrentEdge
Gets or sets the current edge where the entity is currently standing on.
Declaration
public ISpatialEdge CurrentEdge { get; set; }
Property Value
Type | Description |
---|---|
ISpatialEdge |
Remarks
When this property is
|
Improve this Doc
View Source
null
the entity needs first to
be inserted on an ISpatialGraphEnvironment.
Height
Gets or sets the height of this entity in
meter (m)
.
Declaration
public virtual double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ID
Gets or set a unique identifier of this entity
used within the runtime- and agent-environment
as well as for differentiation within the output.
Declaration
public Guid ID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
IsCollidingEntity
Gets the flag, indicating that moving operations of this
entity are checked for collision with other ones.
Declaration
public bool IsCollidingEntity { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsWrongWayDriving
Gets or sets the flag indicating that the entity is moving on an opposite edge.
Declaration
public bool IsWrongWayDriving { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LaneOnCurrentEdge
Gets or sets the lane where this entity is standing on the CurrentEdge.
Declaration
public int LaneOnCurrentEdge { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
The lane is an index between
|
Improve this Doc
View Source
[0,CurrentEdge.LaneCount)
.
Length
Gets or sets the length of this entity in
meter (m)
.
Declaration
public double Length { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Mass
Gets or set the mass of this entity in
kilogram (kg)
.
Declaration
public virtual double Mass { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ModalityType
Gets the modal type restricting the entity how and where it can move on.
Declaration
public SpatialModalityType ModalityType { get; protected set; }
Property Value
Type | Description |
---|---|
SpatialModalityType |
Position
Gets or sets the position of this entity with (lon/x, lat/y) coordinate.
Declaration
public virtual Position Position { get; set; }
Property Value
Type | Description |
---|---|
Position |
PositionOnCurrentEdge
Gets or sets the current position in
meter (m)
on the CurrentEdge
Declaration
public double PositionOnCurrentEdge { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Remarks
When CurrentEdge is null this property is not relevant.
|
Improve this Doc
View Source
RemainingDistanceOnEdge
Gets the remaining distance in
meter (m)
until the CurrentEdge is passed.
Declaration
public double RemainingDistanceOnEdge { get; }
Property Value
Type | Description |
---|---|
System.Double |
Velocity
Gets or sets the current velocity of this entity in
meter per seconds (m/s)
.
Declaration
public double Velocity { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Width
Gets or sets the width of this entity in
meter (m)
.
Declaration
public virtual double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double |