public class RuleConstraints extends Object implements Clique
Parameters
| base.size int >= 1 |
(number of rule constraints) |
| base.n.name String |
(name of rule constraint n) |
| Modifier and Type | Field and Description |
|---|---|
byte |
constraintNumber
The byte value of the constraints -- we can only have 256 of them
|
String |
name
The name of the RuleConstraints object
|
static String |
P_NAME |
| Constructor and Description |
|---|
RuleConstraints() |
| Modifier and Type | Method and Description |
|---|---|
static RuleConstraints |
constraintsFor(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.
|
String |
toString()
Converting the rule to a string ( the name )
|
public static final String P_NAME
public byte constraintNumber
public String name
public String toString()
public void setup(EvolutionState state, Parameter base)
Setuppublic static RuleConstraints constraintsFor(String constraintsName, EvolutionState state)
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.