starling_sim.basemodel.trace.events
This module contains event classes that compose agents’ traces
Module Contents
Classes
This class represents the events contained in the trace |
|
This event describes the generation of a traced element. |
|
This event describes an agent moving |
|
This event describes the route of an agent |
|
This event describes a position change of an agent |
|
This event describes the a waiting agent |
|
This event describes an idle agent |
|
This event describes a status change of an agent service. |
|
This event describes a user request |
|
This event describes the processing of a Stop |
|
This event describes a staff operation |
|
This event describes an agent getting a vehicle |
|
This event describes an agent returning a vehicle |
|
This event describes an agent leaving the simulation |
|
This event describes an agent reaching its destination |
|
This event describes an agent leaving the simulation. |
- class starling_sim.basemodel.trace.events.Event(time, message='')
This class represents the events contained in the trace
It should be extended to describe the different kinds of events of the agents
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.InputEvent(time, element, message='')
Bases:
Event
This event describes the generation of a traced element.
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.MoveEvent(time, move_distance, move_duration, mode, message='')
Bases:
Event
This event describes an agent moving
- class starling_sim.basemodel.trace.events.RouteEvent(time, route_data, mode, message='')
Bases:
MoveEvent
This event describes the route of an agent
- set_route_data(route_data)
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.PositionChangeEvent(time, origin, destination, distance, duration, mode, message='')
Bases:
MoveEvent
This event describes a position change of an agent
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.WaitEvent(time, reason, waiting_time, message='')
Bases:
Event
This event describes the a waiting agent
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.IdleEvent(time, idle_duration, message='')
Bases:
Event
This event describes an idle agent
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.ServiceEvent(time, former_status, new_status, message='')
Bases:
Event
This event describes a status change of an agent service.
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.RequestEvent(time, request, message='')
Bases:
Event
This event describes a user request
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.StopEvent(time, operator, service_vehicle, trip, stop, message='')
Bases:
Event
This event describes the processing of a Stop
- set_dropoffs(dropoffs, dropoff_time)
- set_pickups(pickups, pickup_time)
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.StaffOperationEvent(time, staff, total, goal, targets=None, structure=None, message='')
Bases:
Event
This event describes a staff operation
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.GetVehicleEvent(time, agent, vehicle, message='')
Bases:
Event
This event describes an agent getting a vehicle
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.LeaveVehicleEvent(time, agent, vehicle, message='')
Bases:
Event
This event describes an agent returning a vehicle
- __str__()
Gives a string display to the event
- class starling_sim.basemodel.trace.events.LeaveSystemEvent(time, message='')
Bases:
Event
This event describes an agent leaving the simulation
- __str__()
Gives a string display to the event