C# 클래스 TrainControllerLib.TrainOperator

상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: johnselker/Bazinga1186 1 사용 예제들

공개 메소드들

메소드 설명
TrainOperator ( ) : System

Primary constructor, to be used for a module demo ONLY

TrainOperator ( ITrain myTrain, TrainControllerLib.TrainController myTrainController ) : System

Secondary constructor, to be used by the CTC

비공개 메소드들

메소드 설명
BrakeFailure_Click ( object sender, EventArgs e ) : void

Simulate a Brake Failure

CircuitFailure_Click ( object sender, EventArgs e ) : void

Simulate a Track Circuit Failure

CreateTrain_Click ( object sender, EventArgs e ) : void

Start the GUI, and create a train and train controller if in a demo

EmergencyBrake_Click ( object sender, EventArgs e ) : void

Engage the train's emergency brake

EngineFailure_Click ( object sender, EventArgs e ) : void

Simulate an Engine Failure

EnterSpeed_Click ( object sender, EventArgs e ) : void

Send a manual speed command to the train controller

GetRedlineSchedule ( ) : Queue

Gets the redline schedule

PowerFailure_Click ( object sender, EventArgs e ) : void

Simulate a Track Power Failure

Update ( object sender, EventArgs e ) : void

Refresh the GUI, and update the train controller if in a demo

UpdateDisplay ( object sender, EventArgs e ) : void

Update the current speed and position of the train

메소드 상세

TrainOperator() 공개 메소드

Primary constructor, to be used for a module demo ONLY
public TrainOperator ( ) : System
리턴 System

TrainOperator() 공개 메소드

Secondary constructor, to be used by the CTC
public TrainOperator ( ITrain myTrain, TrainControllerLib.TrainController myTrainController ) : System
myTrain ITrain The train associated with this GUI
myTrainController TrainControllerLib.TrainController The train controller associated with this GUI
리턴 System