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 (GNECalibratorFlow *calibratorFlow, bool forward)
 Constructor. More...
 
 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

GNECalibratorFlowmyCalibratorFlow
 modified calibrator flow More...
 
GNECalibratorRoutemyCalibratorRoute
 modified calibrator route More...
 
GNECalibratorVehicleTypemyCalibratorVehicleType
 modified calibrator vehicle type More...
 

Detailed Description

A change to the network selection

Definition at line 54 of file GNEChange_CalibratorItem.h.

Constructor & Destructor Documentation

◆ GNEChange_CalibratorItem() [1/3]

GNEChange_CalibratorItem::GNEChange_CalibratorItem ( GNECalibratorFlow calibratorFlow,
bool  forward 
)

Constructor.

Parameters
[in]calibratorFlowcalibrator flow to be added or removed
[in]forwardWhether to create/delete (true/false)

Definition at line 51 of file GNEChange_CalibratorItem.cpp.

◆ GNEChange_CalibratorItem() [2/3]

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)

Definition at line 60 of file GNEChange_CalibratorItem.cpp.

References GNEReferenceCounter::incRef(), and myCalibratorRoute.

◆ GNEChange_CalibratorItem() [3/3]

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 69 of file GNEChange_CalibratorItem.cpp.

References GNEReferenceCounter::incRef(), and myCalibratorVehicleType.

◆ ~GNEChange_CalibratorItem()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_CalibratorItem::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 265 of file GNEChange_CalibratorItem.cpp.

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

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 52 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_CalibratorItem::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 251 of file GNEChange_CalibratorItem.cpp.

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

Field Documentation

◆ myCalibratorFlow

GNECalibratorFlow* GNEChange_CalibratorItem::myCalibratorFlow
private

modified calibrator flow

Definition at line 96 of file GNEChange_CalibratorItem.h.

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

◆ myCalibratorRoute

GNECalibratorRoute* GNEChange_CalibratorItem::myCalibratorRoute
private

modified calibrator route

Definition at line 99 of file GNEChange_CalibratorItem.h.

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

◆ myCalibratorVehicleType

GNECalibratorVehicleType* GNEChange_CalibratorItem::myCalibratorVehicleType
private

modified calibrator vehicle type

Definition at line 102 of file GNEChange_CalibratorItem.h.

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

◆ myForward

◆ myNet


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