Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // LOCKED
- commandFlowMap
- .map.asCommandClass( EngageLockCmd )
- .toState( StateNames.LOCKED )
- .duringEnteredPhase();
- commandFlowMap
- .map.asCommandClass( DisengageLockCmd )
- .toState( StateNames.LOCKED )
- .duringTearDownPhase();
- commandFlowMap
- .map.asCommandClass( HandleIncorrectKeyMacroCmd )
- .toState( StateNames.LOCKED )
- .duringCancelledPhase();
- // CLOSED
- commandFlowMap
- .map.asCommandClass( PushDoorToCmd )
- .withGuards( OnlyIfDoorAjar )
- .toState( StateNames.CLOSED )
- .duringEnteredPhase();
- // OPENED
- commandFlowMap
- .map.asCommandClass( PullDoorAjarCmd )
- .withGuards( OnlyIfDoorPulledTo )
- .toState( StateNames.OPENED )
- .duringEnteredPhase();
- // LATCHED
- commandFlowMap
- .map.asCommandClass( EngageLatchCmd )
- .toState( StateNames.LATCHED )
- .duringEnteredPhase();
- commandFlowMap
- .map.asCommandClass( DisengageLatchCmd )
- .toState( StateNames.LATCHED )
- .duringTearDownPhase();
Add Comment
Please, Sign In to add comment