Documentation of 'org.encog.ml.prg.ProgramNode' Java class
ProgramNode
org.encog.ml.prg

Class ProgramNode

  • All Implemented Interfaces:
    java.io.Serializable, TreeNode


    public class ProgramNode
    extends BasicTreeNode
    implements java.io.Serializable
    Represents a program node in an EPL program.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProgramNode

        public ProgramNode(EncogProgram theOwner,
                           ProgramExtensionTemplate theTemplate,
                           ProgramNode[] theArgs)
        Construct the program node.
        Parameters:
        theOwner - The owner of the node.
        theTemplate - The opcode that this node is based on.
        theArgs - The child nodes to this node.
    • Method Detail

      • allConstChildren

        public boolean allConstChildren()
        Returns:
        True if all children are constant.
      • allConstDescendants

        public boolean allConstDescendants()
        Returns:
        True if all descendants are constant.
      • evaluate

        public ExpressionValue evaluate()
        Returns:
        The evaluated value of this node.
      • getChildNode

        public ProgramNode getChildNode(int index)
        Get the specified child node.
        Parameters:
        index - The index of this node.
        Returns:
        The child node requested.
      • getName

        public java.lang.String getName()
        Returns:
        The name of this node (from the opcode template).
      • getOwner

        public EncogProgram getOwner()
        Returns:
        The EncogProgram that owns this node.
      • isVariable

        public boolean isVariable()
        Returns:
        Returns true if this node's value is variable.
      • toString

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.