Class TrafficLightController
Inheritance
System.Object
TrafficLightController
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: SOHMultimodalModel.dll
Syntax
public class TrafficLightController : IPositionable, IEntity, IModelObject, INodeGuard
Constructors
|
Improve this Doc
View Source
TrafficLightController(ILayer, ISpatialGraphEnvironment, Double, Double)
Declaration
public TrafficLightController(ILayer layer, ISpatialGraphEnvironment environment, double lat, double lon)
Parameters
Fields
|
Improve this Doc
View Source
GreenDuration
Declaration
public const int GreenDuration = 20
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
YellowDuration
Declaration
public const int YellowDuration = 3
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
CurrentTick
Declaration
public long CurrentTick { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
CycleLength
Declaration
public int CycleLength { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ID
Declaration
public Guid ID { get; set; }
Property Value
Type |
Description |
System.Guid |
|
|
Improve this Doc
View Source
Position
Declaration
public Position Position { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AccessEdge(Int64, ISpatialEdge, ISpatialEdge)
Declaration
public bool AccessEdge(long tick, ISpatialEdge from, ISpatialEdge to)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GenerateTrafficSchedules()
Declaration
public void GenerateTrafficSchedules()
|
Improve this Doc
View Source
GetTrafficLightPhase(ISpatialEdge, ISpatialEdge)
Declaration
public TrafficLightPhase GetTrafficLightPhase(ISpatialEdge from, ISpatialEdge to)
Parameters
Returns
|
Improve this Doc
View Source
UpdateLightPhase()
Declaration
public void UpdateLightPhase()
Implements