Package ec.rule
Class RuleConstraints
java.lang.Object
ec.rule.RuleConstraints
- All Implemented Interfaces:
Clique,Setup,Serializable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyteThe byte value of the constraints -- we can only have 256 of themThe name of the RuleConstraints objectstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleConstraintsconstraintsFor(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.toString()Converting the rule to a string ( the name )
-
Field Details
-
P_NAME
- See Also:
-
constraintNumber
public byte constraintNumberThe byte value of the constraints -- we can only have 256 of them -
name
The name of the RuleConstraints object
-
-
Constructor Details
-
RuleConstraints
public RuleConstraints()
-
-
Method Details
-
toString
Converting the rule to a string ( the name ) -
setup
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
You must guarantee that after calling constraintsFor(...) one or several times, you call state.output.exitIfErrors() once.
-