Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. ###########################################################
  2. #
  3. # Template for a state space
  4. #
  5. ###########################################################
  6.  
  7. class StateSpace:
  8.    
  9.     DESCRIPTIVE_NAME = 'New Packet Filter'
  10.  
  11.     ''' Called to restore the default state '''
  12.     def reset(self):
  13.         pass
  14.  
  15.     ''' Called when state space is loaded, before any calls to run '''
  16.     def load(self):
  17.         pass
  18.    
  19.     ''' Called just before state space is dumped to disk '''
  20.     def unload(self):
  21.         pass
  22.    
  23.     ''' Triggered by filters as response to incoming packets '''
  24.     def run(self, args):
  25.         pass
  26.