tvaLib
Public Member Functions | Public Attributes | List of all members
lib.scene.TrafficControllerPhase Class Reference

Public Member Functions

def __init__ (self, green=5.0, yellow=3.0, allred=1.0, locations=[])
 
def addLocation (self, lane, s)
 

Public Attributes

 green
 
 yellow
 
 allred
 
 locations
 

Detailed Description

Definition at line 1377 of file scene.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.scene.TrafficControllerPhase.__init__ (   self,
  green = 5.0,
  yellow = 3.0,
  allred = 1.0,
  locations = [] 
)

Definition at line 1378 of file scene.py.

1378  def __init__(self, green=5.0, yellow=3.0, allred=1.0, locations=[]):
1379  self.green = green
1380  self.yellow = yellow
1381  self.allred = allred
1382  self.locations = locations
1383 

Member Function Documentation

◆ addLocation()

def lib.scene.TrafficControllerPhase.addLocation (   self,
  lane,
  s 
)

Definition at line 1384 of file scene.py.

1384  def addLocation(self, lane, s):
1385  self.locations.append({'lane':lane,'s':s})
1386 
1387 
1388 

Member Data Documentation

◆ allred

lib.scene.TrafficControllerPhase.allred

Definition at line 1381 of file scene.py.

◆ green

lib.scene.TrafficControllerPhase.green

Definition at line 1379 of file scene.py.

◆ locations

lib.scene.TrafficControllerPhase.locations

Definition at line 1382 of file scene.py.

◆ yellow

lib.scene.TrafficControllerPhase.yellow

Definition at line 1380 of file scene.py.


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