composite_primitive.py 1.0 KB

123456789101112131415161718192021222324252627
  1. # Copyright 2023 Modelling, Simulation and Design Lab (MSDL)
  2. # at the University of Antwerp (http://msdl.uantwerpen.be/).
  3. #
  4. # Licensed under the GNU Public License v3 (the "License");
  5. # you may not use this file except in compliance with the
  6. # License. You may obtain a copy of the License at
  7. # https://www.gnu.org/licenses/gpl-3.0.en.html
  8. #
  9. # Unless required by applicable law or agreed to in writing,
  10. # software distributed under the License is distributed on an
  11. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  12. # either express or implied. See the License for the specific
  13. # language governing permissions and limitations under the
  14. # License.
  15. from pytcore.tcore.primitive import Primitive
  16. # Abstract class
  17. class CompositePrimitive(Primitive):
  18. def __init__(self):
  19. super(CompositePrimitive, self).__init__()
  20. def packet_in(self, packet):
  21. raise AttributeError('Method not implemented')
  22. def next_in(self, packet):
  23. raise AttributeError('Method not implemented')