Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETLSEditorFrame::TLSPhases Class Reference

#include <GNETLSEditorFrame.h>

Inheritance diagram for GNETLSEditorFrame::TLSPhases:
[legend]
Collaboration diagram for GNETLSEditorFrame::TLSPhases:
[legend]

Public Types

enum  Options {
  NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 ,
  LOAD = 1 << 4
}
 GroupBoxModule options. More...

Public Member Functions

void addPhase (const int row, const char c=' ')
 add phase
bool changePhaseValue (const int col, const int row, const std::string &value)
 change phase value (state, name, next, etc.)
void clearPhaseTable ()
 clear phase thable
void duplicatePhase (const int row)
 duplicate phase
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled)
GNETLSTablegetPhaseTable () const
 get phase table
GNETLSEditorFramegetTLSEditorParent () const
 get TLSEditor Parent
void hideTLSPhases ()
 hide TLSPhases
void initPhaseTable ()
 initializes the phase table
void movePhaseDown (const int row)
 move phase down
void movePhaseUp (const int row)
 move phase up
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule
long onCmdExtendButton (FXObject *, FXSelector, void *)
 extends GroupBoxModule
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents
long onCmdResetButton (FXObject *, FXSelector, void *)
 reset GroupBoxModule
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents
long onPaint (FXObject *, FXSelector, void *)
 draw GNEGroupBoxModule
long onUpdResetButton (FXObject *, FXSelector, void *)
 update reset GroupBoxModule
void removePhase (const int row)
 delete phase
void setText (const std::string &text)
 set text
void showTLSPhases ()
 show TLSPhases
 TLSPhases (GNETLSEditorFrame *TLSEditorParent)
 FOX-declaration.
void updateTLSColoring ()
 update TLS coloring
void updateTLSPhases ()
 update TLSPhases module
 ~TLSPhases ()
 destructor
FOX-callbacks

Called when the user cleans up states

long onCmdCleanStates (FXObject *, FXSelector, void *)
long onCmdAddUnusedStates (FXObject *, FXSelector, void *)
 Called when the user cleans up states.
long onCmdGroupStates (FXObject *, FXSelector, void *)
 Called when the user groups states.
long onCmdUngroupStates (FXObject *, FXSelector, void *)
 Called when the user ungroups states.

Protected Member Functions

virtual bool loadContents () const
 load contents (can be reimplemented in children)
virtual bool saveContents () const
 save contents (can be reimplemented in children)
void toggleSaveButton (const bool value)
 enable or disable save buttons
void updateTable ()
 FOX needs this.

Private Member Functions

int buildDefaultPhase (const int row)
 build default phase
void initActuatedPhaseTable ()
 init actuated phase table
void initDelayBasePhaseTable ()
 init delayBase phase table
void initNEMAPhaseTable ()
 init NEMA phase table
void initStaticPhaseTable ()
 init static phase table
TLSPhasesoperator= (const TLSPhases &)=delete
 Invalidated assignment operator.
bool setDuration (const int col, const int row, const std::string &value)
 set duration
bool setEarliestEnd (const int row, const std::string &value)
 set earliestEnd
bool setLatestEnd (const int row, const std::string &value)
 set latestEnd
bool setMaxDur (const int row, const std::string &value)
 set maxDur
bool setMinDur (const int row, const std::string &value)
 set minDur
bool setName (const int row, const std::string &value)
 set name
bool setNext (const int row, const std::string &value)
 set next
bool setRed (const int row, const std::string &value)
 set red
bool setState (const int col, const int row, const std::string &value)
 set state
bool setVehExt (const int row, const std::string &value)
 set vehExt
bool setYellow (const int row, const std::string &value)
 set yellow
 TLSPhases (const TLSPhases &)=delete
 Invalidated copy constructor.
void updateCycleDuration (const int col)
 recomputes cycle duration and updates label
void updateNextPhase (const int oldNext, const int newNext=-1, const bool swap=false)
 update phase references given in next field
void updateStateSize (const int col)
 update state size

Private Attributes

MFXButtonTooltipmyAddStates = nullptr
 add states button
MFXButtonTooltipmyCleanStatesButton = nullptr
 clean states button
