|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.model.VariableArray
choco.kernel.model.ModelObject
public class ModelObject
Nested Class Summary |
---|
Nested classes/interfaces inherited from class choco.kernel.model.VariableArray |
---|
VariableArray.VConstraintsDataStructure |
Field Summary |
---|
Fields inherited from class choco.kernel.model.VariableArray |
---|
NO_CONSTRAINTS |
Constructor Summary | |
---|---|
ModelObject(boolean enableOptions)
|
|
ModelObject(Variable[] variables,
boolean enableOptions)
|
Method Summary | |
---|---|
void |
addOption(String option)
Add an option to the pool of option. |
void |
addOptions(List<String> options)
Add a list of options to the pool of options of the object |
void |
addOptions(Set<String> options)
Add a set of options to the pool of options of the object |
void |
addOptions(String options)
Add several options to the pool of option. |
void |
addOptions(String[] options)
Add an array of options to the pool of options of the object |
boolean |
containsOption(String option)
check if the option is activated |
long |
getIndex()
Unique index (Different from hashCode, can change from one execution to another one) |
List<String> |
getOptions()
Get the pool of unique options |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class choco.kernel.model.VariableArray |
---|
cancelExtractVariables, doExtractVariables, extractVariables, forceExtractVariables, getNbVars, getVariable, getVariableIterator, getVariables, pretty, replaceBy, replaceByConstantAt, setVariables, setVariables |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModelObject(Variable[] variables, boolean enableOptions)
public ModelObject(boolean enableOptions)
Method Detail |
---|
public final int hashCode()
hashCode
in class Object
public void addOption(String option)
IOptions
addOption
in interface IOptions
public final void addOptions(String options)
IOptions
addOptions
in interface IOptions
public final void addOptions(String[] options)
IOptions
addOptions
in interface IOptions
options
- array of optionspublic final void addOptions(List<String> options)
IOptions
addOptions
in interface IOptions
options
- set of optionspublic final void addOptions(Set<String> options)
IOptions
addOptions
in interface IOptions
options
- set of optionspublic final List<String> getOptions()
IOptions
getOptions
in interface IOptions
public final boolean containsOption(String option)
IOptions
containsOption
in interface IOptions
true
if the set contains the optionpublic final long getIndex()
IIndex
getIndex
in interface IIndex
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |