SUMO - Simulation of Urban MObility

NLDiscreteEventBuilder Class Reference

#include <NLDiscreteEventBuilder.h>

Public Types

enum  ActionType { EV_SAVETLSTATE, EV_SAVETLSWITCHES, EV_SAVETLSWITCHSTATES }
 

Known action types.

More...

Public Member Functions

void addAction (const SUMOSAXAttributes &attrs, const std::string &basePath)
 Builds an action and saves it for further use.
 NLDiscreteEventBuilder (MSNet &net)
 Constructor.
 ~NLDiscreteEventBuilder ()
 Destructor.

Protected Types

typedef std::map< std::string,
ActionType > 
KnownActions
 Definitions of a storage for build actions.

Protected Attributes

KnownActions myActions
 Build actions that shall be executed during the simulation.
MSNet & myNet

Private Member Functions

void buildSaveTLStateCommand (const SUMOSAXAttributes &attrs, const std::string &basePath)
 Builds an action which saves the state of a certain tls into a file.
void buildSaveTLSwitchesCommand (const SUMOSAXAttributes &attrs, const std::string &basePath)
 Builds an action which saves the switch times of links into a file.
void buildSaveTLSwitchStatesCommand (const SUMOSAXAttributes &attrs, const std::string &basePath)
 Builds an action which saves the switch times and states of tls into a file.
NLDiscreteEventBuilder & operator= (const NLDiscreteEventBuilder &)

Detailed Description

This class is responsible for building event-handling actions which the simulation shall execute.

Definition at line 54 of file NLDiscreteEventBuilder.h.


Member Typedef Documentation

typedef std::map<std::string, ActionType> NLDiscreteEventBuilder::KnownActions [protected]

Definitions of a storage for build actions.

Definition at line 90 of file NLDiscreteEventBuilder.h.


Member Enumeration Documentation

Known action types.

Enumerator:
EV_SAVETLSTATE 

"SaveTLSStates"

EV_SAVETLSWITCHES 

"SaveTLSSwitchTimes"

EV_SAVETLSWITCHSTATES 

"SaveTLSSwitchStates"

Definition at line 57 of file NLDiscreteEventBuilder.h.


Constructor & Destructor Documentation

NLDiscreteEventBuilder::NLDiscreteEventBuilder ( MSNet &  net)

Constructor.

Definition at line 55 of file NLDiscreteEventBuilder.cpp.

References EV_SAVETLSTATE, EV_SAVETLSWITCHES, EV_SAVETLSWITCHSTATES, and myActions.

NLDiscreteEventBuilder::~NLDiscreteEventBuilder ( )

Destructor.

Definition at line 63 of file NLDiscreteEventBuilder.cpp.


Member Function Documentation

void NLDiscreteEventBuilder::addAction ( const SUMOSAXAttributes &  attrs,
const std::string &  basePath 
)
void NLDiscreteEventBuilder::buildSaveTLStateCommand ( const SUMOSAXAttributes &  attrs,
const std::string &  basePath 
) [private]
void NLDiscreteEventBuilder::buildSaveTLSwitchesCommand ( const SUMOSAXAttributes &  attrs,
const std::string &  basePath 
) [private]
void NLDiscreteEventBuilder::buildSaveTLSwitchStatesCommand ( const SUMOSAXAttributes &  attrs,
const std::string &  basePath 
) [private]
NLDiscreteEventBuilder& NLDiscreteEventBuilder::operator= ( const NLDiscreteEventBuilder &  ) [private]

Field Documentation

Build actions that shall be executed during the simulation.

Definition at line 93 of file NLDiscreteEventBuilder.h.

Referenced by addAction(), and NLDiscreteEventBuilder().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines