public class PredicateNode extends Node
BNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE
Constructor and Description |
---|
PredicateNode() |
PredicateNode(Node p) |
Modifier and Type | Method and Description |
---|---|
void |
add(Node n) |
void |
addAll(ArrayList<Node> ns) |
boolean |
evaluate(StateRunnable si) |
double |
evaluateFloat(Node n,
StateRunnable si) |
Node |
first() |
void |
gatherPreceeding() |
ArrayList<Node> |
getChildren() |
void |
remove(Node n) |
void |
replaceSymbols(HashMap<String,String> map) |
void |
supplantByChild() |
String |
toString() |
deparent, detachNext, detachPrevious, dispose, isClose, isOpen, linkNext, next, parent, previous, replaceChild, replaceNext, replacePrevious, replaceWith, setParent, siblingsToString
public PredicateNode()
public PredicateNode(Node p)
public boolean evaluate(StateRunnable si) throws ContentError, ConnectionError, RuntimeError
ContentError
ConnectionError
RuntimeError
public void add(Node n)
public Node first()
public void gatherPreceeding() throws ParseError
ParseError
public double evaluateFloat(Node n, StateRunnable si) throws ContentError, ConnectionError, RuntimeError
ContentError
ConnectionError
RuntimeError
public void supplantByChild() throws ParseError
ParseError
public void replaceSymbols(HashMap<String,String> map)
replaceSymbols
in class Node
Copyright © 2020. All rights reserved.