|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.cp.solver.constraints.global.geost.Setup
public final class Setup
This is a very important class. It contains all the variables and objects the constraint needs. Also it contains functions that the user and the constraint use to access the shapes, objects as well as the external constraints in the Geost.
Field Summary | |
---|---|
Geost_Constraint |
g_constraint
|
Hashtable<Integer,Obj> |
objects
A hashtable where the key is an object_id. |
GeostOptions |
opt
|
PropagationEngine |
propagationEngine
|
Hashtable<Integer,List<ShiftedBox>> |
shapes
A hashtable where the key is a shape_id. |
Constructor Summary | |
---|---|
Setup(Constants c,
PropagationEngine propagationEngine,
Geost_Constraint constraint)
Creates a Setup instance for a given Constants class |
Method Summary | |
---|---|
void |
clear()
Clears the Setup object. |
List<ExternalConstraint> |
getConstraints()
|
HeapDescending |
getIctrMaxHeap()
|
HeapAscending |
getIctrMinHeap()
|
int |
getNbOfDomainVariables()
This function calculates the number of the domain variables in our problem. |
int |
getNbOfObjects()
|
int |
getNbOfShapes()
|
Obj |
getObject(int oid)
|
Enumeration<Integer> |
getObjectKeys()
|
Set<Integer> |
getObjectKeySet()
|
List<ShiftedBox> |
getShape(int sid)
|
Enumeration<Integer> |
getShapeKeys()
|
Set<Integer> |
getShapeKeySet()
|
void |
insertObject(int oid,
Obj o)
|
void |
insertShape(int sid,
List<ShiftedBox> shiftedBoxes)
|
void |
print()
Prints to the output console the objects and the shapes of the problem. |
boolean |
printToFileHumanFormat(String path)
Prints to a file that can be easily read by a person the objects and the shapes of the problem. |
boolean |
printToFileInputFormat(String path)
Prints to a file the objects and the shapes of the problem. |
void |
SetupTheProblem(List<Obj> objects,
List<ShiftedBox> shiftedBoxes,
List<ExternalConstraint> ectr)
Given a Vector of Objects and a Vector of shiftedBoxes and a Vector of ExternalConstraints it sets up the problem for the geost constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public GeostOptions opt
public final PropagationEngine propagationEngine
public final Geost_Constraint g_constraint
public final Hashtable<Integer,List<ShiftedBox>> shapes
public final Hashtable<Integer,Obj> objects
Constructor Detail |
---|
public Setup(Constants c, PropagationEngine propagationEngine, Geost_Constraint constraint)
c
- An instance of the constants classpropagationEngine
- constraint
- Method Detail |
---|
public void insertShape(int sid, List<ShiftedBox> shiftedBoxes)
public void insertObject(int oid, Obj o)
public List<ShiftedBox> getShape(int sid)
public Obj getObject(int oid)
public int getNbOfObjects()
public int getNbOfShapes()
public int getNbOfDomainVariables()
public void SetupTheProblem(List<Obj> objects, List<ShiftedBox> shiftedBoxes, List<ExternalConstraint> ectr)
public List<ExternalConstraint> getConstraints()
public HeapAscending getIctrMinHeap()
public HeapDescending getIctrMaxHeap()
public Enumeration<Integer> getObjectKeys()
public Enumeration<Integer> getShapeKeys()
public Set<Integer> getObjectKeySet()
public Set<Integer> getShapeKeySet()
public void print()
public boolean printToFileHumanFormat(String path)
public boolean printToFileInputFormat(String path)
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |