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
def __init__(self, model): self.model = model self.builder = InfraBuilder() self.converter = Converter(None)