55 static void saveState(
const std::string& file,
SUMOTime step,
bool usePrefix =
true);
A single mesoscopic segment (cell)
Representation of a lane in the micro simulation.
Parser and container for routes during their loading.
handler to read only the simulation time from a state
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Callback method for an opening tag to implement by derived classes.
Parser and output filter for routes and vehicles state saving and loading.
MSRailSignal * myConstrainedSignal
rail signal for which constraints are being loaded
SUMOSAXAttributes * myAttrs
cached attrs (used when loading vehicles or transportables)
static void saveState(const std::string &file, SUMOTime step, bool usePrefix=true)
Saves the current state.
MSStateHandler(const MSStateHandler &s)=delete
Invalidated copy constructor.
std::set< std::string > myVehiclesToRemove
vehicles that shall be removed when loading state
int myRemoved
vehicles that were removed when loading state
MSLink * myCurrentLink
current link being loaded
MESegment * mySegment
segment
MSLane * myCurrentLane
current lane being loaded
static void saveRNGs(OutputDevice &out)
save the state of random number generators
const SUMOTime myOffset
offset
Parameterised * myLastParameterised
the last object that potentially carries parameters
void closeVehicle()
Ends the processing of a vehicle.
SUMOTime getTime() const
get time
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::vector< SUMOSAXAttributes * > myDeviceAttrs
cached device attrs (used when loading vehicles)
MSStateHandler & operator=(const MSStateHandler &s)=delete
Invalidated assignment operator.
SUMOSAXAttributes * myVCAttrs
cached attrs for delayed loading of MSVehicleControl state
void myEndElement(int element)
Called when a closing tag occurs.
virtual ~MSStateHandler()
standard destructor
Static storage of an output device and its base (abstract) implementation.
An upper class for objects with additional parameters.
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.