Property | Type | Description | |
---|---|---|---|
lastFlowWaitCalc | uint | ||
maxTime | int | ||
maxWait | float | ||
minFlow | float | ||
minTime | int | ||
segmentLights | CustomSegmentLights>.Dictionary | ||
startFrame | uint | ||
waitFlowBalance | float |
Method | Description | |
---|---|---|
Clone ( ) : object | ||
GetLight ( ushort segmentId, ExtVehicleType vehicleType, int lightType ) : RoadBaseAI.TrafficLightState | ||
MaxTimeRemaining ( ) : long |
Countdown value for max. time
|
|
MinTimeRemaining ( ) : long |
Countdown value for min. time
|
|
SetLights ( ) : void |
Updates "real-world" traffic light states according to the timed scripts
|
|
SetLights ( bool noTransition ) : void | ||
SetStepDone ( ) : void | ||
Start ( ) : void |
Starts the step.
|
|
StepDone ( bool updateValues ) : bool | ||
TimedTrafficLightsStep ( |
||
UpdateLights ( ) : void |
Updates timed segment lights according to "real-world" traffic light states
|
|
calcWaitFlow ( float &wait, float &flow ) : bool |
Calculates the current metrics for flowing and waiting vehicles
|
|
isValid ( ) : bool |
Method | Description | |
---|---|---|
ChangeLightMode ( ushort segmentId, ExtVehicleType vehicleType, |
||
addSegment ( ushort segmentId, bool makeRed ) : void |
Adds a new segment to this step. After adding all steps the method `rebuildSegmentIds` must be called.
|
|
calcLightState ( RoadBaseAI previousState, RoadBaseAI currentState, RoadBaseAI nextState, bool atStartTransition, bool atEndTransition ) : RoadBaseAI.TrafficLightState | ||
calcMaxSegmentLength ( ) : void | ||
getCurrentFrame ( ) : uint | ||
isEndTransitionDone ( ) : bool |
Checks if the green-to-red (=yellow) phase is finished
|
|
isInEndTransition ( ) : bool |
Checks if the green-to-red (=yellow) phase is currently active
|
|
isInStartTransition ( ) : bool |
public GetLight ( ushort segmentId, ExtVehicleType vehicleType, int lightType ) : RoadBaseAI.TrafficLightState | ||
segmentId | ushort | |
vehicleType | ExtVehicleType | |
lightType | int | |
return | RoadBaseAI.TrafficLightState |
public SetLights ( bool noTransition ) : void | ||
noTransition | bool | |
return | void |
public TimedTrafficLightsStep ( |
||
timedNode | ||
minTime | int | |
maxTime | int | |
waitFlowBalance | float | |
groupNodeIds | List |
|
makeRed | bool | |
return | System |
public calcWaitFlow ( float &wait, float &flow ) : bool | ||
wait | float | |
flow | float | |
return | bool |
public Dictionary |
||
return | CustomSegmentLights>.Dictionary |