Class SimpleNode

java.lang.Object
   |
   +----SimpleNode

public class SimpleNode
extends Object
implements Node

Variable Index

 o children
 o id
 o parent
 o parser

Constructor Index

 o SimpleNode(int)
 o SimpleNode(PotParser, int)

Method Index

 o dump(String)
 o evaluate()
Evaluate the potential and return its value
 o interpret()
SimpleNode should never get interpreted, so we just throw an exception here
 o jjtAddChild(Node, int)
 o jjtClose()
 o jjtGetChild(int)
 o jjtGetNumChildren()
 o jjtGetParent()
 o jjtOpen()
 o jjtSetParent(Node)
 o setParser(PotParser)
Set the parser to be used to define the potential
 o toString()
 o toString(String)

Variables

 o parent
 protected Node parent
 o children
 protected Node children[]
 o id
 protected int id
 o parser
 protected PotParser parser

Constructors

 o SimpleNode
 public SimpleNode(int i)
 o SimpleNode
 public SimpleNode(PotParser p,
                   int i)

Methods

 o jjtOpen
 public void jjtOpen()
 o jjtClose
 public void jjtClose()
 o jjtSetParent
 public void jjtSetParent(Node n)
 o jjtGetParent
 public Node jjtGetParent()
 o jjtAddChild
 public void jjtAddChild(Node n,
                         int i)
 o jjtGetChild
 public Node jjtGetChild(int i)
 o jjtGetNumChildren
 public int jjtGetNumChildren()
 o toString
 public String toString()
Overrides:
toString in class Object
 o toString
 public String toString(String prefix)
 o dump
 public void dump(String prefix)
 o interpret
 public void interpret()
SimpleNode should never get interpreted, so we just throw an exception here

 o evaluate
 public double evaluate()
Evaluate the potential and return its value

 o setParser
 public void setParser(PotParser p)
Set the parser to be used to define the potential