1 from sfa.util.enumeration import Enum
3 # recognized top level rspec elements
9 COMPONENT_MANAGER='COMPONENT_MANAGER',
10 HARDWARE_TYPE='HARDWARE_TYPE',
12 INTERFACE='INTERFACE',
13 INTERFACE_REF='INTERFACE_REF',
17 LINK_TYPE='LINK_TYPE',
22 SLIVER_TYPE='SLIVER_TYPE',
24 GRANULARITY='GRANULARITY',
27 POSITION_3D='POSITION_3D',
33 def __init__(self, element_type, path):
34 if not element_type in RSpecElements:
35 raise InvalidRSpecElement(element_type)
36 self.type = element_type