Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # time 0:
- # *****************************************************************************
- # Start SoM Dialog
- objMMI.sl_StartDialog(DriverId,
- TrainNbr,
- TrainLength,
- TrainMaxV)
- # Input driver ID
- objMMI.sl_EnterDriverId(DriverId)
- # wait until all messages in Consumer 0 are consumed and switch to next state
- Activation_1_Controller["ROC_0_A1"].wait4completed()
- # time A:
- # *****************************************************************************
- # wait until all messages in Consumer A are consumed and switch to next state
- Activation_1_Controller["ROC_A_A1"].wait4completed()
- # Enter train data
- # time B:
- # *****************************************************************************
- objMMI.sl_EnterTrainData( TrainLength,
- TrainMaxV,
- TrainBrt,
- TrainCapa)
- # wait until all messages in Consumer B are consumed and switch to next state
- Activation_1_Controller["ROC_B_A1"].wait4completed()
- # time C:
- # *****************************************************************************
- # driver selects 'START' button (immediately)
- objMMI.sl_StartOfMission()
- # wait until all messages in Consumer C are consumed and switch to next state
- Activation_1_Controller["ROC_C_A1"].wait4completed()
Add Comment
Please, Sign In to add comment