Esempio n. 1
0
 @Override
 public Arc addChild(MemoNode child, boolean doOther) {
   Arc arc = myNode.addChild(child.getRealNode(), doOther);
   myNode = arc.parent;
   if (myNode == null) System.out.println("Error, actuatedNode going to null, addChild - bool");
   return arc;
 }
Esempio n. 2
0
 public Unode(MemoNode myNode) {
   if (myNode == null) {
     throw new NullPointerException();
   }
   this.myNode = myNode.getRealNode();
 }
Esempio n. 3
0
 public ArrayList<MemoNode> search(MemoNode algorithm, int topx) {
   ArrayList<MemoNode> preambles = algorithm.getChildrenByValue("PreAmble", -1);
   ArrayList<MemoNode> patterns = algorithm.getChildrenByValue("Pattern", -1);
   return myNode.search(preambles, patterns, topx);
 }
Esempio n. 4
0
 public MemoNode delChild(MemoNode node, boolean doOther) {
   myNode = myNode.delChild(node.getRealNode(), doOther);
   return this;
 }