Esempio n. 1
0
 public IMonitor_Door ChangeStateIfPossible(MonitorController_Door.MonitorState targetState)
 {
     // Enter Signal에 반응한다.
     if (targetState == MonitorController_Door.MonitorState.Entering)
     {
         Monitor_Door_Entering next = new Monitor_Door_Entering(_parent);
         return next;
     }
     return null;
 }
Esempio n. 2
0
 public IMonitor_Door Run(Monitor_UnderlyingPrice.Signal signal)
 {
     if (_parent.EnterAfterCancel)
     {
         // rebalancing signal이 오고 AutoEnter 상태라면 Entering state로 변경
         Monitor_Door_Entering next = new Monitor_Door_Entering(_parent);
         return next;
     }
     return this;
 }