/** * Constructor for the nodes: This class holds an String representing * an object if the noNode and yesNode are null and a question if the * yesNode and noNode point to a BTNode. */ public BTNode(string nodeMessage) { message = nodeMessage; noNode = null; yesNode = null; }
public void setNoNode(BTNode node) { noNode = node; }
public void setYesNode(BTNode node) { yesNode = node; }
public Maximum(bool exists, BTNode node) { Exists = exists; Node = node; }