|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 variable
public 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 Valuepublic String toString()
toString in class Valuepublic double toDouble()
Value
toDouble in class Valuepublic int hashCode()
hashCode in class Valuepublic boolean equals(Object o)
Value
equals in class Valuepublic Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||