Class MultiCapableAgent<TLayer>
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
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 abstract class MultiCapableAgent<TLayer> : MultimodalAgent<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 SourceActiveCapability
The currently active modal type.
Declaration
public ModalChoice ActiveCapability { get; }
Property Value
Type | Description |
---|---|
ModalChoice |
ActualTravelTime
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public int ActualTravelTime { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
AgentCapabilities
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public string AgentCapabilities { get; }
Property Value
Type | Description |
---|---|
System.String |
Bearing
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public double Bearing { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Bicycle
Holds a personal Bicycle if the agent possesses one.
Declaration
public Bicycle Bicycle { get; protected set; }
Property Value
Type | Description |
---|---|
Bicycle |
BicycleRentalLayer
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public IBicycleRentalLayer BicycleRentalLayer { get; set; }
Property Value
Type | Description |
---|---|
IBicycleRentalLayer |
BrakingActivated
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public bool BrakingActivated { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Capabilities
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public IEnumerable<ModalChoice> Capabilities { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ModalChoice> |
CapabilityCycling
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public bool CapabilityCycling { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CapabilityDrivingOwnCar
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public bool CapabilityDrivingOwnCar { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Car
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public Car Car { get; set; }
Property Value
Type | Description |
---|---|
Car |
CarParkingLayer
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public ICarParkingLayer CarParkingLayer { get; set; }
Property Value
Type | Description |
---|---|
ICarParkingLayer |
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 |
CarRentalLayer
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public ICarRentalLayer CarRentalLayer { get; set; }
Property Value
Type | Description |
---|---|
ICarRentalLayer |
CurrentlyCarDriving
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public bool CurrentlyCarDriving { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CyclingPower
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public double CyclingPower { get; }
Property Value
Type | Description |
---|---|
System.Double |
DriverRandom
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public double DriverRandom { get; }
Property Value
Type | Description |
---|---|
System.Double |
DriverType
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public DriverType DriverType { get; }
Property Value
Type | Description |
---|---|
DriverType |
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
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public int ExpectedTravelTime { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 |
FerryStationLayer
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public IFerryStationLayer FerryStationLayer { get; set; }
Property Value
Type | Description |
---|---|
IFerryStationLayer |
Gender
Gets or set the gender type of this entity, affecting the walking and running speed
Declaration
public GenderType Gender { get; set; }
Property Value
Type | Description |
---|---|
GenderType |
Gradient
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public double Gradient { get; }
Property Value
Type | Description |
---|---|
System.Double |
Mass
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public double Mass { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OvertakingActivated
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public bool OvertakingActivated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PerceptionInMeter
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public double PerceptionInMeter { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
PreferredSpeed
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public double PreferredSpeed { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
RentalBicycle
Holds a RentalBicycle if one is leased.
Declaration
public RentalBicycle RentalBicycle { get; }
Property Value
Type | Description |
---|---|
RentalBicycle |
RouteMainModalActualTravelTime
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public int RouteMainModalActualTravelTime { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RouteMainModality
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public string RouteMainModality { get; }
Property Value
Type | Description |
---|---|
System.String |
RouteMainModalRouteLength
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public int RouteMainModalRouteLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
RouteModalities
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public string RouteModalities { get; }
Property Value
Type | Description |
---|---|
System.String |
RouteModalityCount
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
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
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public bool StoreTickResult { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TrainStationLayer
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public ITrainStationLayer TrainStationLayer { get; set; }
Property Value
Type | Description |
---|---|
SOHTrainModel.Station.ITrainStationLayer |
WalkingShoes
The shoes are the physical representation of the multimodal agent within the environment.
Declaration
public WalkingShoes WalkingShoes { get; }
Property Value
Type | Description |
---|---|
WalkingShoes |
Methods
| Improve this Doc View SourceEnableCapability(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)
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
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(Mars.Interfaces.Environments.ModalChoice, Mars.Interfaces.Environments.Route)
|
Improve this Doc
View Source
Init(TLayer)
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public override void Init(TLayer layer)
Parameters
Type | Name | Description |
---|---|---|
TLayer | layer |
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.Init(TLayer)
|
Improve this Doc
View Source
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)
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
protected override bool LeaveModalType(ModalChoice modalChoice)
Parameters
Type | Name | Description |
---|---|---|
ModalChoice | modalChoice |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.LeaveModalType(Mars.Interfaces.Environments.ModalChoice)
|
Improve this Doc
View Source
Move()
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public override void Move()
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.Move()
|
Improve this Doc
View Source
Notify(PassengerMessage)
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public override void Notify(PassengerMessage passengerMessage)
Parameters
Type | Name | Description |
---|---|---|
PassengerMessage | passengerMessage |
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.Notify(SOHDomain.Steering.Common.PassengerMessage)
|
Improve this Doc
View Source
RentBicycle(Position)
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
protected RentalBicycle RentBicycle(Position position)
Parameters
Type | Name | Description |
---|---|---|
Position | position |
Returns
Type | Description |
---|---|
RentalBicycle |
ResetOutputProperties()
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
protected override void ResetOutputProperties()
Overrides
SOHMultimodalModel.Multimodal.MultimodalAgent<TLayer>.ResetOutputProperties()
|
Improve this Doc
View Source
SetRunning()
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public void SetRunning()
SetWalking()
This MultiCapableAgent<TLayer> implements different capabilities for instance: WALK, DRIVE and CYCLE
Declaration
public void SetWalking()
Implements
SOHTrainModel.Steering.ITrainPassenger