Class Traveler<TLayer>
A traveler agent tries to move from start to goal. He/she may use different modalities for that purpose.
The agent removes himself/herself from the simulation after fulfilling this task.
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: SOHMultimodalModel.Model
Assembly: SOHMultimodalModel.dll
Syntax
public class Traveler<TLayer> : MultiCapableAgent<TLayer>, IAgent<TLayer>, IModalCapabilitiesAgent, IAgent, ITickClient, IEntity, IModelObject, IWalkingCapable, ICarSteeringCapable, IBicycleSteeringAndRentalCapable, IBicycleSteeringCapable, ISteeringCapable, IPassengerCapable, IPositionable, ICarRentalCapable, IFerryPassenger, ITrainPassenger where TLayer : IMultimodalLayer
Type Parameters
Name | Description |
---|---|
TLayer |
Properties
| Improve this Doc View SourceGoalPosition
The position this agent tries to reach.
Declaration
public Position GoalPosition { get; set; }
Property Value
Type | Description |
---|---|
Position |
SourceGeometry
A traveler agent tries to move from start to goal. He/she may use different modalities for that purpose.
The agent removes himself/herself from the simulation after fulfilling this task.
Declaration
public Geometry SourceGeometry { get; set; }
Property Value
Type | Description |
---|---|
NetTopologySuite.Geometries.Geometry |
TargetGeometry
A traveler agent tries to move from start to goal. He/she may use different modalities for that purpose.
The agent removes himself/herself from the simulation after fulfilling this task.
Declaration
public Geometry TargetGeometry { get; set; }
Property Value
Type | Description |
---|---|
NetTopologySuite.Geometries.Geometry |
Methods
| Improve this Doc View SourceFindMultimodalRoute()
Searches for a MultimodalRoute from current position to the goal.
Declaration
protected virtual MultimodalRoute FindMultimodalRoute()
Returns
Type | Description |
---|---|
MultimodalRoute | The found multimodal route. |
Init(TLayer)
A traveler agent tries to move from start to goal. He/she may use different modalities for that purpose.
The agent removes himself/herself from the simulation after fulfilling this task.
Declaration
public override void Init(TLayer layer)
Parameters
Type | Name | Description |
---|---|---|
TLayer | layer |
Overrides
SOHMultimodalModel.Model.MultiCapableAgent<TLayer>.Init(TLayer)
|
Improve this Doc
View Source
ModalChoices()
Defines which modal choices are used by the
Traveler
to move.
Declaration
protected virtual IEnumerable<ModalChoice> ModalChoices()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ModalChoice> |
Tick()
A traveler agent tries to move from start to goal. He/she may use different modalities for that purpose.
The agent removes himself/herself from the simulation after fulfilling this task.
Declaration
public override void Tick()
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.Tick()
Implements
SOHTrainModel.Steering.ITrainPassenger