コード例 #1
0
 private Task IdleCommandTrack()
 {
     train.ThrottleMinimal();
     train.ThrottleSupport();
     train.ThrottleIdle();
     DelaySimulation.Wait(500);
     train.ThrottleRelease();
     train.DynamicBrakeApply50();
     DelaySimulation.Wait(500);
     train.DynamicBrakeRelease();
     train.BrakesFullService();
     return(Task.CompletedTask);
 }
コード例 #2
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesRelease()
 {
     Notify("Brakes release"); DelaySimulation.WaitDefault();
 }
コード例 #3
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesFullService()
 {
     Console.WriteLine("Brakes Full Service"); DelaySimulation.WaitDefault();
 }
コード例 #4
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ThrottleSupport()
 {
     Console.WriteLine("Throttle Support"); DelaySimulation.WaitDefault();
 }
コード例 #5
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ThrottleIdle()
 {
     Console.WriteLine("Throttle Idle"); DelaySimulation.WaitDefault();
 }
コード例 #6
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void PantographRise()
 {
     Console.WriteLine("Locomotive pantograph rised"); DelaySimulation.WaitDefault();
 }
コード例 #7
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void IBApply(int HForce)
 {
     Console.WriteLine("Independent brake apply at {0}", HForce); DelaySimulation.Wait(500);
 }
コード例 #8
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void SystemCheck()
 {
     Console.WriteLine("Locomotive prestart system checking"); DelaySimulation.WaitDefault();
 }
コード例 #9
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void PantographDetach()
 {
     Notify("Locomotive panthograph detached");
     Notify(CurrentState = _defaultState);
     DelaySimulation.WaitDefault();
 }
コード例 #10
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void PantographRise()
 {
     Notify("Locomotive pantograph rised"); DelaySimulation.WaitDefault();
 }
コード例 #11
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void SystemCheck()
 {
     Notify("Locomotive prestart system checking"); DelaySimulation.WaitDefault();
 }
コード例 #12
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void IBRelease()
 {
     Notify("Independent brake release"); DelaySimulation.WaitDefault();
 }
コード例 #13
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void IBApply(int HForce)
 {
     Notify($"Independent brake apply at {HForce}"); DelaySimulation.Wait(50);
 }
コード例 #14
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesMedium()
 {
     Notify("Brakes medium"); DelaySimulation.WaitDefault();
 }
コード例 #15
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesMinimum()
 {
     Notify("Brakes minimal"); DelaySimulation.WaitDefault();
 }
コード例 #16
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesRelease()
 {
     Console.WriteLine("Brakes release"); DelaySimulation.WaitDefault();
 }
コード例 #17
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesMinimum()
 {
     Console.WriteLine("Brakes minimal"); DelaySimulation.WaitDefault();
 }
コード例 #18
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ThrottleIdle()
 {
     Notify("Throttle Idle"); DelaySimulation.WaitDefault();
 }
コード例 #19
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesMedium()
 {
     Console.WriteLine("Brakes medium"); DelaySimulation.WaitDefault();
 }
コード例 #20
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ThrottleMinimal()
 {
     Notify("Throttle Minimal"); DelaySimulation.WaitDefault();
 }
コード例 #21
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void IBRelease()
 {
     Console.WriteLine("Independent brake release"); DelaySimulation.WaitDefault();
 }
コード例 #22
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ThrottleSupport()
 {
     Notify("Throttle Support"); DelaySimulation.WaitDefault();
 }
コード例 #23
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void PantographDetach()
 {
     Console.WriteLine("Locomotive panthograph detached"); DelaySimulation.WaitDefault();
 }
コード例 #24
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ReverserForward()
 {
     Notify("Reverser is set to forward"); DelaySimulation.Wait(70);
 }
コード例 #25
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ThrottleMinimal()
 {
     Console.WriteLine("Throttle Minimal"); DelaySimulation.WaitDefault();
 }
コード例 #26
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ReverserReverse()
 {
     Notify("Reverser is set to reverse"); DelaySimulation.Wait(60);
 }
コード例 #27
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesEmergency()
 {
     Console.WriteLine("Brakes Emergrncy. Hold On!"); DelaySimulation.WaitDefault();
 }
コード例 #28
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void ReverserNeutral()
 {
     Notify("Reverser neutral"); DelaySimulation.Wait(70);
 }
コード例 #29
0
ファイル: CarVehicle.cs プロジェクト: MaxRev-Dev/My-Labs
 public void Drive(GearboxPosition position)
 {
     Notify("Car is moving..");
     DelaySimulation.WaitDefault();
     Notify("Car stoped");
 }
コード例 #30
0
ファイル: TrainSD40.cs プロジェクト: MaxRev-Dev/My-Labs
 public void BrakesFullService()
 {
     Notify("Brakes Full Service"); DelaySimulation.WaitDefault();
 }