Class TrafficLightController
Inheritance
IPositionable
TrafficLightController
Implements
IEntity
INodeGuard
Assembly: SOHMultimodalModel.dll
Syntax
public class TrafficLightController : IPositionable, IEntity, INodeGuard
Constructors
TrafficLightController(ILayer, ISpatialGraphEnvironment, Double, Double)
Declaration
public TrafficLightController(ILayer layer, ISpatialGraphEnvironment environment, double lat, double lon)
Parameters
Type |
Name |
Description |
ILayer |
layer |
|
ISpatialGraphEnvironment |
environment |
|
System.Double |
lat |
|
System.Double |
lon |
|
Fields
GreenDuration
Declaration
public const int GreenDuration = null
Field Value
Type |
Description |
System.Int32 |
|
YellowDuration
Declaration
public const int YellowDuration = null
Field Value
Type |
Description |
System.Int32 |
|
Properties
CurrentTick
Declaration
public long CurrentTick { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
CycleLength
Declaration
public int CycleLength { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
ID
Declaration
public Guid ID { get; set; }
Property Value
Position
Declaration
public Position Position { get; set; }
Property Value
Type |
Description |
Position |
|
Methods
AccessEdge(Int64, ISpatialEdge, ISpatialEdge)
Declaration
public bool AccessEdge(long tick, ISpatialEdge from, ISpatialEdge to)
Parameters
Type |
Name |
Description |
System.Int64 |
tick |
|
ISpatialEdge |
from |
|
ISpatialEdge |
to |
|
Returns
Type |
Description |
System.Boolean |
|
GenerateTrafficSchedules()
Declaration
public void GenerateTrafficSchedules()
GetTrafficLightPhase(ISpatialEdge, ISpatialEdge)
Declaration
public TrafficLightPhase GetTrafficLightPhase(ISpatialEdge from, ISpatialEdge to)
Parameters
Type |
Name |
Description |
ISpatialEdge |
from |
|
ISpatialEdge |
to |
|
Returns
Type |
Description |
TrafficLightPhase |
|
UpdateLightPhase()
Declaration
public void UpdateLightPhase()
Implements
IEntity
INodeGuard