SUMO - Simulation of Urban MObility
GNEChange_Connection Class Reference

#include <GNEChange_Connection.h>

Inheritance diagram for GNEChange_Connection:
Inheritance graph
Collaboration diagram for GNEChange_Connection:
Collaboration graph

Public Member Functions

 GNEChange_Connection (GNEEdge *edge, int fromLane, const std::string &toEdgeID, int toLane, bool mayDefinitelyPass, bool forward)
 Constructor for creating/deleting an edge. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Connection ()
 Destructor. More...
 
inherited from GNEChange

get undo Name

FXString undoName () const
 return undoName More...
 
FXString redoName () const
 get Redo name More...
 
void undo ()
 undo action More...
 
void redo ()
 redo action 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

bool myPass
 whether this connection never yields More...
 
GNEEdgemyEdge
 
int myFromLane
 the lane from which the connection originates More...
 
const std::string myToEdgeID
 the id of the target edge More...
 
int myToLane
 the target lane of the connection More...
 

Detailed Description

A network change in which a single lane is created or deleted

Definition at line 50 of file GNEChange_Connection.h.

Constructor & Destructor Documentation

GNEChange_Connection::GNEChange_Connection ( GNEEdge edge,
int  fromLane,
const std::string &  toEdgeID,
int  toLane,
bool  mayDefinitelyPass,
bool  forward 
)

Constructor for creating/deleting an edge.

Parameters
[in]edgeThe edge on which to apply changes
[in]laneThe lane to be deleted or 0 if a lane should be created
[in]laneAttrsThe attributes of the lane to be created/deleted
[in]forwardWhether to create/delete (true/false)

Definition at line 50 of file GNEChange_Connection.cpp.

GNEChange_Connection::~GNEChange_Connection ( )

Destructor.

Definition at line 63 of file GNEChange_Connection.cpp.

References GNEReferenceCounter::decRef(), myEdge, and GNEReferenceCounter::unreferenced().

Member Function Documentation

void GNEChange_Connection::redo ( )
virtual
FXString GNEChange_Connection::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 99 of file GNEChange_Connection.cpp.

References GNEChange::myForward.

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 57 of file GNEChange.cpp.

void GNEChange_Connection::undo ( )
virtual
FXString GNEChange_Connection::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 90 of file GNEChange_Connection.cpp.

References GNEChange::myForward.

Field Documentation

GNEEdge* GNEChange_Connection::myEdge
private

Definition at line 88 of file GNEChange_Connection.h.

Referenced by redo(), undo(), and ~GNEChange_Connection().

int GNEChange_Connection::myFromLane
private

the lane from which the connection originates

Definition at line 91 of file GNEChange_Connection.h.

Referenced by redo(), and undo().

GNENet* GNEChange::myNet
protectedinherited

the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer)

Definition at line 82 of file GNEChange.h.

Referenced by GNEChange_Additional::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Junction::undo(), GNEChange_Additional::undo(), GNEChange_Lane::undo(), and GNEChange_Edge::undo().

bool GNEChange_Connection::myPass
private

whether this connection never yields

Definition at line 101 of file GNEChange_Connection.h.

Referenced by redo(), and undo().

const std::string GNEChange_Connection::myToEdgeID
private

the id of the target edge

Definition at line 94 of file GNEChange_Connection.h.

Referenced by redo(), and undo().

int GNEChange_Connection::myToLane
private

the target lane of the connection

Definition at line 97 of file GNEChange_Connection.h.

Referenced by redo(), and undo().


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