Interface ISpatialGraphEntity
Represents a special entity type, able to use the ISpatialGraphEnvironment in which
collision and non-collision checks are performed in order to move entities along edges and nodes.
Namespace: Mars.Interfaces.Agents
Assembly: Mars.Interfaces.dll
Syntax
public interface ISpatialGraphEntity : IEntity, IModelObject, IPositionable
Properties
| Improve this Doc View SourceCurrentEdge
Gets or sets the edge the ISpatialGraphEntity is currently on
Declaration
ISpatialEdge CurrentEdge { get; set; }
Property Value
Type | Description |
---|---|
ISpatialEdge |
IsCollidingEntity
Gets the flag, indicating that moving operations of this
entity are checked for collision with other ones.
Declaration
bool IsCollidingEntity { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LaneOnCurrentEdge
Gets or sets the current lane the ISpatialGraphEntity is positioning on
Declaration
int LaneOnCurrentEdge { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Length
The length attribute will be used as following:
an agent begins at the position that is managed
by the spatial graph environment.
The back of the agent ends by the position minus
the specified length on an edge
That means that for example a car at position
15 and a length of 5 still has the position 15.
During an explore the agents position and the
length will be returned
length in meter
Declaration
double Length { get; }
Property Value
Type | Description |
---|---|
System.Double |
ModalityType
Gets the modal type restricting the entity how and where it can move on.
Declaration
SpatialModalityType ModalityType { get; }
Property Value
Type | Description |
---|---|
SpatialModalityType |
PositionOnCurrentEdge
Gets or sets the position on the current edge of this ISpatialGraphEntity
Declaration
double PositionOnCurrentEdge { get; set; }
Property Value
Type | Description |
---|---|
System.Double |