ec.rule
Class RuleConstraints
- java.lang.Object
-
- ec.rule.RuleConstraints
-
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 byteconstraintNumberThe byte value of the constraints -- we can only have 256 of themjava.lang.StringnameThe name of the RuleConstraints objectstatic java.lang.StringP_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 RuleConstraintsconstraintsFor(java.lang.String constraintsName, EvolutionState state)You must guarantee that after calling constraintsFor(...) one or several times, you call state.output.exitIfErrors() once.voidsetup(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.StringtoString()Converting the rule to a string ( the name )
-
-
-
Field Detail
-
P_NAME
public static final java.lang.String P_NAME
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
toString
public java.lang.String toString()
Converting the rule to a string ( the name )- Overrides:
toStringin classjava.lang.Object
-
setup
public void setup(EvolutionState state, Parameter base)
Description copied from interface:SetupSets 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.
-
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