Esempio n. 1
0
class Generator:
    def __init__(self, model):
        self.model = model
        self.builder = InfraBuilder()
        self.converter = Converter(None)

    def get(self):
        graph = self.builder.get(self.model)
        self.converter.set_graph(graph)
        virt = self.converter.get()
        return virt

    def set_model(self, model):
        self.model = model
Esempio n. 2
0
 def __init__(self, model):
     self.model = model
     self.builder = InfraBuilder()
     self.converter = Converter(None)