Class SimpleNode
java.lang.Object
|
+----SimpleNode
- public class SimpleNode
- extends Object
- implements Node
-
children
-
-
id
-
-
parent
-
-
parser
-
-
SimpleNode(int)
-
-
SimpleNode(PotParser, int)
-
-
dump(String)
-
-
evaluate()
- Evaluate the potential and return its value
-
interpret()
- SimpleNode should never get interpreted, so we just throw an exception here
-
jjtAddChild(Node, int)
-
-
jjtClose()
-
-
jjtGetChild(int)
-
-
jjtGetNumChildren()
-
-
jjtGetParent()
-
-
jjtOpen()
-
-
jjtSetParent(Node)
-
-
setParser(PotParser)
- Set the parser to be used to define the potential
-
toString()
-
-
toString(String)
-
parent
protected Node parent
children
protected Node children[]
id
protected int id
parser
protected PotParser parser
SimpleNode
public SimpleNode(int i)
SimpleNode
public SimpleNode(PotParser p,
int i)
jjtOpen
public void jjtOpen()
jjtClose
public void jjtClose()
jjtSetParent
public void jjtSetParent(Node n)
jjtGetParent
public Node jjtGetParent()
jjtAddChild
public void jjtAddChild(Node n,
int i)
jjtGetChild
public Node jjtGetChild(int i)
jjtGetNumChildren
public int jjtGetNumChildren()
toString
public String toString()
- Overrides:
- toString in class Object
toString
public String toString(String prefix)
dump
public void dump(String prefix)
interpret
public void interpret()
- SimpleNode should never get interpreted, so we just throw an exception here
evaluate
public double evaluate()
- Evaluate the potential and return its value
setParser
public void setParser(PotParser p)
- Set the parser to be used to define the potential