Documentation of 'ec.app.gpsemantics.func.SemanticJ' Java class
SemanticJ
ec.app.gpsemantics.func

Class SemanticJ

    • Constructor Detail

      • SemanticJ

        public SemanticJ()
    • Method Detail

      • toString

        public java.lang.String toString()
        Description copied from class: GPNode
        Returns a Lisp-like atom for the node which can be read in again by computer. If you need to encode an integer or a float or whatever for some reason (perhaps if it's an ERC), you should use the ec.util.Code library.
        Overrides:
        toString in class SemanticNode
      • expectedChildren

        public int expectedChildren()
        Description copied from class: GPNode
        Returns the number of children this node expects to have. This method is only called by the default implementation of checkConstraints(...), and by default it returns CHILDREN_UNKNOWN. You can override this method to return a value >= 0, which will be checked for in the default checkConstraints(...), or you can leave this method alone and override checkConstraints(...) to check for more complex constraints as you see fit.
        Overrides:
        expectedChildren in class SemanticNode

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.