C# 클래스 TrafficManager.TrafficLight.TrafficLightSimulation

파일 보기 프로젝트 열기: Katalyst6/CSL.TransitAddonMod 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LightSimulationByNodeId TrafficLightSimulation>.Dictionary
nodeId ushort

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
OnLevelUnloading ( ) : void
destroyLiveSegments ( ) : void
handleNewSegments ( ) : void
housekeeping ( bool mayDeleteSegmentLights ) : void
setupLiveSegments ( ) : void

메소드 상세

AddNodeToSimulation() 공개 정적인 메소드

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

Destroy() 공개 메소드

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

DestroyManualTrafficLight() 공개 메소드

public DestroyManualTrafficLight ( ) : void
리턴 void

DestroyTimedTrafficLight() 공개 메소드

public DestroyTimedTrafficLight ( ) : void
리턴 void

GetNodeSimulation() 공개 정적인 메소드

public static GetNodeSimulation ( ushort nodeId ) : TrafficLightSimulation
nodeId ushort
리턴 TrafficLightSimulation

IsManualLight() 공개 메소드

public IsManualLight ( ) : bool
리턴 bool

IsSimulationActive() 공개 메소드

public IsSimulationActive ( ) : bool
리턴 bool

IsTimedLight() 공개 메소드

public IsTimedLight ( ) : bool
리턴 bool

IsTimedLightActive() 공개 메소드

public IsTimedLightActive ( ) : bool
리턴 bool

RemoveNodeFromSimulation() 공개 정적인 메소드

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

SetupManualTrafficLight() 공개 메소드

public SetupManualTrafficLight ( ) : void
리턴 void

SetupTimedTrafficLight() 공개 메소드

public SetupTimedTrafficLight ( List nodeGroup ) : void
nodeGroup List
리턴 void

SimulationStep() 공개 메소드

public SimulationStep ( ) : void
리턴 void

TrafficLightSimulation() 공개 메소드

public TrafficLightSimulation ( ushort nodeId ) : System
nodeId ushort
리턴 System

프로퍼티 상세

LightSimulationByNodeId 공개적으로 정적으로 프로퍼티

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

nodeId 공개적으로 프로퍼티

public ushort nodeId
리턴 ushort