@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; }
public Unode(MemoNode myNode) { if (myNode == null) { throw new NullPointerException(); } this.myNode = myNode.getRealNode(); }
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); }
public MemoNode delChild(MemoNode node, boolean doOther) { myNode = myNode.delChild(node.getRealNode(), doOther); return this; }