|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.languages.csf.constraints.Constraint
public class Constraint
Defines the basic Constraint implementation. The class is basically a holder for the query string (#suchThat#...#), the theory string (#where#...#) and the component to which the constraint applies. In addition, the constraint can hold arbitrary data (an Object) to represent state the solver may require to associate with this specific constraint.
It also contains the logic for deciding which solver should be used - this is static and is common to all contraints. It is not possible to use a different solver for each constraint.
| Field Summary | |
|---|---|
protected Reference |
name
the Name of the component |
| Constructor Summary | |
|---|---|
Constraint(java.lang.String query)
Constructor for a Constraint, passing the query string, the theory string and the component to which it is bound. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a shallow copy of the implementor. |
java.lang.Object |
copy()
Create a deep copy of object. |
java.util.Hashtable |
getBindings()
Get the bindings - state used by the solvers |
ComponentDescription |
getComponent()
Get the ComponentDescription - state used by the solvers |
java.lang.String |
getQuery()
Get the query string #suchThat#...# |
java.lang.Object |
getSolverState()
Get the solver state associated with this constraint |
void |
setBindings(java.util.Hashtable bindings)
Get the bindings - state used by the solvers |
void |
setComponent(ComponentDescription cd)
Get the ComponentDescription - state used by the solvers |
void |
setQuery(java.lang.String query)
Get the query string #suchThat#...# |
void |
setSolverState(java.lang.Object s)
Set the solver state for this constraint |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Reference name
| Constructor Detail |
|---|
public Constraint(java.lang.String query)
query - the query string #suchThat#...#| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object getSolverState()
public void setSolverState(java.lang.Object s)
s - the statepublic ComponentDescription getComponent()
public void setComponent(ComponentDescription cd)
cd - the ComponentDescriptionpublic java.util.Hashtable getBindings()
public void setBindings(java.util.Hashtable bindings)
bindings - the ComponentDescriptionpublic java.lang.String getQuery()
public void setQuery(java.lang.String query)
query - the query stringpublic java.lang.Object copy()
Copying
copy in interface Copyingpublic java.lang.Object clone()
Copying
clone in interface Copyingclone in class java.lang.Object
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||