Eclipse SUMO - Simulation of Urban MObility
GNETLSEditorFrame::TLSAttributes Class Reference

#include <GNETLSEditorFrame.h>

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

Public Member Functions

void clearTLSAttributes ()
 clear TLS attributes More...
 
NBTrafficLightDefinitiongetCurrentTLSDefinition () const
 get current definition More...
 
int getNumberOfPrograms () const
 get number of programs More...
 
int getNumberOfTLSDefinitions () const
 get number of definitions More...
 
SUMOTime getOffset () const
 get current offset in SUMOTIme More...
 
void initTLSAttributes (GNEJunction *junction)
 initializes the definitions and corresponding listbox More...
 
void setOffset (SUMOTime offset)
 set new offset More...
 
 TLSAttributes (GNETLSEditorFrame *TLSEditorParent)
 constructor More...
 
 ~TLSAttributes ()
 destructor More...
 

Private Attributes

FXLabel * myNameLabel
 name label More...
 
FXTextField * myNameTextField
 name text field More...
 
FXLabel * myOffsetLabel
 offset label More...
 
FXTextField * myOffsetTextField
 the control for modifying offset More...
 
FXComboBox * myProgramComboBox
 the comboBox for selecting the tl-definition to edit More...
 
FXLabel * myProgramLabel
 program label More...
 
std::vector< NBTrafficLightDefinition * > myTLSDefinitions
 the list of Definitions for the current junction More...
 
GNETLSEditorFramemyTLSEditorParent
 pointer to TLSEditorParent More...
 

Detailed Description

Definition at line 104 of file GNETLSEditorFrame.h.

Constructor & Destructor Documentation

◆ TLSAttributes()

◆ ~TLSAttributes()

GNETLSEditorFrame::TLSAttributes::~TLSAttributes ( )

destructor

Definition at line 958 of file GNETLSEditorFrame.cpp.

Member Function Documentation

◆ clearTLSAttributes()

void GNETLSEditorFrame::TLSAttributes::clearTLSAttributes ( )

clear TLS attributes

Definition at line 986 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSEditorFrame::cleanup().

Here is the caller graph for this function:

◆ getCurrentTLSDefinition()

NBTrafficLightDefinition * GNETLSEditorFrame::TLSAttributes::getCurrentTLSDefinition ( ) const

get current definition

Definition at line 1002 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSEditorFrame::cleanup(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), and GNETLSEditorFrame::onCmdOK().

Here is the caller graph for this function:

◆ getNumberOfPrograms()

int GNETLSEditorFrame::TLSAttributes::getNumberOfPrograms ( ) const

get number of programs

Definition at line 1014 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSEditorFrame::onCmdDefSwitch().

Here is the caller graph for this function:

◆ getNumberOfTLSDefinitions()

int GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions ( ) const

get number of definitions

Definition at line 1008 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSEditorFrame::cleanup(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNETLSEditorFrame::onUpdDefSwitch(), GNETLSEditorFrame::onUpdNeedsDef(), GNETLSEditorFrame::onUpdNeedsDefAndPhase(), GNETLSEditorFrame::onUpdNeedsSingleDef(), and GNETLSEditorFrame::onUpdUngroupStates().

Here is the caller graph for this function:

◆ getOffset()

SUMOTime GNETLSEditorFrame::TLSAttributes::getOffset ( ) const

get current offset in SUMOTIme

Definition at line 1020 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSUMOTime().

Referenced by GNETLSEditorFrame::onCmdDefOffset().

Here is the caller graph for this function:

◆ initTLSAttributes()

void GNETLSEditorFrame::TLSAttributes::initTLSAttributes ( GNEJunction junction)

initializes the definitions and corresponding listbox

Definition at line 962 of file GNETLSEditorFrame.cpp.

References NBNode::getControllingTLS(), and GNEJunction::getNBNode().

Referenced by GNETLSEditorFrame::editJunction().

Here is the caller graph for this function:

◆ setOffset()

void GNETLSEditorFrame::TLSAttributes::setOffset ( SUMOTime  offset)

set new offset

Definition at line 1026 of file GNETLSEditorFrame.cpp.

References STEPS2TIME, and toString().

Referenced by GNETLSEditorFrame::onCmdDefSwitch().

Here is the caller graph for this function:

Field Documentation

◆ myNameLabel

FXLabel* GNETLSEditorFrame::TLSAttributes::myNameLabel
private

name label

Definition at line 142 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

◆ myNameTextField

FXTextField* GNETLSEditorFrame::TLSAttributes::myNameTextField
private

name text field

Definition at line 145 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

◆ myOffsetLabel

FXLabel* GNETLSEditorFrame::TLSAttributes::myOffsetLabel
private

offset label

Definition at line 154 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

◆ myOffsetTextField

FXTextField* GNETLSEditorFrame::TLSAttributes::myOffsetTextField
private

the control for modifying offset

Definition at line 157 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

◆ myProgramComboBox

FXComboBox* GNETLSEditorFrame::TLSAttributes::myProgramComboBox
private

the comboBox for selecting the tl-definition to edit

Definition at line 151 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

◆ myProgramLabel

FXLabel* GNETLSEditorFrame::TLSAttributes::myProgramLabel
private

program label

Definition at line 148 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

◆ myTLSDefinitions

std::vector<NBTrafficLightDefinition*> GNETLSEditorFrame::TLSAttributes::myTLSDefinitions
private

the list of Definitions for the current junction

Definition at line 139 of file GNETLSEditorFrame.h.

◆ myTLSEditorParent

GNETLSEditorFrame* GNETLSEditorFrame::TLSAttributes::myTLSEditorParent
private

pointer to TLSEditorParent

Definition at line 136 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().


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