SUMO - Simulation of Urban MObility
GNENet::GNEChange_ReplaceEdgeInTLS Class Reference

class for GNEChange_ReplaceEdgeInTLS More...

Inheritance diagram for GNENet::GNEChange_ReplaceEdgeInTLS:
Inheritance graph
Collaboration diagram for GNENet::GNEChange_ReplaceEdgeInTLS:
Collaboration graph

Public Member Functions

 GNEChange_ReplaceEdgeInTLS (NBTrafficLightLogicCont &tllcont, NBEdge *replaced, NBEdge *by)
 constructor More...
 
void redo ()
 redo action More...
 
FXString redoName () const
 get Redo name More...
 
virtual FXuint size () const
 return actual size More...
 
bool trueChange ()
 wether original and new value differ More...
 
void undo ()
 undo action More...
 
FXString undoName () const
 undo name More...
 
 ~GNEChange_ReplaceEdgeInTLS ()
 destructor More...
 

Protected Attributes

bool myForward
 we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More...
 
GNENetmyNet
 the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More...
 

Private Attributes

NBEdgemyBy
 replaced by NBEdge More...
 
NBEdgemyReplaced
 replaced NBEdge More...
 
NBTrafficLightLogicContmyTllcont
 container for traffic light logic More...
 

Detailed Description

class for GNEChange_ReplaceEdgeInTLS

Definition at line 813 of file GNENet.h.

Constructor & Destructor Documentation

◆ GNEChange_ReplaceEdgeInTLS()

GNENet::GNEChange_ReplaceEdgeInTLS::GNEChange_ReplaceEdgeInTLS ( NBTrafficLightLogicCont tllcont,
NBEdge replaced,
NBEdge by 
)
inline

constructor

Definition at line 818 of file GNENet.h.

◆ ~GNEChange_ReplaceEdgeInTLS()

GNENet::GNEChange_ReplaceEdgeInTLS::~GNEChange_ReplaceEdgeInTLS ( )
inline

destructor

Definition at line 823 of file GNENet.h.

Member Function Documentation

◆ redo()

void GNENet::GNEChange_ReplaceEdgeInTLS::redo ( )
inlinevirtual

redo action

Reimplemented from GNEChange.

Definition at line 841 of file GNENet.h.

References myBy, myReplaced, myTllcont, and NBTrafficLightLogicCont::replaceRemoved().

◆ redoName()

FXString GNENet::GNEChange_ReplaceEdgeInTLS::redoName ( ) const
inlinevirtual

get Redo name

Reimplemented from GNEChange.

Definition at line 831 of file GNENet.h.

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 52 of file GNEChange.cpp.

◆ trueChange()

bool GNENet::GNEChange_ReplaceEdgeInTLS::trueChange ( )
inline

wether original and new value differ

Definition at line 846 of file GNENet.h.

References myBy, and myReplaced.

◆ undo()

void GNENet::GNEChange_ReplaceEdgeInTLS::undo ( )
inlinevirtual

undo action

Reimplemented from GNEChange.

Definition at line 836 of file GNENet.h.

References myBy, myReplaced, myTllcont, and NBTrafficLightLogicCont::replaceRemoved().

◆ undoName()

FXString GNENet::GNEChange_ReplaceEdgeInTLS::undoName ( ) const
inlinevirtual

undo name

Reimplemented from GNEChange.

Definition at line 826 of file GNENet.h.

Field Documentation

◆ myBy

NBEdge* GNENet::GNEChange_ReplaceEdgeInTLS::myBy
private

replaced by NBEdge

Definition at line 858 of file GNENet.h.

Referenced by redo(), trueChange(), and undo().

◆ myForward

◆ myNet

◆ myReplaced

NBEdge* GNENet::GNEChange_ReplaceEdgeInTLS::myReplaced
private

replaced NBEdge

Definition at line 855 of file GNENet.h.

Referenced by redo(), trueChange(), and undo().

◆ myTllcont

NBTrafficLightLogicCont& GNENet::GNEChange_ReplaceEdgeInTLS::myTllcont
private

container for traffic light logic

Definition at line 852 of file GNENet.h.

Referenced by redo(), and undo().


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