JAGA Homepage

org.jaga.reproduction.booleanFormulas.nodes
Class BooleanFormulaTreeNode

java.lang.Object
  extended by org.jaga.reproduction.booleanFormulas.nodes.BooleanFormulaTreeNode
Direct Known Subclasses:
ConstantNode, OperatorNode, TerminalNode

public abstract class BooleanFormulaTreeNode
extends java.lang.Object

TODO: Complete these comments.

Project: JAGA - Java API for Genetic Algorithms.

Company: University College London and JAGA.Org (http://www.jaga.org).

Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ONLY if you include a note of the original author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/licenses/gpl.html

Version:
JAGA public release 1.0 beta
Author:
Greg Paperin (greg@jaga.org)

Field Summary
private  int depth
           
private  java.lang.Long handle
           
private  int height
           
private  OperatorNode parent
           
 
Constructor Summary
BooleanFormulaTreeNode()
           
 
Method Summary
abstract  java.lang.Object clone()
           
abstract  boolean evaluate(boolean[] parameters)
           
 int getDepth()
           
 java.lang.Long getHandle()
           
 int getHeight()
           
 OperatorNode getParent()
           
abstract  int getRequiredChildrenNumber()
           
abstract  int recalcHeight()
           
 void setDepth(int depth)
           
 void setHandle(java.lang.Long handle)
           
protected  void setHeight(int val)
           
protected  void setParent(OperatorNode parent)
           
 java.lang.String toString()
           
 java.lang.String toString(boolean infix)
           
abstract  java.lang.StringBuffer toStringBuffer(boolean infix)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

private OperatorNode parent

depth

private int depth

height

private int height

handle

private java.lang.Long handle
Constructor Detail

BooleanFormulaTreeNode

public BooleanFormulaTreeNode()
Method Detail

evaluate

public abstract boolean evaluate(boolean[] parameters)

getRequiredChildrenNumber

public abstract int getRequiredChildrenNumber()

clone

public abstract java.lang.Object clone()
Overrides:
clone in class java.lang.Object

recalcHeight

public abstract int recalcHeight()

getHeight

public int getHeight()

setHeight

protected void setHeight(int val)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(boolean infix)

toStringBuffer

public abstract java.lang.StringBuffer toStringBuffer(boolean infix)

getParent

public OperatorNode getParent()

setParent

protected void setParent(OperatorNode parent)

getDepth

public int getDepth()

setDepth

public void setDepth(int depth)

getHandle

public java.lang.Long getHandle()

setHandle

public void setHandle(java.lang.Long handle)

JAGA Homepage

Go to JAGA Homepage