SUMO - Simulation of Urban MObility
GNEChange_CalibratorItem Class Reference

#include <GNEChange_CalibratorItem.h>

Inheritance diagram for GNEChange_CalibratorItem:
Inheritance graph
Collaboration diagram for GNEChange_CalibratorItem:
Collaboration graph

Public Member Functions

 GNEChange_CalibratorItem (GNECalibratorRoute *calibratorRoute, bool forward)
 Constructor. More...
 
 GNEChange_CalibratorItem (GNECalibratorVehicleType *calibratorVehicleType, bool forward)
 Constructor. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_CalibratorItem ()
 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

GNECalibratorVehicleTypemyCalibratorVehicleType
 modified calibrator vehicle type More...
 

Detailed Description

A change to the network selection

Definition at line 48 of file GNEChange_CalibratorItem.h.

Constructor & Destructor Documentation

GNEChange_CalibratorItem::GNEChange_CalibratorItem ( GNECalibratorRoute calibratorRoute,
bool  forward 
)

Constructor.

Parameters
[in]calibratorRoutecalibrator route to be added or removed
[in]forwardWhether to create/delete (true/false)
GNEChange_CalibratorItem::GNEChange_CalibratorItem ( GNECalibratorVehicleType calibratorVehicleType,
bool  forward 
)

Constructor.

Parameters
[in]calibratorVehicleTypecalibrator vehicle type to be added or removed
[in]forwardWhether to create/delete (true/false)

Definition at line 44 of file GNEChange_CalibratorItem.cpp.

GNEChange_CalibratorItem::~GNEChange_CalibratorItem ( )

Destructor.

Definition at line 51 of file GNEChange_CalibratorItem.cpp.

Member Function Documentation

FXString GNEChange_CalibratorItem::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 125 of file GNEChange_CalibratorItem.cpp.

References GNEAttributeCarrier::getTag(), myCalibratorVehicleType, and toString().

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 46 of file GNEChange.cpp.

FXString GNEChange_CalibratorItem::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 115 of file GNEChange_CalibratorItem.cpp.

References GNEAttributeCarrier::getTag(), myCalibratorVehicleType, and toString().

Field Documentation

GNECalibratorVehicleType* GNEChange_CalibratorItem::myCalibratorVehicleType
private

modified calibrator vehicle type

Definition at line 84 of file GNEChange_CalibratorItem.h.

Referenced by redo(), redoName(), undo(), and undoName().


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