|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.model.Value net.sf.cpsolver.ifs.multi.MultiValue
public class MultiValue
A value of MultiVariable
. Such value contains a value for every "normal" variable of MultiVariable
.
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.ifs.model.Value |
---|
iValue |
Constructor Summary | |
---|---|
MultiValue(MultiVariable variable,
Value[] values)
Constructor |
|
MultiValue(MultiVariable variable,
Value[] values,
Double doubleValue,
boolean correctOrder)
Constructor |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object o)
By default, comparison is made on unique ids |
String |
getName()
Values name -- for printing purposes (E.g., Monday 7:30) |
int |
hashCode()
|
int |
nrAssigned()
|
int |
size()
|
double |
toDouble()
Dobouble representaion. |
String |
toString()
|
Value[] |
values()
|
Methods inherited from class net.sf.cpsolver.ifs.model.Value |
---|
assigned, compareTo, conflicts, countAssignments, getDescription, getExtra, getId, isConsistent, lastAssignmentIteration, lastUnassignmentIteration, setExtra, setVariable, unassigned, valueEquals, variable |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiValue(MultiVariable variable, Value[] values)
variable
- multi variablevalues
- a value for every "normal" variable of the multi variablepublic MultiValue(MultiVariable variable, Value[] values, Double doubleValue, boolean correctOrder)
variable
- multi variablevalues
- a value for every "normal" variable of the multi variabledoubleValue
- valute to be returned as toDouble()
correctOrder
- indicates whether the givan values are in the correct order (first value of the first variable etc.)Method Detail |
---|
public Value[] values()
public int size()
public int nrAssigned()
public String getName()
Value
getName
in class Value
public String toString()
toString
in class Value
public double toDouble()
Value
toDouble
in class Value
public int hashCode()
hashCode
in class Value
public boolean equals(Object o)
Value
equals
in class Value
public Object clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |