C# 클래스 CommonLib.TrackSwitch

파일 보기 프로젝트 열기: johnselker/Bazinga1186

Private Properties

프로퍼티 타입 설명

공개 메소드들

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

메소드 상세

Switch() 공개 메소드

Changes the state of the switch
public Switch ( ) : void
리턴 void

TrackSwitch() 공개 메소드

Empty constructor for serialization
public TrackSwitch ( ) : System
리턴 System

TrackSwitch() 공개 메소드

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