Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 736 | olof | 1 | ########################################################### |
| 2 | # |
||
| 3 | # Template for node interface |
||
| 4 | # |
||
| 5 | ########################################################### |
||
| 6 | |||
| 7 | class NodeIfBase: |
||
| 8 | config = [] |
||
| 9 | pktHandler = None |
||
| 750 | olof | 10 | ownerNotifier = None |
| 736 | olof | 11 | |
| 750 | olof | 12 | DEFAULT_CONFIG = {} |
| 13 | |||
| 14 | def __init__(self, pktHandler, cfg = None): |
||
| 736 | olof | 15 | self.config = cfg |
| 16 | self.pktHandler = pktHandler |
||
| 17 | |||
| 18 | def setPktHandler(self, pktHandler): |
||
| 19 | self.pktHandler = pktHandler |
||
| 750 | olof | 20 | |
| 21 | def setIfNotifier(self, ifNotifier): |
||
| 22 | self.ownerNotifier = ifNotifier |
||
| 736 | olof | 23 | |
| 24 | def start(self): |
||
| 25 | pass |
||
| 26 | |||
| 27 | def stop(self): |
||
| 28 | pass |
||
| 737 | olof | 29 | |
| 30 | def running(self): |
||
| 31 | pass |