C# Class TrafficManager.TrafficLight.TimedTrafficLights

Datei anzeigen Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Public Properties

Property Type Description
CurrentStep int
NodeGroup List
Steps List

Public Methods

Method 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

Method 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 method

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

CheckNextChange() public method

public CheckNextChange ( ushort segmentId, ExtVehicleType vehicleType, int lightType ) : long
segmentId ushort
vehicleType ExtVehicleType
lightType int
return long

GetStep() public method

public GetStep ( int stepId ) : TimedTrafficLightsStep
stepId int
return TimedTrafficLightsStep

IsStarted() public method

public IsStarted ( ) : bool
return bool

MoveStep() public method

public MoveStep ( int oldPos, int newPos ) : void
oldPos int
newPos int
return void

NumSteps() public method

public NumSteps ( ) : int
return int

RemoveStep() public method

public RemoveStep ( int id ) : void
id int
return void

ResetSteps() public method

public ResetSteps ( ) : void
return void

SetLights() public method

public SetLights ( ) : void
return void

SimulationStep() public method

public SimulationStep ( ) : void
return void

SkipStep() public method

public SkipStep ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

TimedTrafficLights() public method

public TimedTrafficLights ( ushort nodeId, IEnumerable nodeGroup ) : System
nodeId ushort
nodeGroup IEnumerable
return System

isMasterNode() public method

public isMasterNode ( ) : bool
return bool

Property Details

CurrentStep public_oe property

public int CurrentStep
return int

NodeGroup public_oe property

public List NodeGroup
return List

Steps public_oe property

public List Steps
return List