Class DayPlanGenerator
This class provides the generation of sequences of Trips
based on MID2018 mobility survey of germany.
Inheritance
System.Object
DayPlanGenerator
Namespace: SOHMultimodalModel.Planning
Assembly: SOHMultimodalModel.dll
Syntax
public static class DayPlanGenerator : object
Remarks
The method CreateDayPlanForAgent(DateTime, Boolean, Boolean, IDictionary<TripReason, DateTime>) constructs a
virtual day-plan for an agent with pre-selected TripReasons.
Methods
CreateDayPlanForAgent(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 |
---|---|---|
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) |
IDictionary<TripReason, DateTime> | appointments | Optional set of appointment with reason and point in time. |
Returns
Type | Description |
---|---|
IEnumerable<Trip> | Returns an iterator of Trips marking the point in time, when the corresponding dayplan reason is active. |