|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectec.rule.RuleConstraints
public class 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
|
| 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 java.lang.String P_NAME
public byte constraintNumber
public java.lang.String name
| Constructor Detail |
|---|
public RuleConstraints()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
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 | ||||||||