C# Class TrafficManager.TrafficLight.TimedTrafficLights

Afficher le fichier Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Méthodes publiques

Свойство Type Description
CurrentStep int
NodeGroup List
Steps List

Méthodes publiques

Méthode Description
AddStep ( int minTime, int maxTime, float waitFlowBalance, bool makeRed = false ) : TimedTrafficLightsStep
CheckNextChange ( ushort segmentId, ExtVehicleType vehicleType, int lightType ) : long
GetStep ( int stepId ) : TimedTrafficLightsStep
IsStarted ( ) : bool
MoveStep ( int oldPos, int newPos ) : void
NumSteps ( ) : int
RemoveStep ( int id ) : void
ResetSteps ( ) : void
SetLights ( ) : void
SimulationStep ( ) : void
SkipStep ( ) : void
Start ( ) : void
Stop ( ) : void
TimedTrafficLights ( ushort nodeId, IEnumerable nodeGroup ) : System
isMasterNode ( ) : bool

Private Methods

Méthode Description
ChangeLightMode ( ushort segmentId, ExtVehicleType vehicleType, CustomSegmentLight mode ) : void
IsInTestMode ( ) : bool
Join ( TimedTrafficLights otherTimedLight ) : void
RemoveNodeFromGroup ( ushort otherNodeId ) : void
SetTestMode ( bool testMode ) : void
handleNewSegments ( ) : void
housekeeping ( bool housekeepCustomLights ) : bool

Method Details

AddStep() public méthode

public AddStep ( int minTime, int maxTime, float waitFlowBalance, bool makeRed = false ) : TimedTrafficLightsStep
minTime int
maxTime int
waitFlowBalance float
makeRed bool
Résultat TimedTrafficLightsStep

CheckNextChange() public méthode

public CheckNextChange ( ushort segmentId, ExtVehicleType vehicleType, int lightType ) : long
segmentId ushort
vehicleType ExtVehicleType
lightType int
Résultat long

GetStep() public méthode

public GetStep ( int stepId ) : TimedTrafficLightsStep
stepId int
Résultat TimedTrafficLightsStep

IsStarted() public méthode

public IsStarted ( ) : bool
Résultat bool

MoveStep() public méthode

public MoveStep ( int oldPos, int newPos ) : void
oldPos int
newPos int
Résultat void

NumSteps() public méthode

public NumSteps ( ) : int
Résultat int

RemoveStep() public méthode

public RemoveStep ( int id ) : void
id int
Résultat void

ResetSteps() public méthode

public ResetSteps ( ) : void
Résultat void

SetLights() public méthode

public SetLights ( ) : void
Résultat void

SimulationStep() public méthode

public SimulationStep ( ) : void
Résultat void

SkipStep() public méthode

public SkipStep ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

TimedTrafficLights() public méthode

public TimedTrafficLights ( ushort nodeId, IEnumerable nodeGroup ) : System
nodeId ushort
nodeGroup IEnumerable
Résultat System

isMasterNode() public méthode

public isMasterNode ( ) : bool
Résultat bool

Property Details

CurrentStep public_oe property

public int CurrentStep
Résultat int

NodeGroup public_oe property

public List NodeGroup
Résultat List

Steps public_oe property

public List Steps
Résultat List