| java.lang.Object org.cougaar.glm.packer.Sizer
Sizer | class Sizer (Code) | | This class provides one of two "wheels" that drive the packing process.
This class provides a Generator that yields a stream of Tasks that
are components of the input tasks and that are sized per the
requirements that are generated by the Filler.
See Also: Filler |
Method Summary | |
public static Mass | getTaskMass(Task task, int quantityUnit) | Task | provide(double requestedAmt) The Filler will request some amount of quantity from the
Sizer. |
EACHES | final public static int EACHES(Code) | | |
MAX_UNIT | final public static int MAX_UNIT(Code) | | |
MIN_UNIT | final public static int MIN_UNIT(Code) | | |
TONS | final public static int TONS(Code) | | Unit for task quantity preference
|
sizedMade | public int sizedMade(Code) | | |
getTaskMass | public static Mass getTaskMass(Task task, int quantityUnit)(Code) | | Compute the mass associated with the task
|
provide | Task provide(double requestedAmt)(Code) | | The Filler will request some amount of quantity from the
Sizer.
This method will return a Task whose quantity is <= to requestedAmt,
or null if there are no more tasks to be packed.
|
|
|