| java.lang.Object org.cougaar.logistics.plugin.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) | public boolean | moreTasksInQueue() | Task | provide(double requestedAmt, double earliest, double latest) The Filler will request some amount of quantity from the
Sizer. |
EACHES | final public static int EACHES(Code) | | |
MAX_GROUP_DAYS | protected long MAX_GROUP_DAYS(Code) | | |
MAX_UNIT | final public static int MAX_UNIT(Code) | | |
MIN_UNIT | final public static int MIN_UNIT(Code) | | |
ONE_DAY_MILLIS | protected long ONE_DAY_MILLIS(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
|
moreTasksInQueue | public boolean moreTasksInQueue()(Code) | | there's more ammo left if the queue has something in it OR
we're on the last task (_curTask) and there's ammo left in it
|
provide | Task provide(double requestedAmt, double earliest, double latest)(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.
|
|
|