|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpartage.ComplexInstance.VolumeConstraint
public static class ComplexInstance.VolumeConstraint
A static class implementing the Volume constraint on a set of objects.
| Constructor Summary | |
|---|---|
ComplexInstance.VolumeConstraint(int[] _weights,
int _maxWeight)
The constructor of a VolumeConstraint object. |
|
ComplexInstance.VolumeConstraint(int[] _objects,
int[] _weights,
int _maxWeight)
The constructor of a VolumeConstraint object. |
|
| Method Summary | |
|---|---|
int |
getMaxWeight()
The standard getter to the maximal weight of the constraint. |
int[] |
getObjects()
The standard getter to the set of objects |
int[] |
getWeights()
The standard getter to the set of weights. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComplexInstance.VolumeConstraint(int[] _objects,
int[] _weights,
int _maxWeight)
VolumeConstraint object.
_objects - the array of objects._weights - the array of weights (must be of the same size as _objects)_maxWeight - the maximal weight allowed.
public ComplexInstance.VolumeConstraint(int[] _weights,
int _maxWeight)
VolumeConstraint object.
_weights - the array of weights. The constraint holds on all
the objects from 1 to the length of _weight._maxWeight - the maximal weight allowed.| Method Detail |
|---|
public int[] getObjects()
getObjects in interface ComplexInstance.Constraintpublic int getMaxWeight()
public int[] getWeights()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||