Exemplo n.º 1
0
 def load(symbols, id, children, depth, parent, encoding):
     node = Node(SymbolSet.from_pickle(symbols),
                 depth,
                 parent,
                 id=id,
                 encoding=SymbolSet.from_pickle(encoding))
     node._children = children
     for child in node.children:
         node._transitions.append(
             clingo.Function('transition', [node.id, child]))
     return node
Exemplo n.º 2
0
 def load(info):
     info['symbols'] = SymbolSet.from_pickle(info['symbols'])
     return Role(**info)
Exemplo n.º 3
0
 def load(info):
     info['symbols'] = SymbolSet.from_pickle(info['symbols'])
     return ConceptObj(**info)
Exemplo n.º 4
0
 def load(id, symbols):
     return FeatureObj(id, SymbolSet.from_pickle(symbols))