프로퍼티 | 타입 | 설명 |
---|
메소드 | 설명 | |
---|---|---|
Switch ( ) : void |
Changes the state of the switch
|
|
TrackSwitch ( ) : System |
Empty constructor for serialization
|
|
TrackSwitch ( string name, string controllerID, TrackBlock trunk, TrackBlock branchClosed, TrackBlock branchOpen ) : System |
Primary constructor with initial state The TrackBlock that you pass as trunk should be connected to Branch The TrackBlock that you pass as branch1 should be connected to Trunk1 The TrackBlock that you pass as branch2 should be connected to Trunk2 |
public TrackSwitch ( string name, string controllerID, TrackBlock trunk, TrackBlock branchClosed, TrackBlock branchOpen ) : System | ||
name | string | Track switch name |
controllerID | string | ID of the TrackController assigned to the switch |
trunk | TrackBlock | the trunk of the switch |
branchClosed | TrackBlock | |
branchOpen | TrackBlock | |
리턴 | System |