public interface VarString extends ConstrainedVariable
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getValue(int index)
Returns a string with an index "index" from the domain of this variable
|
boolean |
hasSameDomain(VarString var) |
boolean |
isBound() |
getImpl, getName, getObject, getProblem, setImpl, setName, setObject
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.java.lang.String getValue(int index)
index
- an integer index in the array getAlltrings()java.lang.RuntimeException
- if index is outside the domainboolean hasSameDomain(VarString var)
var
- boolean isBound()