FXVerticalFrame * myCollapsableFrame = nullptr
 vertical collapsable frame
FXButton * myCollapseButton = nullptr
 button for collapse elements
bool myCollapsed
 flag to check if this groupbox is collapsed
MFXButtonTooltipmyExtendButton = nullptr
 button for extend elements
GNEFramemyFrameParent = nullptr
 GNEFrame in which this GroupBox is placed.
MFXButtonTooltipmyGroupSignalsButton = nullptr
 group signals button
FXLabel * myLabel = nullptr
 label used in non collapsable GNEGroupBoxModule
FXButton * myLoadButton = nullptr
 button for load elements
const int myOptions
 GroupBoxModule options.
GNETLSTablemyPhaseTable
 table for selecting and rearranging phases and for changing duration
FXButton * myResetWidthButton = nullptr
 button for reset frame width
FXButton * mySaveButton = nullptr
 button for save elements
GNETLSEditorFramemyTLSEditorParent
 pointer to TLSEditor Parent
MFXButtonTooltipmyUngroupSignalsButton = nullptr
 ungroup signals button

Detailed Description

Definition at line 387 of file GNETLSEditorFrame.h.

Member Enumeration Documentation

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 43 of file GNEGroupBoxModule.h.

Constructor & Destructor Documentation

◆ TLSPhases() [1/2]

◆ ~TLSPhases()

GNETLSEditorFrame::TLSPhases::~TLSPhases ( )

destructor

Definition at line 1925 of file GNETLSEditorFrame.cpp.

◆ TLSPhases() [2/2]

GNETLSEditorFrame::TLSPhases::TLSPhases ( const TLSPhases & )
privatedelete

Invalidated copy constructor.

References TLSPhases().

Member Function Documentation

◆ addPhase()

void GNETLSEditorFrame::TLSPhases::addPhase ( const int row,
const char c = ' ' )

◆ buildDefaultPhase()

int GNETLSEditorFrame::TLSPhases::buildDefaultPhase ( const int row)
private

build default phase

Definition at line 2449 of file GNETLSEditorFrame.cpp.

References OptionsCont::getOptions(), GNETLSEditorFrame::getSUMOTime(), LINKSTATE_TL_GREEN_MAJOR, LINKSTATE_TL_GREEN_MINOR, LINKSTATE_TL_RED, LINKSTATE_TL_YELLOW_MAJOR, LINKSTATE_TL_YELLOW_MINOR, myPhaseTable, myTLSEditorParent, NEMA, STATIC, string2time(), TIME2STEPS, and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by addPhase(), duplicatePhase(), and updateTable().

Here is the caller graph for this function:

◆ changePhaseValue()

bool GNETLSEditorFrame::TLSPhases::changePhaseValue ( const int col,
const int row,
const std::string & value )

◆ clearPhaseTable()

void GNETLSEditorFrame::TLSPhases::clearPhaseTable ( )

clear phase thable

Definition at line 2025 of file GNETLSEditorFrame.cpp.

References myPhaseTable.

Referenced by initPhaseTable().

Here is the caller graph for this function:

◆ duplicatePhase()

void GNETLSEditorFrame::TLSPhases::duplicatePhase ( const int row)

duplicate phase

Definition at line 2133 of file GNETLSEditorFrame.cpp.

References buildDefaultPhase(), getPhaseTable(), initPhaseTable(), myPhaseTable, and myTLSEditorParent.

◆ getCollapsableFrame()

FXVerticalFrame * GNEGroupBoxModule::getCollapsableFrame ( )
inherited

get collapsable frame (used by all elements that will be collapsed if button is toggled)

Definition at line 126 of file GNEGroupBoxModule.cpp.

References myCollapsableFrame.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEMoveFrame::CommonMoveOptions::CommonMoveOptions(), GNETAZRelDataFrame::ConfirmTAZRelation::ConfirmTAZRelation(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNEConnectorFrame::CurrentLane::CurrentLane(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEGenericDataFrame::DataSetSelector::DataSetSelector(), GNEDeleteFrame::DeleteOptions::DeleteOptions(), GNEMoveFrame::DemandMoveOptions::DemandMoveOptions(), GNEDistributionFrame::DistributionEditor::DistributionEditor(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNECreateEdgeFrame::EdgeTypeSelector::EdgeTypeSelector(), GNEFixElementsDialog< T >::FixOptions::FixOptions(), GNEShapeFrame::GEOPOICreator::GEOPOICreator(), GNEAttributesEditorType::GNEAttributesEditorType(), GNEConsecutiveSelector::GNEConsecutiveSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEDrawingShape::GNEDrawingShape(), GNEElementTree::GNEElementTree(), GNEMatchAttribute::GNEMatchAttribute(), GNEOptionsEditor::GNEOptionsEditor(), GNEOverlappedInspection::GNEOverlappedInspection(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNEPlanSelector::GNEPlanSelector(), GNESelectorParent::GNESelectorParent(), GNETagSelector::GNETagSelector(), GNEViewObjectSelector::GNEViewObjectSelector(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECrossingFrame::JunctionInformation::JunctionInformation(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEMeanDataFrame::MeanDataTypeSelector::MeanDataTypeSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkMoveOptions::NetworkMoveOptions(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSJunction::onCmdToggleJoinTLS(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEDistributionFrame::DistributionValuesEditor::refreshRows(), GNEProhibitionFrame::RelativeToConnection::RelativeToConnection(), GNERouteFrame::RouteModeSelector::RouteModeSelector(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionInformation::SelectionInformation(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNETypeFrame::TypeEditor::TypeEditor(), GNETypeFrame::TypeSelector::TypeSelector(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getPhaseTable()

GNETLSTable * GNETLSEditorFrame::TLSPhases::getPhaseTable ( ) const

get phase table

Definition at line 1993 of file GNETLSEditorFrame.cpp.

References myPhaseTable.

Referenced by addPhase(), duplicatePhase(), movePhaseDown(), movePhaseUp(), removePhase(), setDuration(), and setState().

Here is the caller graph for this function:

◆ getTLSEditorParent()

GNETLSEditorFrame * GNETLSEditorFrame::TLSPhases::getTLSEditorParent ( ) const

get TLSEditor Parent

Definition at line 1987 of file GNETLSEditorFrame.cpp.

References myTLSEditorParent.

Referenced by GNETLSTable::Column::Column().

Here is the caller graph for this function:

◆ hideTLSPhases()

void GNETLSEditorFrame::TLSPhases::hideTLSPhases ( )

hide TLSPhases

Definition at line 1981 of file GNETLSEditorFrame.cpp.

References GNEFrame::hide().

◆ initActuatedPhaseTable()

void GNETLSEditorFrame::TLSPhases::initActuatedPhaseTable ( )
private

init actuated phase table

Definition at line 2323 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, myTLSEditorParent, toString(), updateCycleDuration(), updateStateSize(), and GNETLSEditorFrame::varDurString().

Referenced by initPhaseTable(), and updateTable().

Here is the caller graph for this function:

◆ initDelayBasePhaseTable()

void GNETLSEditorFrame::TLSPhases::initDelayBasePhaseTable ( )
private

init delayBase phase table

Definition at line 2366 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, myTLSEditorParent, toString(), updateCycleDuration(), updateStateSize(), and GNETLSEditorFrame::varDurString().

Referenced by initPhaseTable(), and updateTable().

Here is the caller graph for this function:

◆ initNEMAPhaseTable()

void GNETLSEditorFrame::TLSPhases::initNEMAPhaseTable ( )
private

init NEMA phase table

Definition at line 2403 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, myTLSEditorParent, toString(), updateCycleDuration(), updateStateSize(), and GNETLSEditorFrame::varDurString().

Referenced by initPhaseTable(), and updateTable().

Here is the caller graph for this function:

◆ initPhaseTable()

void GNETLSEditorFrame::TLSPhases::initPhaseTable ( )

initializes the phase table

Parameters
[in]indexThe index to select

Definition at line 1999 of file GNETLSEditorFrame.cpp.

References ACTUATED, clearPhaseTable(), DELAYBASED, initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), myPhaseTable, myTLSEditorParent, NEMA, and STATIC.

Referenced by addPhase(), duplicatePhase(), movePhaseDown(), movePhaseUp(), onCmdAddUnusedStates(), onCmdCleanStates(), onCmdGroupStates(), onCmdUngroupStates(), and removePhase().

Here is the caller graph for this function:

◆ initStaticPhaseTable()

void GNETLSEditorFrame::TLSPhases::initStaticPhaseTable ( )
private

init static phase table

Definition at line 2292 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, myTLSEditorParent, toString(), updateCycleDuration(), and updateStateSize().

Referenced by initPhaseTable(), and updateTable().

Here is the caller graph for this function:

◆ loadContents()

bool GNEGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 234 of file GNEGroupBoxModule.cpp.

Referenced by onCmdLoadButton().

Here is the caller graph for this function:

◆ movePhaseDown()

void GNETLSEditorFrame::TLSPhases::movePhaseDown ( const int row)

move phase down

Definition at line 2196 of file GNETLSEditorFrame.cpp.

References getPhaseTable(), initPhaseTable(), myPhaseTable, myTLSEditorParent, and updateNextPhase().

◆ movePhaseUp()

void GNETLSEditorFrame::TLSPhases::movePhaseUp ( const int row)

move phase up

Definition at line 2171 of file GNETLSEditorFrame.cpp.

References getPhaseTable(), initPhaseTable(), myPhaseTable, myTLSEditorParent, and updateNextPhase().

◆ onCmdAddUnusedStates()

long GNETLSEditorFrame::TLSPhases::onCmdAddUnusedStates ( FXObject * ,
FXSelector ,
void *  )

Called when the user cleans up states.

Definition at line 2256 of file GNETLSEditorFrame.cpp.

References initPhaseTable(), myPhaseTable, and myTLSEditorParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCleanStates()

long GNETLSEditorFrame::TLSPhases::onCmdCleanStates ( FXObject * ,
FXSelector ,
void *  )

Definition at line 2242 of file GNETLSEditorFrame.cpp.

References initPhaseTable(), myPhaseTable, and myTLSEditorParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

long GNEGroupBoxModule::onCmdCollapseButton ( FXObject * ,
FXSelector ,
void *  )
inherited

collapse GroupBoxModule

Definition at line 145 of file GNEGroupBoxModule.cpp.

References COLLAPSE, GUIIconSubSys::getIcon(), myCollapsableFrame, myCollapseButton, myCollapsed, and UNCOLLAPSE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdExtendButton()

long GNEGroupBoxModule::onCmdExtendButton ( FXObject * ,
FXSelector ,
void *  )
inherited

extends GroupBoxModule

Definition at line 161 of file GNEGroupBoxModule.cpp.

References myCollapsableFrame, and myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGroupStates()

long GNETLSEditorFrame::TLSPhases::onCmdGroupStates ( FXObject * ,
FXSelector ,
void *  )

Called when the user groups states.

Definition at line 2267 of file GNETLSEditorFrame.cpp.

References initPhaseTable(), myPhaseTable, and myTLSEditorParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

long GNEGroupBoxModule::onCmdLoadButton ( FXObject * ,
FXSelector ,
void *  )
inherited

load contents

Definition at line 215 of file GNEGroupBoxModule.cpp.

References loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetButton()

long GNEGroupBoxModule::onCmdResetButton ( FXObject * ,
FXSelector ,
void *  )
inherited

reset GroupBoxModule

Definition at line 187 of file GNEGroupBoxModule.cpp.

References myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

long GNEGroupBoxModule::onCmdSaveButton ( FXObject * ,
FXSelector ,
void *  )
inherited

save contents

Definition at line 209 of file GNEGroupBoxModule.cpp.

References saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdUngroupStates()

long GNETLSEditorFrame::TLSPhases::onCmdUngroupStates ( FXObject * ,
FXSelector ,
void *  )

Called when the user ungroups states.

Definition at line 2279 of file GNETLSEditorFrame.cpp.

References initPhaseTable(), myPhaseTable, and myTLSEditorParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long GNEGroupBoxModule::onPaint ( FXObject * ,
FXSelector ,
void * ptr )
inherited

draw GNEGroupBoxModule

Definition at line 132 of file GNEGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetButton()

long GNEGroupBoxModule::onUpdResetButton ( FXObject * sender,
FXSelector ,
void *  )
inherited

update reset GroupBoxModule

Definition at line 196 of file GNEGroupBoxModule.cpp.

References myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

TLSPhases & GNETLSEditorFrame::TLSPhases::operator= ( const TLSPhases & )
privatedelete

Invalidated assignment operator.

References TLSPhases().

◆ removePhase()

void GNETLSEditorFrame::TLSPhases::removePhase ( const int row)

◆ saveContents()

bool GNEGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixElementsDialog< T >::FixOptions.

Definition at line 227 of file GNEGroupBoxModule.cpp.

Referenced by onCmdSaveButton().

Here is the caller graph for this function:

◆ setDuration()

bool GNETLSEditorFrame::TLSPhases::setDuration ( const int col,
const int row,
const std::string & value )
private

set duration

Definition at line 2536 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), getPhaseTable(), GNETLSEditorFrame::getSteps2Time(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, and updateCycleDuration().

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setEarliestEnd()

bool GNETLSEditorFrame::TLSPhases::setEarliestEnd ( const int row,
const std::string & value )
private

set earliestEnd

Definition at line 2681 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setLatestEnd()

bool GNETLSEditorFrame::TLSPhases::setLatestEnd ( const int row,
const std::string & value )
private

set latestEnd

Definition at line 2709 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setMaxDur()

bool GNETLSEditorFrame::TLSPhases::setMaxDur ( const int row,
const std::string & value )
private

set maxDur

Definition at line 2653 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setMinDur()

bool GNETLSEditorFrame::TLSPhases::setMinDur ( const int row,
const std::string & value )
private

set minDur

Definition at line 2625 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setName()

bool GNETLSEditorFrame::TLSPhases::setName ( const int row,
const std::string & value )
private

set name

Definition at line 2616 of file GNETLSEditorFrame.cpp.

References invalid_return< std::string >::value, and myTLSEditorParent.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setNext()

bool GNETLSEditorFrame::TLSPhases::setNext ( const int row,
const std::string & value )
private

set next

Definition at line 2596 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), invalid_return< std::string >::value, myPhaseTable, myTLSEditorParent, and GNEAttributeCarrier::parse().

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setRed()

bool GNETLSEditorFrame::TLSPhases::setRed ( const int row,
const std::string & value )
private

set red

Definition at line 2793 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setState()

bool GNETLSEditorFrame::TLSPhases::setState ( const int col,
const int row,
const std::string & value )
private

set state

Definition at line 2561 of file GNETLSEditorFrame.cpp.

References getPhaseTable(), invalid_return< std::string >::value, myPhaseTable, myTLSEditorParent, TL, toString(), updateStateSize(), and WRITE_ERROR.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setText()

void GNEGroupBoxModule::setText ( const std::string & text)
inherited

set text

Definition at line 120 of file GNEGroupBoxModule.cpp.

References myLabel.

Referenced by GNEViewObjectSelector::showNetworkElementsSelector(), and GNETagSelector::updateTagTypes().

Here is the caller graph for this function:

◆ setVehExt()

bool GNETLSEditorFrame::TLSPhases::setVehExt ( const int row,
const std::string & value )
private

set vehExt

Definition at line 2737 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setYellow()

bool GNETLSEditorFrame::TLSPhases::setYellow ( const int row,
const std::string & value )
private

set yellow

Definition at line 2765 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ showTLSPhases()

void GNETLSEditorFrame::TLSPhases::showTLSPhases ( )

show TLSPhases

Definition at line 1975 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::show().

◆ toggleSaveButton()

void GNEGroupBoxModule::toggleSaveButton ( const bool value)
protectedinherited

enable or disable save buttons

Definition at line 241 of file GNEGroupBoxModule.cpp.

References invalid_return< std::string >::value, and mySaveButton.

◆ updateCycleDuration()

void GNETLSEditorFrame::TLSPhases::updateCycleDuration ( const int col)
private

recomputes cycle duration and updates label

Definition at line 2821 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, and myTLSEditorParent.

Referenced by initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), setDuration(), and updateTable().

Here is the caller graph for this function:

◆ updateNextPhase()

void GNETLSEditorFrame::TLSPhases::updateNextPhase ( const int oldNext,
const int newNext = -1,
const bool swap = false )
private

update phase references given in next field

Definition at line 2839 of file GNETLSEditorFrame.cpp.

References myTLSEditorParent.

Referenced by addPhase(), movePhaseDown(), movePhaseUp(), removePhase(), and updateTable().

Here is the caller graph for this function:

◆ updateStateSize()

void GNETLSEditorFrame::TLSPhases::updateStateSize ( const int col)
private

update state size

Definition at line 2832 of file GNETLSEditorFrame.cpp.

References myPhaseTable, myTLSEditorParent, and toString().

Referenced by initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), setState(), and updateTable().

Here is the caller graph for this function:

◆ updateTable()

void GNETLSEditorFrame::TLSPhases::updateTable ( )
protected

FOX needs this.

update table

References buildDefaultPhase(), initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), invalid_return< std::string >::value, setDuration(), setEarliestEnd(), setLatestEnd(), setMaxDur(), setMinDur(), setName(), setNext(), setRed(), setState(), setVehExt(), setYellow(), updateCycleDuration(), updateNextPhase(), updateStateSize(), and updateTable().

Referenced by updateTable().

Here is the caller graph for this function:

◆ updateTLSColoring()

void GNETLSEditorFrame::TLSPhases::updateTLSColoring ( )

update TLS coloring

Definition at line 2221 of file GNETLSEditorFrame.cpp.

References LINKSTATE_DEADEND, myPhaseTable, and myTLSEditorParent.

◆ updateTLSPhases()

void GNETLSEditorFrame::TLSPhases::updateTLSPhases ( )

Field Documentation

◆ myAddStates

MFXButtonTooltip* GNETLSEditorFrame::TLSPhases::myAddStates = nullptr
private

add states button

Definition at line 533 of file GNETLSEditorFrame.h.

Referenced by TLSPhases(), and updateTLSPhases().

◆ myCleanStatesButton

MFXButtonTooltip* GNETLSEditorFrame::TLSPhases::myCleanStatesButton = nullptr
private

clean states button

Definition at line 530 of file GNETLSEditorFrame.h.

Referenced by TLSPhases(), and updateTLSPhases().

◆ myCollapsableFrame

FXVerticalFrame* GNEGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 108 of file GNEGroupBoxModule.h.

Referenced by getCollapsableFrame(), GNEGroupBoxModule(), GNEGroupBoxModule(), onCmdCollapseButton(), and onCmdExtendButton().

◆ myCollapseButton

FXButton* GNEGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 114 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), and onCmdCollapseButton().

◆ myCollapsed

bool GNEGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 129 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), GNEGroupBoxModule(), and onCmdCollapseButton().

◆ myExtendButton

MFXButtonTooltip* GNEGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 117 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule().

◆ myFrameParent

GNEFrame* GNEGroupBoxModule::myFrameParent = nullptr
privateinherited

GNEFrame in which this GroupBox is placed.

Definition at line 105 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule(), onCmdExtendButton(), onCmdResetButton(), and onUpdResetButton().

◆ myGroupSignalsButton

MFXButtonTooltip* GNETLSEditorFrame::TLSPhases::myGroupSignalsButton = nullptr
private

group signals button

Definition at line 536 of file GNETLSEditorFrame.h.

Referenced by TLSPhases(), and updateTLSPhases().

◆ myLabel

FXLabel* GNEGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable GNEGroupBoxModule

Definition at line 111 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), and setText().

◆ myLoadButton

FXButton* GNEGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 126 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule(), and GNEGroupBoxModule().

◆ myOptions

const int GNEGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 102 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), and GNEGroupBoxModule().

◆ myPhaseTable

◆ myResetWidthButton

FXButton* GNEGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 120 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule().

◆ mySaveButton

FXButton* GNEGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 123 of file GNEGroupBoxModule.h.

Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), and toggleSaveButton().

◆ myTLSEditorParent

◆ myUngroupSignalsButton

MFXButtonTooltip* GNETLSEditorFrame::TLSPhases::myUngroupSignalsButton = nullptr
private

ungroup signals button

Definition at line 539 of file GNETLSEditorFrame.h.

Referenced by TLSPhases(), and updateTLSPhases().


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