![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A base class for constraints. More...
#include <MSRailSignalConstraint.h>
Public Member Functions | |
virtual bool | cleared () const =0 |
whether the constraint has been met More... | |
virtual std::string | getDescription () const |
MSRailSignalConstraint () | |
Constructor. More... | |
virtual | ~MSRailSignalConstraint () |
Destructor. More... | |
Static Public Member Functions | |
static void | cleanup () |
clean up state More... | |
static void | clearState () |
Clear all constraint states before quick-loading state. More... | |
static void | saveState (OutputDevice &out) |
Saves the current constraint states into the given stream. More... | |
Static Protected Member Functions | |
static std::string | getVehID (const std::string &tripID) |
A base class for constraints.
Definition at line 39 of file MSRailSignalConstraint.h.
|
inline |
Constructor.
Definition at line 43 of file MSRailSignalConstraint.h.
|
inlinevirtual |
Destructor.
Definition at line 46 of file MSRailSignalConstraint.h.
|
static |
clean up state
Definition at line 45 of file MSRailSignalConstraint.cpp.
References MSRailSignalConstraint_Predecessor::cleanup().
Referenced by MSNet::clearAll().
|
pure virtual |
whether the constraint has been met
Implemented in MSRailSignalConstraint_Predecessor.
Referenced by MSRailSignal::constraintsAllow(), and MSRailSignal::hasInsertionConstraint().
|
static |
Clear all constraint states before quick-loading state.
Definition at line 55 of file MSRailSignalConstraint.cpp.
References MSRailSignalConstraint_Predecessor::clearState().
Referenced by MSTLLogicControl::clearState().
|
inlinevirtual |
Reimplemented in MSRailSignalConstraint_Predecessor.
Definition at line 51 of file MSRailSignalConstraint.h.
Referenced by MSRailSignal::constraintsAllow(), and MSRailSignal::hasInsertionConstraint().
|
staticprotected |
Definition at line 60 of file MSRailSignalConstraint.cpp.
References Named::getID(), MSNet::getInstance(), SUMOTrafficObject::getParameter(), Parameterised::getParameter(), MSNet::getVehicleControl(), MSVehicleControl::loadedVehBegin(), and MSVehicleControl::loadedVehEnd().
Referenced by MSRailSignalConstraint_Predecessor::getDescription().
|
static |
Saves the current constraint states into the given stream.
Definition at line 50 of file MSRailSignalConstraint.cpp.
References MSRailSignalConstraint_Predecessor::saveState().
Referenced by MSTLLogicControl::saveState().