class OpenFlowRSpecManager(RSpecManagerBase): def __init__(self): self.__crafter = FOAMLibCrafter() self.__parser = FOAMLibParser() def compose_advertisement(self, resources): return self.__crafter.get_advertisement(resources) def compose_manifest(self, slivers): return self.__crafter.get_manifest(slivers) def parse_request(self, rspec): return self.__parser.parse_request(rspec)
def __init__(self): self.__crafter = FOAMLibCrafter() self.__parser = FOAMLibParser()