simbad.picoevo.ext.representation
Class Element_Node

java.lang.Object
  extended by simbad.picoevo.core.representation.EvolutionObject
      extended by simbad.picoevo.core.representation.Element
          extended by simbad.picoevo.ext.representation.Element_Node
All Implemented Interfaces:
java.lang.Cloneable, InitialisationInterface

public abstract class Element_Node
extends Element


Field Summary
private  int _arity
           
protected  java.lang.String _displayValue
           
private  java.util.ArrayList _nextElements
           
private  java.util.ArrayList _previousElements
           
 
Fields inherited from class simbad.picoevo.core.representation.Element
_individualOwner
 
Fields inherited from class simbad.picoevo.core.representation.EvolutionObject
_memoryModule, _name, _variationOperatorList
 
Constructor Summary
Element_Node(Individual __individualOwner, java.util.ArrayList __elementLevelOperatorList)
           
Element_Node(Individual __individualOwner, VariationOperator __elementLevelOperator)
           
Element_Node(java.lang.String __name, Individual __individualOwner, java.util.ArrayList __elementLevelOperatorList)
           
Element_Node(java.lang.String __name, Individual __individualOwner, VariationOperator __elementLevelOperator)
           
 
Method Summary
 void addPredecessor(Element_Node __element)
          add a target element as predecessor to this element (warning, current element is not added as successor to the target element)
 void addSuccessor(Element_Node __element)
          add a target element as successor to this element (warning, current element is not added as predecessor to the target element)
 int getArity()
          Returns the arity of this node (e.g.
 java.lang.String getDisplayValue()
           
 java.util.ArrayList getPredecessors()
           
 java.util.ArrayList getSuccessors()
           
 void resetAllConnections()
          Reset all connections to successors and predecessors.
 void resetPredecessorConnections()
          Reset all connections to predecessor.
 void resetSuccessorConnections()
          Reset all connections to successor.
 void setArity(int _arity)
          set the arity of this node (e.g.
 void setDisplayValue(java.lang.String __displayValue)
           
 
Methods inherited from class simbad.picoevo.core.representation.Element
clone, displayInformation, getOwner, getTemplate, performInitialisation, performVariations, setOwner, trace
 
Methods inherited from class simbad.picoevo.core.representation.EvolutionObject
addOperator, addOperatorList, getDisplayInformation, getName, getVariationOperator, getVariationOperatorList, getVariationOperatorListSize, performLevelVariations, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_displayValue

protected java.lang.String _displayValue

_previousElements

private java.util.ArrayList _previousElements

_nextElements

private java.util.ArrayList _nextElements

_arity

private int _arity
Constructor Detail

Element_Node

public Element_Node(java.lang.String __name,
                    Individual __individualOwner,
                    VariationOperator __elementLevelOperator)

Element_Node

public Element_Node(java.lang.String __name,
                    Individual __individualOwner,
                    java.util.ArrayList __elementLevelOperatorList)

Element_Node

public Element_Node(Individual __individualOwner,
                    VariationOperator __elementLevelOperator)

Element_Node

public Element_Node(Individual __individualOwner,
                    java.util.ArrayList __elementLevelOperatorList)
Method Detail

addSuccessor

public void addSuccessor(Element_Node __element)
add a target element as successor to this element (warning, current element is not added as predecessor to the target element)


addPredecessor

public void addPredecessor(Element_Node __element)
add a target element as predecessor to this element (warning, current element is not added as successor to the target element)


getSuccessors

public java.util.ArrayList getSuccessors()

getPredecessors

public java.util.ArrayList getPredecessors()

getArity

public int getArity()
Returns the arity of this node (e.g. 0 if terminal, 2 if PLUS op, etc.).

Returns:
arity

setArity

public void setArity(int _arity)
set the arity of this node (e.g. 0 if terminal, 2 if PLUS op, etc.).

Parameters:
_arity -

getDisplayValue

public java.lang.String getDisplayValue()

setDisplayValue

public void setDisplayValue(java.lang.String __displayValue)

resetAllConnections

public void resetAllConnections()
Reset all connections to successors and predecessors. I.e. this element is now root and terminal. Note that connections (if any) from successors/predecessors remain unmodified.


resetPredecessorConnections

public void resetPredecessorConnections()
Reset all connections to predecessor. I.e. this element is now root. Note that connections (if any) from predecessors remain unmodified.


resetSuccessorConnections

public void resetSuccessorConnections()
Reset all connections to successor. I.e. this element is now terminal. Note that connections (if any) from successors remain unmodified.