Documentation of 'ec.rule.RuleConstraints' Java class
RuleConstraints
ec.rule

Class RuleConstraints

  • All Implemented Interfaces:
    Clique, Setup, java.io.Serializable


    public class RuleConstraints
    extends java.lang.Object
    implements Clique
    RuleConstraints is a class for constraints applicable to rules. You can subclass this to add additional constraints information for different kinds of rules.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      byte constraintNumber
      The byte value of the constraints -- we can only have 256 of them
      java.lang.String name
      The name of the RuleConstraints object
      static java.lang.String P_NAME 
    • Constructor Summary

      Constructors 
      Constructor and Description
      RuleConstraints() 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static RuleConstraints constraintsFor(java.lang.String constraintsName, EvolutionState state)
      You must guarantee that after calling constraintsFor(...) one or several times, you call state.output.exitIfErrors() once.
      void setup(EvolutionState state, Parameter base)
      Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.
      java.lang.String toString()
      Converting the rule to a string ( the name )
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • constraintNumber

        public byte constraintNumber
        The byte value of the constraints -- we can only have 256 of them
      • name

        public java.lang.String name
        The name of the RuleConstraints object
    • Constructor Detail

      • RuleConstraints

        public RuleConstraints()
    • Method Detail

      • toString

        public java.lang.String toString()
        Converting the rule to a string ( the name )
        Overrides:
        toString in class java.lang.Object
      • setup

        public void setup(EvolutionState state,
                          Parameter base)
        Description copied from interface: Setup
        Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.
        Specified by:
        setup in interface Setup
      • constraintsFor

        public static RuleConstraints constraintsFor(java.lang.String constraintsName,
                                                     EvolutionState state)
        You must guarantee that after calling constraintsFor(...) one or several times, you call state.output.exitIfErrors() once.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.