BoolActions.html


001| ''' BOOL Actions.
001| 
001|     May 2010
001|     Chris@Sonnack.com
001| '''

002| print("loading: Actions...")
003| 
004| from MetaObj import BoolMetaObject
005| 
006| 
007| class BoolAction (BoolMetaObject):
008|     ''' Bool Action Meta Class.
008|     '''

009|     Inputs = None
010|     Outputs = None
011|     ExecLists = None
012| 
013|     def __init__(self, _name):
014|         # Initialize parent object...
015|         super(BoolAction,self).__init__(_name)
016|         # Initialize Action properties...
017|         Inputs = {}
018|         Outputs = {}
019|         ExecLists = []
020| 
021| class BoolIfAction (BoolAction):
022|     ''' Bool If Action Meta Class.
022|     '''

023|     def __init__(self, _name):
024|         # Initialize parent object...
025|         super(BoolIfAction,self).__init__(_name)
026|         # Initialize Action properties...
027|         Inputs['if_expr'] = ()
028|         Inputs['if_list'] = ()
029|         Inputs['elseif_expr'] = ()
030|         Inputs['elseif_list'] = ()
031|         Inputs['else_list'] = ()
032|         # Lists: (name, gate-expr, stmts)
033|         ExecLists = [ ('', None, [])
034|                     , ('if', ('if_expr',None), [])
035|                     , ('elseif', ('elseif_expr',None), [])
036|                     , ('else', (True,), [])
037|                     ]
038| 
039| 
040| 
041| print("loaded: Actions")
042| ###eof###
043|