From e99d4446af1d2f2419c4de4fe3874f17b0873a48 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 10 Oct 2013 19:06:16 +0200 Subject: [PATCH] name some things a bit clearer: open -> unlock, close -> lock --- actor.py | 8 ++++---- statemachine.odg | Bin 16440 -> 16453 bytes statemachine.py | 42 +++++++++++++++++++++--------------------- tyshell | 4 ++-- tysock.py | 2 +- 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/actor.py b/actor.py index 3abd232..248edeb 100644 --- a/actor.py +++ b/actor.py @@ -3,13 +3,13 @@ import RPi.GPIO as GPIO class Actor: CMD_BUZZ = 0 - CMD_OPEN = 1 - CMD_CLOSE = 2 + CMD_UNLOCK = 1 + CMD_LOCK = 2 CMDs = { CMD_BUZZ: ("buzz", 12, [(True, 0.3), (False, 2.0)]), - CMD_OPEN: ("open", 16, [(None, 0.2), (True, 0.3), (False, 1.0)]), - CMD_CLOSE: ("close", 22, [(None, 0.2), (True, 0.3), (False, 1.0)]), + CMD_UNLOCK: ("unlock", 16, [(None, 0.2), (True, 0.3), (False, 1.0)]), + CMD_LOCK: ("lock", 22, [(None, 0.2), (True, 0.3), (False, 1.0)]), } def __init__(self): diff --git a/statemachine.odg b/statemachine.odg index 3201b4288b15c73cc4c24aee8d92f4bf9333b7e6..64b3cebbac907a6b1941c82b35deab817b6c0882 100644 GIT binary patch delta 13146 zcmZvD1yEhhv*!ga4#C|exI;*Ax8RxtcX#)LdvJ%K!GcS0_u#GuAMqEVAJ@e#;m$usc?}0mh_jg+;Fg=V6Xv$DsU#LYlweqRiWv02%KKzak z+72kZo6}uht^060?K?HF*RN=okxD1u+FBEhqW=0~1@hy;q` zQWXJ>j*c=jGs~v1*jQQ)jgG<=v9Pma+z#(J=1&%Dl;R)-%h6;U4~X}M6@k*dGO+Tn zwmF(u6pCUQ1v_pZm{!WZnpmGH*{Nv9Pa4Wa$+u28QHcG($d6JU#HJd<2%UyP9E>H- zMzH`2ATFcL(Y!Wg+=2|GESt@V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Q{w5|aQ`BBvV^Ol19ypNe1C*VrWy)&EM|UIKems-N{?@PD z!-l3DxMWBaC=J2226#{qiA!Hu*WbKCu-tMHM_?5aqwLM98q?qs`ru|6g(zihXc{i6 z%?mDW`i+_PBOye55g{r=>&NZ)O#vG2H^1mU%Q&h-0cVOH%8utH2u`^)nT>iOggNO| zK)pF#VTEsu(^2gw#Y50~ma~q)vOF3bk>*WW<%;YC@$Xa4&(Ut=G1-x9Sn>4r+~jOh z+aH}cp&j#!6_Nc@hc!mweBczfI$5Kaoerj&^ys$iEZ25V<^y2u{cP zg?lON@Wv3|7Z67PC%&wgM%CRflk8z-sZ|;Cw5OyBRpPp?GaSMfAHQ}q>%GQIr=yzj z%x7?~l$q}N4Qq2`pcuB)=`CK_HPu*Ls^11mN-&{UH#Bk@#

U1r%!SG9MM5uYeI+THzwB7eP#VPj*krDeE)GaQYG4-|^Y%f0(l zp^QV($P~xCART6+2taam6QbE1K%WRhlE{m2xO+p`=RhkeMxBz(nn4!$G0ow7AX(1o z%&dB#l2^5+sS+T**TI>A?{bvQrNIN8z^d#*VUkLJD1=irfLDrJ(nn=R6CV(DY0%@! zcWr*YM|OE<+uw=$!)GC1w=Od7#bMNy*wT^a+U`^#ve43wRPplVb;^kB?Al+L8qY59 z#=raJq+|Q-nKeYC_B9mgpe0f=@p*Bl{!iwBSwBDsya4~OmE}qUNp1`f$ix4CV=Ilc z9DDGv|9SqAWGTS^FY$mbpbGmRpt`Y0KojC$)srA6%Kv&9k|ZF+r}?kuzcKFjM|>4OLz?6%;)zW)#Q;1y;7 diff --git a/statemachine.py b/statemachine.py index 1be022b..6a3e889 100644 --- a/statemachine.py +++ b/statemachine.py @@ -14,11 +14,11 @@ def play_sound (what): fire_and_forget ([SOUNDS_PLAYER,soundfile], logger.error, "StateMachine: ") -# StateOpening constants +# StateUnlocking constants OPEN_REPEAT_TIMEOUT = 8 OPEN_REPEAT_NUMBER = 3 -# StateClosing constants +# StateLocking constants CLOSE_REPEAT_TIMEOUT = 8 CLOSE_REPEAT_NUMBER = 3 @@ -58,7 +58,7 @@ class StateMachine(): # commands you can send CMD_PINS = 0 CMD_BUZZ = 1 - CMD_OPEN = 2 + CMD_UNLOCK = 2 CMD_WAKEUP = 3 CMD_LAST = 4 @@ -72,7 +72,7 @@ class StateMachine(): def handle_buzz_event(self,arg): # this shouldn't be overwritten self.actor.act(Actor.CMD_BUZZ) arg("200 okay: buzz executed") - def handle_open_event(self,arg): + def handle_cmd_unlock_event(self,arg): if arg is not None: arg("412 Precondition Failed: The current state (%s) cannot handle the OPEN event" % self.__class__.__name__) def handle_wakeup_event(self): @@ -87,8 +87,8 @@ class StateMachine(): self.handle_pins_event() elif arg is CMD_BUZZ: self.handle_buzz_event(arg) - elif arg is CMD_OPEN: - self.handle_open_event(arg) + elif arg is CMD_UNLOCK: + self.handle_cmd_unlock_event(arg) elif arg is CMD_WAKEUP: self.handle_wakeup_event() else: @@ -112,19 +112,19 @@ class StateMachine(): pins = self.pins() if not pins.door_locked: return StateAboutToOpen(self.state_machine) - def handle_open_event(self,callback): + def handle_cmd_unlock_event(self,callback): # intentionally not calling super() implementation - return StateOpening(callback,self.state_machine) + return StateUnlocking(callback,self.state_machine) - class StateOpening(State): + class StateUnlocking(State): def __init__(self,callback,sm): # construct a nervlist - nervlist = [(t*OPEN_REPEAT_TIMEOUT, lambda: self.actor().act(Actor.CMD_OPEN)) for t in xrange(1, OPEN_REPEAT_NUMBER+1)] + nervlist = [(t*OPEN_REPEAT_TIMEOUT, lambda: self.actor().act(Actor.CMD_UNLOCK)) for t in xrange(1, OPEN_REPEAT_NUMBER+1)] nervlist += [((OPEN_REPEAT_NUMBER+1)*OPEN_REPEAT_TIMEOUT, self.could_not_open)] super().__init__(sm,nervlist) self.callbacks=[callback] # FIXME: can we send "202 processing: Trying to open the door" here? Are the callbacks multi-use? - self.actor().act(Actor.CMD_OPEN) + self.actor().act(Actor.CMD_UNLOCK) def notify(self, did_it_work): s = "200 okay: door open" if did_it_work else ("500 internal server error: Couldn't open door with %d tries à %f seconds" % (OPEN_REPEAT_NUMBER,OPEN_REPEAT_TIMEOUT)) for cb in self.callbacks: @@ -136,7 +136,7 @@ class StateMachine(): if not pins.door_locked: self.notify(True) return StateAboutToOpen(self.state_machine) - def handle_open_event(self,callback): + def handle_cmd_unlock_event(self,callback): # intentionally not calling super() implementation # FIXME: 202 notification also here if possible self.callbacks.append(callback) @@ -146,11 +146,11 @@ class StateMachine(): return StateZu(self.state_machine) class AbstractStateWhereOpeningIsRedundant(State): - def handle_open_event(self, callback): + def handle_cmd_unlock_event(self, callback): # intentionally not calling super() implementation callback("299 redundant: Space seems to be already open. Still processing your request tough.") logger.warning("Received OPEN command in StateAboutToOpen. This should not be necessary.") - self.actor().act(Actor.CMD_OPEN) + self.actor().act(Actor.CMD_UNLOCK) class StateAboutToOpen(AbstractStateWhereOpeningIsRedundant): def __init__(self, sm): @@ -185,19 +185,19 @@ class StateMachine(): return StateZu(self.state_machine) # handle_wakeup_event intentionally not overwritten - class StateClosing(State): + class StateLocking(State): # FIXME: Why does this even have callbacks? - # TODO: share code with StateOpening + # TODO: share code with StateUnlocking def __init__(self,sm): # construct a nervlist - nervlist = [(t*CLOSE_REPEAT_TIMEOUT, lambda: self.actor().act(Actor.CMD_CLOSE)) for t in xrange(1, CLOSE_REPEAT_NUMBER+1)] + nervlist = [(t*CLOSE_REPEAT_TIMEOUT, lambda: self.actor().act(Actor.CMD_LOCK)) for t in xrange(1, CLOSE_REPEAT_NUMBER+1)] nervlist += [((CLOSE_REPEAT_NUMBER+1)*CLOSE_REPEAT_TIMEOUT, self.could_not_close)] super().__init__(sm, nervlist) self.callbacks=[] # FIXME: can we send "202 processing: Trying to close the door" here? Are the callbacks multi-use? self.tries = 0 assert self.pins().door_closed, "Door is open while we should close it, this must not happen" - self.actor().act(Actor.CMD_CLOSE) + self.actor().act(Actor.CMD_LOCK) def notify(self, did_it_work): s = "200 okay: door closed" if did_it_work else ("500 internal server error: Couldn't close door with %d tries à %f seconds" % (CLOSE_REPEAT_NUMBER,CLOSE_REPEAT_TIMEOUT)) for cb in self.callbacks: @@ -211,7 +211,7 @@ class StateMachine(): return StateAboutToOpen(self.state_machine) if pins.door_locked: return SpaceZu(self.state_machine) - def handle_open_event(self,callback): + def handle_cmd_unlock_event(self,callback): callback("409 conflict: The server is currently trying to close the door. Try again later.") def could_not_close(self): logger.critical("Couldn't close door after %d tries. Going back to StateAboutToOpen." % CLOSE_REPEAT_NUMBER) @@ -227,12 +227,12 @@ class StateMachine(): def handle_wakeup_event(self): over = time.time() - self.time_entered if over >= LEAVE_TIMEOUT: - return StateClosing(self.state_machine) + return StateLocking(self.state_machine) class StateLeaving(State): def handle_pins_event(self): if self.pins().door_closed: - return StateClosing(self.state_machine) + return StateLocking(self.state_machine) if self.pins().door_locked: return StateZu(self.state_machine) def handle_wakeup_event(self): diff --git a/tyshell b/tyshell index 2280926..1ffccfe 100755 --- a/tyshell +++ b/tyshell @@ -47,8 +47,8 @@ def exitcmd(c): commands = { 'exit': exitcmd, 'help': helpcmd, - 'open': sendcmd(tuerSock, 'open'), - 'close': sendcmd(tuerSock, 'close'), + 'open': sendcmd(tuerSock, 'unlock'), + 'unlock': sendcmd(tuerSock, 'unlock'), 'buzz': sendcmd(tuerSock, 'buzz'), } diff --git a/tysock.py b/tysock.py index 3951d1f..3a0cc3a 100644 --- a/tysock.py +++ b/tysock.py @@ -26,7 +26,7 @@ def forcerm(name): class TySocket(): CMDs = { b'buzz': StateMachine.CMD_BUZZ, - b'open': StateMachine.CMD_OPEN, + b'unlock': StateMachine.CMD_UNLOCK, } def __init__(self, sm): -- 2.30.2