Class MultiCapableAgent<TLayer>
Inheritance
IAgent<TLayer>
MultiCapableAgent<TLayer>
Implements
IModalCapabilitiesAgent
IPassengerCapable
IWalkingCapable
ICarSteeringCapable
ISteeringCapable
ICarRentalCapable
SOHTrainModel.Steering.ITrainPassenger
Assembly: SOHMultimodalModel.dll
Syntax
public abstract class MultiCapableAgent<TLayer> : MultimodalAgent<TLayer>, IModalCapabilitiesAgent, IPassengerCapable, IWalkingCapable, ICarSteeringCapable, IBicycleSteeringAndRentalCapable, IBicycleSteeringCapable, ISteeringCapable, ICarRentalCapable, IFerryPassenger, ITrainPassenger where TLayer : IMultimodalLayer
Type Parameters
Properties
ActualTravelTime
Declaration
public int ActualTravelTime { get; }
Property Value
Type |
Description |
System.Int32 |
|
AgentCapabilities
Declaration
public string AgentCapabilities { get; }
Property Value
Type |
Description |
System.String |
|
Bearing
Declaration
public double Bearing { get; set; }
Property Value
Type |
Description |
System.Double |
|
Capabilities
Declaration
public IEnumerable<ModalChoice> Capabilities { get; }
Property Value
Type |
Description |
IEnumerable<ModalChoice> |
|
CapabilityCycling
Declaration
public bool CapabilityCycling { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
CapabilityDrivingOwnCar
Declaration
public bool CapabilityDrivingOwnCar { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
CarRadiusToStartPosition
Defines the radius from the start position within that the car is placed.
Takes the closest parking space if not set or smaller equal zero.
Declaration
public double CarRadiusToStartPosition { get; set; }
Property Value
Type |
Description |
System.Double |
|
EnvironmentLayer
Gets or initializes the whole network environment where this agent is moving on.
Declaration
public SpatialGraphMediatorLayer EnvironmentLayer { get; set; }
Property Value
Type |
Description |
SpatialGraphMediatorLayer |
|
ExpectedTravelTime
Declaration
public int ExpectedTravelTime { get; protected set; }
Property Value
Type |
Description |
System.Int32 |
|
Gender
Gets or set the gender type of this entity, affecting the walking and running speed
Declaration
public GenderType Gender { get; set; }
Property Value
PerceptionInMeter
Declaration
public double PerceptionInMeter { get; set; }
Property Value
Type |
Description |
System.Double |
|
PreferredSpeed
Declaration
public double PreferredSpeed { get; protected set; }
Property Value
Type |
Description |
System.Double |
|
RouteMainModalActualTravelTime
Declaration
public int RouteMainModalActualTravelTime { get; protected set; }
Property Value
Type |
Description |
System.Int32 |
|
RouteMainModality
Declaration
public string RouteMainModality { get; }
Property Value
Type |
Description |
System.String |
|
RouteMainModalRouteLength
Declaration
public int RouteMainModalRouteLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
RouteModalities
Declaration
public string RouteModalities { get; }
Property Value
Type |
Description |
System.String |
|
RouteModalityCount
Declaration
public int RouteModalityCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
StartPosition
Initial position at that the agent is placed.
Declaration
public Position StartPosition { get; set; }
Property Value
Type |
Description |
Position |
|
StoreTickResult
Declaration
public bool StoreTickResult { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
EnableCapability(ModalChoice, Boolean)
Sets the capability of this agent with given params.
Declaration
protected void EnableCapability(ModalChoice modalChoice, bool active = true)
Parameters
Type |
Name |
Description |
ModalChoice |
modalChoice |
Identifies the capability. |
System.Boolean |
active |
Determines if the agent has the capability or not. |
EnterModalType(ModalChoice, Route)
Declaration
protected override bool EnterModalType(ModalChoice modalChoice, Route route)
Parameters
Type |
Name |
Description |
ModalChoice |
modalChoice |
|
Route |
route |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.EnterModalType(ModalChoice, Route)
Init(TLayer)
Declaration
public override void Init(TLayer layer)
Parameters
Type |
Name |
Description |
TLayer |
layer |
|
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.Init(TLayer)
IsCapabilityEnabled(ModalChoice)
Determines if given capability is active.
Declaration
protected bool IsCapabilityEnabled(ModalChoice modalChoice)
Parameters
Type |
Name |
Description |
ModalChoice |
modalChoice |
Identifies the capability. |
Returns
Type |
Description |
System.Boolean |
True, if capability is active, false otherwise |
LeaveModalType(ModalChoice)
Declaration
protected override bool LeaveModalType(ModalChoice modalChoice)
Parameters
Type |
Name |
Description |
ModalChoice |
modalChoice |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.LeaveModalType(ModalChoice)
Move()
Declaration
public override void Move()
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.Move()
ResetOutputProperties()
Declaration
protected override void ResetOutputProperties()
SetRunning()
Declaration
SetWalking()
Declaration
Implements
IModalCapabilitiesAgent
IPassengerCapable
IWalkingCapable
ICarSteeringCapable
ISteeringCapable
ICarRentalCapable
SOHTrainModel.Steering.ITrainPassenger