| 12345678910111213141516171819202122 |
- '''This file is part of AToMPM - A Tool for Multi-Paradigm Modelling
- Copyright 2011 by the AToMPM team and licensed under the LGPL
- See COPYING.lesser and README.md in the root of this project for full details'''
- from .primitive import Primitive
- # Abstract class
- class ControlPrimitive(Primitive):
- def __init__(self):
- super(ControlPrimitive, self).__init__()
- self.success = [] # [Packet]
- self.fail = [] # [Packet]
- def success_in(self, packet):
- raise AttributeError('Method not implemented')
- def fail_in(self, packet):
- raise AttributeError('Method not implemented')
- def reset(self):
- self.success = []
- self.fail = []
|