Свойство | Тип | Описание | |
---|---|---|---|
lastFlowWaitCalc | uint | ||
maxTime | int | ||
maxWait | float | ||
minFlow | float | ||
minTime | int | ||
segmentLights | CustomSegmentLights>.Dictionary | ||
startFrame | uint | ||
waitFlowBalance | float |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | RoadBaseAI.TrafficLightState |
public SetLights ( bool noTransition ) : void | ||
noTransition | bool | |
Результат | void |
public StepDone ( bool updateValues ) : bool | ||
updateValues | bool | |
Результат | bool |
public TimedTrafficLightsStep ( |
||
timedNode | ||
minTime | int | |
maxTime | int | |
waitFlowBalance | float | |
groupNodeIds | List |
|
makeRed | bool | |
Результат | System |
public calcWaitFlow ( float &wait, float &flow ) : bool | ||
wait | float | |
flow | float | |
Результат | bool |
public Dictionary |
||
Результат | CustomSegmentLights>.Dictionary |