Свойство | Type | Description | |
---|---|---|---|
lastFlowWaitCalc | uint | ||
maxTime | int | ||
maxWait | float | ||
minFlow | float | ||
minTime | int | ||
segmentLights | CustomSegmentLights>.Dictionary | ||
startFrame | uint | ||
waitFlowBalance | float |
Méthode | 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 |
Méthode | 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 | |
Résultat | RoadBaseAI.TrafficLightState |
public SetLights ( bool noTransition ) : void | ||
noTransition | bool | |
Résultat | void |
public StepDone ( bool updateValues ) : bool | ||
updateValues | bool | |
Résultat | bool |
public TimedTrafficLightsStep ( |
||
timedNode | ||
minTime | int | |
maxTime | int | |
waitFlowBalance | float | |
groupNodeIds | List |
|
makeRed | bool | |
Résultat | System |
public calcWaitFlow ( float &wait, float &flow ) : bool | ||
wait | float | |
flow | float | |
Résultat | bool |
public Dictionary |
||
Résultat | CustomSegmentLights>.Dictionary |