Class DayPlanGenerator
This class provides the generation of sequences of Trips
based on MID2018 mobility survey of germany.
Inheritance
System.Object
DayPlanGenerator
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.Planning
Assembly: SOHMultimodalModel.dll
Syntax
public static class DayPlanGenerator
Remarks
The method CreateDayPlanForAgent(DateTime, Boolean, Boolean, IDictionary<TripReason, DateTime>) constructs a
virtual day-plan for an agent with pre-selected TripReasons.
Methods
| Improve this Doc View SourceCreateDayPlanForAgent(DateTime, Boolean, Boolean, IDictionary<TripReason, DateTime>)
This function creates a virtual day-plan based on probabilities from the MID2018 survey
for the given . The function constructs a full worker, half-time worker or
employless daily-plan and considers optional .
Declaration
public static IEnumerable<Trip> CreateDayPlanForAgent(DateTime date, bool isWorker, bool isPartTimeWorker, IDictionary<TripReason, DateTime> appointments = null)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | date | The day for which to create the plan. |
System.Boolean | isWorker | Indicates whether the agent is worker |
System.Boolean | isPartTimeWorker | Indicates whether the agent is full or part-time worker (working mostly until the afternoon) |
System.Collections.Generic.IDictionary<TripReason, System.DateTime> | appointments | Optional set of appointment with reason and point in time. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Trip> | Returns an iterator of Trips marking the point in time, when the corresponding dayplan reason is active. |
Remarks
The method CreateDayPlanForAgent(DateTime, Boolean, Boolean, IDictionary<TripReason, DateTime>) constructs a
virtual day-plan for an agent with pre-selected TripReasons.