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...
 
GNENet * myNet
 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

NBEdge * myBy
 replaced by NBEdge More...
 
NBEdge * myReplaced
 replaced NBEdge More...
 
NBTrafficLightLogicCont & myTllcont
 container for traffic light logic More...
 

Detailed Description

class for GNEChange_ReplaceEdgeInTLS

Definition at line 758 of file GNENet.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 763 of file GNENet.h.

GNENet::GNEChange_ReplaceEdgeInTLS::~GNEChange_ReplaceEdgeInTLS ( )
inline

destructor

Definition at line 768 of file GNENet.h.

Member Function Documentation

void GNENet::GNEChange_ReplaceEdgeInTLS::redo ( )
inlinevirtual

redo action

Reimplemented from GNEChange.

Definition at line 786 of file GNENet.h.

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

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

get Redo name

Reimplemented from GNEChange.

Definition at line 776 of file GNENet.h.

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 53 of file GNEChange.cpp.

bool GNENet::GNEChange_ReplaceEdgeInTLS::trueChange ( )
inline

wether original and new value differ

Definition at line 791 of file GNENet.h.

References myBy, and myReplaced.

void GNENet::GNEChange_ReplaceEdgeInTLS::undo ( )
inlinevirtual

undo action

Reimplemented from GNEChange.

Definition at line 781 of file GNENet.h.

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

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

undo name

Reimplemented from GNEChange.

Definition at line 771 of file GNENet.h.

Field Documentation

NBEdge* GNENet::GNEChange_ReplaceEdgeInTLS::myBy
private

replaced by NBEdge

Definition at line 803 of file GNENet.h.

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

NBEdge* GNENet::GNEChange_ReplaceEdgeInTLS::myReplaced
private

replaced NBEdge

Definition at line 800 of file GNENet.h.

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

NBTrafficLightLogicCont& GNENet::GNEChange_ReplaceEdgeInTLS::myTllcont
private

container for traffic light logic

Definition at line 797 of file GNENet.h.

Referenced by redo(), and undo().


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