|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ec.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 | |
static java.util.Hashtable |
all
A repository of all the RuleConstraints in the system. |
byte |
constraintNumber
The byte value of the constraints -- we can only have 256 of them |
static RuleConstraints[] |
constraints
|
java.lang.String |
name
The name of the RuleConstraints object |
static byte |
numConstraints
|
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. |
static void |
setupConstraints(EvolutionState state,
Parameter base)
Sets up all the RuleConstraints, loading them from the parameter file. |
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
public static java.util.Hashtable all
public static RuleConstraints[] constraints
public static byte numConstraints
Constructor Detail |
public RuleConstraints()
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public static void setupConstraints(EvolutionState state, Parameter base)
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 |