~sjdv1982/hivesystem/trunk

« back to all changes in this revision

Viewing changes to sparta/actuators/state.py

  • Committer: Sjoerd de Vries
  • Date: 2014-06-09 10:19:38 UTC
  • mfrom: (182.1.43 hive-view)
  • Revision ID: sjdv1982@gmail.com-20140609101938-7ji5g0buo09r0se6
merged with hive-view branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import libcontext, bee
 
2
from bee.segments import *
 
3
from libcontext.socketclasses import *
 
4
from libcontext.pluginclasses import *
 
5
 
 
6
class state(bee.worker):
 
7
    """
 
8
    The state actuator changes the state of the current hive 
 
9
    """
 
10
    
 
11
    #Inputs and outputs
 
12
    trig = antenna("push", "trigger")
 
13
    state = antenna("pull", "str")
 
14
    
 
15
    # Define the I/O names
 
16
    guiparams = {
 
17
      "trig" : {"name": "Trigger"},
 
18
      "state" : {"name": "State", "fold": True},
 
19
      "_memberorder" : ["trig", "state"],
 
20
    }
 
21
        
 
22
    def place(self):
 
23
        raise NotImplementedError("sparta.actuators.state has not been implemented yet") 
 
24
      
 
25