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

class for GNEChange_ReplaceEdgeInTLS More...

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

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 ()
 @bief 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 867 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 872 of file GNENet.h.

◆ ~GNEChange_ReplaceEdgeInTLS()

GNENet::GNEChange_ReplaceEdgeInTLS::~GNEChange_ReplaceEdgeInTLS ( )
inline

@bief destructor

Definition at line 877 of file GNENet.h.

Member Function Documentation

◆ redo()

void GNENet::GNEChange_ReplaceEdgeInTLS::redo ( )
inlinevirtual

redo action

Reimplemented from GNEChange.

Definition at line 895 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 885 of file GNENet.h.

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 45 of file GNEChange.cpp.

◆ trueChange()

bool GNENet::GNEChange_ReplaceEdgeInTLS::trueChange ( )
inline

wether original and new value differ

Definition at line 900 of file GNENet.h.

References myBy, and myReplaced.

◆ undo()

void GNENet::GNEChange_ReplaceEdgeInTLS::undo ( )
inlinevirtual

undo action

Reimplemented from GNEChange.

Definition at line 890 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 880 of file GNENet.h.

Field Documentation

◆ myBy

NBEdge* GNENet::GNEChange_ReplaceEdgeInTLS::myBy
private

replaced by NBEdge

Definition at line 912 of file GNENet.h.

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

◆ myForward

◆ myNet

◆ myReplaced

NBEdge* GNENet::GNEChange_ReplaceEdgeInTLS::myReplaced
private

replaced NBEdge

Definition at line 909 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 906 of file GNENet.h.

Referenced by redo(), and undo().


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