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

FOX-declaration. More...

#include <GNETLSEditorFrame.h>

Inheritance diagram for GNETLSEditorFrame::TLSAttributes:
Inheritance graph
Collaboration diagram for GNETLSEditorFrame::TLSAttributes:
Collaboration graph

Public Member Functions

void clearTLSAttributes ()
 clear TLS attributes More...
 
NBTrafficLightDefinition * getCurrentTLSDefinition () 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 (FXComposite *parent, GNETLSEditorFrame *TLSEditorParent)
 constructor More...
 
 ~TLSAttributes ()
 destructor More...
 

Private Attributes

FXMatrix * myAttributeMatrix
 matrix for attributes More...
 
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...
 
GNETLSEditorFrame * myTLSEditorParent
 pointer to TLSEditorParent More...
 

Detailed Description

FOX-declaration.

Definition at line 60 of file GNETLSEditorFrame.h.

Constructor & Destructor Documentation

GNETLSEditorFrame::TLSAttributes::~TLSAttributes ( )

destructor

Definition at line 708 of file GNETLSEditorFrame.cpp.

Member Function Documentation

void GNETLSEditorFrame::TLSAttributes::clearTLSAttributes ( )

clear TLS attributes

Definition at line 736 of file GNETLSEditorFrame.cpp.

References myNameTextField, myOffsetTextField, myProgramComboBox, and myTLSDefinitions.

Referenced by GNETLSEditorFrame::cleanup().

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

get number of programs

Definition at line 764 of file GNETLSEditorFrame.cpp.

References myProgramComboBox.

Referenced by GNETLSEditorFrame::onCmdDefSwitch().

int GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions ( ) const
SUMOTime GNETLSEditorFrame::TLSAttributes::getOffset ( ) const

get current offset in SUMOTIme

Definition at line 770 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSUMOTime(), and myOffsetTextField.

Referenced by GNETLSEditorFrame::onCmdDefOffset().

void GNETLSEditorFrame::TLSAttributes::initTLSAttributes ( GNEJunction *  junction)
void GNETLSEditorFrame::TLSAttributes::setOffset ( SUMOTime  offset)

set new offset

Definition at line 776 of file GNETLSEditorFrame.cpp.

References myOffsetTextField, STEPS2TIME, and toString().

Referenced by GNETLSEditorFrame::onCmdDefSwitch().

Field Documentation

FXMatrix* GNETLSEditorFrame::TLSAttributes::myAttributeMatrix
private

matrix for attributes

Definition at line 98 of file GNETLSEditorFrame.h.

FXLabel* GNETLSEditorFrame::TLSAttributes::myNameLabel
private

name label

Definition at line 101 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

FXTextField* GNETLSEditorFrame::TLSAttributes::myNameTextField
private

name text field

Definition at line 104 of file GNETLSEditorFrame.h.

Referenced by clearTLSAttributes(), initTLSAttributes(), and TLSAttributes().

FXLabel* GNETLSEditorFrame::TLSAttributes::myOffsetLabel
private

offset label

Definition at line 113 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

FXTextField* GNETLSEditorFrame::TLSAttributes::myOffsetTextField
private

the control for modifying offset

Definition at line 116 of file GNETLSEditorFrame.h.

Referenced by clearTLSAttributes(), getOffset(), initTLSAttributes(), setOffset(), and TLSAttributes().

FXComboBox* GNETLSEditorFrame::TLSAttributes::myProgramComboBox
private

the comboBox for selecting the tl-definition to edit

Definition at line 110 of file GNETLSEditorFrame.h.

Referenced by clearTLSAttributes(), getCurrentTLSDefinition(), getNumberOfPrograms(), initTLSAttributes(), and TLSAttributes().

FXLabel* GNETLSEditorFrame::TLSAttributes::myProgramLabel
private

program label

Definition at line 107 of file GNETLSEditorFrame.h.

Referenced by TLSAttributes().

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

the list of Definitions for the current junction

Definition at line 95 of file GNETLSEditorFrame.h.

Referenced by clearTLSAttributes(), getCurrentTLSDefinition(), getNumberOfTLSDefinitions(), and initTLSAttributes().

GNETLSEditorFrame* GNETLSEditorFrame::TLSAttributes::myTLSEditorParent
private

pointer to TLSEditorParent

Definition at line 92 of file GNETLSEditorFrame.h.

Referenced by initTLSAttributes(), and TLSAttributes().


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