|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectec.rule.RuleConstraints
RuleConstraints is a class for constraints applicable to rules. You can subclass this to add additional constraints information for different kinds of rules.
Field Summary | |
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
|
static java.lang.String |
P_SIZE
|
static int |
SIZE_OF_BYTE
|
Constructor Summary | |
RuleConstraints()
|
Method Summary | |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SIZE_OF_BYTE
public static final java.lang.String P_NAME
public static final java.lang.String P_SIZE
public byte constraintNumber
public java.lang.String name
Constructor Detail |
public RuleConstraints()
Method Detail |
public java.lang.String toString()
public void setup(EvolutionState state, Parameter base)
Setup
setup
in interface Setup
public static RuleConstraints constraintsFor(java.lang.String constraintsName, EvolutionState state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |