C# Class TrafficManager.TrafficLight.TrafficLightSimulation

Mostrar archivo Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Public Properties

Property Type Description
LightSimulationByNodeId TrafficLightSimulation>.Dictionary
nodeId ushort

Public Methods

Method Description
AddNodeToSimulation ( ushort nodeId ) : TrafficLightSimulation

Adds a traffic light simulation to the node with the given id

Destroy ( bool destroyGroup ) : void

Stops & destroys the traffic light simulation(s) at this node (group)

DestroyManualTrafficLight ( ) : void
DestroyTimedTrafficLight ( ) : void
GetNodeSimulation ( ushort nodeId ) : TrafficLightSimulation
IsManualLight ( ) : bool
IsSimulationActive ( ) : bool
IsTimedLight ( ) : bool
IsTimedLightActive ( ) : bool
RemoveNodeFromSimulation ( ushort nodeId, bool destroyGroup ) : void
SetupManualTrafficLight ( ) : void
SetupTimedTrafficLight ( List nodeGroup ) : void
SimulationStep ( ) : void
TrafficLightSimulation ( ushort nodeId ) : System

Private Methods

Method Description
OnLevelUnloading ( ) : void
destroyLiveSegments ( ) : void
handleNewSegments ( ) : void
housekeeping ( bool mayDeleteSegmentLights ) : void
setupLiveSegments ( ) : void

Method Details

AddNodeToSimulation() public static method

Adds a traffic light simulation to the node with the given id
public static AddNodeToSimulation ( ushort nodeId ) : TrafficLightSimulation
nodeId ushort
return TrafficLightSimulation

Destroy() public method

Stops & destroys the traffic light simulation(s) at this node (group)
public Destroy ( bool destroyGroup ) : void
destroyGroup bool
return void

DestroyManualTrafficLight() public method

public DestroyManualTrafficLight ( ) : void
return void

DestroyTimedTrafficLight() public method

public DestroyTimedTrafficLight ( ) : void
return void

GetNodeSimulation() public static method

public static GetNodeSimulation ( ushort nodeId ) : TrafficLightSimulation
nodeId ushort
return TrafficLightSimulation

IsManualLight() public method

public IsManualLight ( ) : bool
return bool

IsSimulationActive() public method

public IsSimulationActive ( ) : bool
return bool

IsTimedLight() public method

public IsTimedLight ( ) : bool
return bool

IsTimedLightActive() public method

public IsTimedLightActive ( ) : bool
return bool

RemoveNodeFromSimulation() public static method

public static RemoveNodeFromSimulation ( ushort nodeId, bool destroyGroup ) : void
nodeId ushort
destroyGroup bool
return void

SetupManualTrafficLight() public method

public SetupManualTrafficLight ( ) : void
return void

SetupTimedTrafficLight() public method

public SetupTimedTrafficLight ( List nodeGroup ) : void
nodeGroup List
return void

SimulationStep() public method

public SimulationStep ( ) : void
return void

TrafficLightSimulation() public method

public TrafficLightSimulation ( ushort nodeId ) : System
nodeId ushort
return System

Property Details

LightSimulationByNodeId public_oe static_oe property

For each node id: traffic light simulation assigned to the node
public static Dictionary LightSimulationByNodeId
return TrafficLightSimulation>.Dictionary

nodeId public_oe property

public ushort nodeId
return ushort