Class Tour
Namespace: SOHMultimodalModel.Planning
Assembly: SOHMultimodalModel.dll
Syntax
public class Tour : IEnumerator<Trip>
Constructors
Tour()
Declaration
public Tour()
Tour(ISimulationContext, Boolean, Boolean)
Creates a new Tour for and working, part-time working or unemployed agent.
Declaration
public Tour(ISimulationContext context, bool worker, bool partTimeWorker)
Parameters
Type | Name | Description |
---|---|---|
ISimulationContext | context | The simulation clock with current tick, step and realtime. |
System.Boolean | worker | The flag indicating that this plan is for a working agent. |
System.Boolean | partTimeWorker | The flag indicating that this is for an agent, only working in noon. |
Properties
ActionOrder
Declaration
public TripReason[] ActionOrder { get; set; }
Property Value
Type | Description |
---|---|
TripReason[] |
Current
Gets the current Trip for the current simulation time.
Declaration
public Trip Current { get; }
Property Value
Type | Description |
---|---|
Trip |
Trips
Gets the ordered sequence of trips.
Declaration
public List<Trip> Trips { get; }
Property Value
Type | Description |
---|---|
List<Trip> |
Methods
Dispose()
Declaration
public void Dispose()
MoveNext()
Moves to the next Trip when the time is coming and actions are available.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean | Returns true, when the cursor moved to the next trip. |
Reset()
Resets the day plan iterator.
Declaration
public void Reset()