示例#1
0
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)
示例#2
0
 def __init__(self):
     self.__crafter = FOAMLibCrafter()
     self.__parser = FOAMLibParser()