|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface VarString
VarString are a special type of constrained variables that are defined using an array of string values.
| Method Summary | |
|---|---|
java.lang.String[] |
getAllStrings()
Returns all possible strings from the domain of this variable. |
int |
getIndex(java.lang.String string)
|
java.lang.String |
getInitialDomain()
|
Var |
getInt()
Returns the underlying integer constrained variable. |
java.lang.String |
getValue()
Returns a String which is the value to which this variable has been instantiated, throws a RuntimeException if the variable is not instantiated. |
boolean |
hasSameDomain(VarString var)
|
boolean |
isBound()
|
| Methods inherited from interface javax.constraints.ConstrainedVariable |
|---|
getImpl, getName, getObject, getProblem, setImpl, setName, setObject |
| Method Detail |
|---|
java.lang.String[] getAllStrings()
int getIndex(java.lang.String string)
string -
java.lang.String getInitialDomain()
Var getInt()
java.lang.String getValue()
java.lang.RuntimeException - if this variable is not instantiated.boolean hasSameDomain(VarString var)
var -
boolean isBound()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||