SUMO - Simulation of Urban MObility
NLDiscreteEventBuilder Class Reference

#include <NLDiscreteEventBuilder.h>

Collaboration diagram for NLDiscreteEventBuilder:
Collaboration graph

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. More...
 
 NLDiscreteEventBuilder (MSNet &net)
 Constructor. More...
 
 ~NLDiscreteEventBuilder ()
 Destructor. More...
 

Protected Types

typedef std::map< std::string, ActionTypeKnownActions
 Definitions of a storage for build actions. More...
 

Protected Attributes

KnownActions myActions
 Build actions that shall be executed during the simulation. More...
 
MSNetmyNet
 

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. More...
 
void buildSaveTLSwitchesCommand (const SUMOSAXAttributes &attrs, const std::string &basePath)
 Builds an action which saves the switch times of links into a file. More...
 
void buildSaveTLSwitchStatesCommand (const SUMOSAXAttributes &attrs, const std::string &basePath)
 Builds an action which saves the switch times and states of tls into a file. More...
 
NLDiscreteEventBuilderoperator= (const NLDiscreteEventBuilder &)
 

Detailed Description

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

Definition at line 53 of file NLDiscreteEventBuilder.h.

Member Typedef Documentation

◆ KnownActions

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

Definitions of a storage for build actions.

Definition at line 89 of file NLDiscreteEventBuilder.h.

Member Enumeration Documentation

◆ ActionType

Known action types.

Enumerator
EV_SAVETLSTATE 

"SaveTLSStates"

EV_SAVETLSWITCHES 

"SaveTLSSwitchTimes"

EV_SAVETLSWITCHSTATES 

"SaveTLSSwitchStates"

Definition at line 56 of file NLDiscreteEventBuilder.h.

Constructor & Destructor Documentation

◆ NLDiscreteEventBuilder()

NLDiscreteEventBuilder::NLDiscreteEventBuilder ( MSNet net)

Constructor.

Definition at line 50 of file NLDiscreteEventBuilder.cpp.

References EV_SAVETLSTATE, EV_SAVETLSWITCHES, EV_SAVETLSWITCHSTATES, and myActions.

◆ ~NLDiscreteEventBuilder()

NLDiscreteEventBuilder::~NLDiscreteEventBuilder ( )

Destructor.

Definition at line 58 of file NLDiscreteEventBuilder.cpp.

Member Function Documentation

◆ addAction()

void NLDiscreteEventBuilder::addAction ( const SUMOSAXAttributes attrs,
const std::string &  basePath 
)

◆ buildSaveTLStateCommand()

void NLDiscreteEventBuilder::buildSaveTLStateCommand ( const SUMOSAXAttributes attrs,
const std::string &  basePath 
)
private

◆ buildSaveTLSwitchesCommand()

void NLDiscreteEventBuilder::buildSaveTLSwitchesCommand ( const SUMOSAXAttributes attrs,
const std::string &  basePath 
)
private

◆ buildSaveTLSwitchStatesCommand()

void NLDiscreteEventBuilder::buildSaveTLSwitchStatesCommand ( const SUMOSAXAttributes attrs,
const std::string &  basePath 
)
private

◆ operator=()

NLDiscreteEventBuilder& NLDiscreteEventBuilder::operator= ( const NLDiscreteEventBuilder )
private

Field Documentation

◆ myActions

KnownActions NLDiscreteEventBuilder::myActions
protected

Build actions that shall be executed during the simulation.

Definition at line 92 of file NLDiscreteEventBuilder.h.

Referenced by addAction(), and NLDiscreteEventBuilder().

◆ myNet

MSNet& NLDiscreteEventBuilder::myNet
protected

The documentation for this class was generated from the following files: