Create a default ProjectWeight for a class of supply. This
implementation creates a new ProjectionWeightImpl with default
settings. Override this if you want a different default.
Find or make the aggregated MIL task for an inventory. If the
MILTaskHash_ does not contain an existing task, create a new
one and link it to the determine requirements tasks.
Get _the_ aggregate MIL task. This is complicated because we
want to detect when the task has been deleted, but we only want
to create one of them. The lag between publishing a new task
and its appearance in the subscription poses a problem because,
typically, this method is called repeatedly in one transaction.
We store the task temporarily in a variable (aggMILTask_) to
prevent multiple creation, but clear the variable at the
beginning of each new transaction. If the task has not yet been
created, we try to create it by aggregating all the existing
per-oplan DetermineRequirements tasks into it. Subsequent
per-oplan tasks will be aggregated in as they arrive. There
will be no task if there are no DetermineRequirements tasks to
be aggregated.
public void initializeInventoryFile(String type)(Code)
recordCustomerForTask
public void recordCustomerForTask(Task task)(Code)
setFillToCapacity
public void setFillToCapacity(String supplyType, boolean fill_to_capacity)(Code)
Set the fillToCapacity for a class of supply. This becomes
the default fillToCapacity for new Inventory Assets for the
class of supply. The fillToCapacity of existing Inventory
assets is updated to the new value (true/false). Override this if
you don't want this behavior.
setMaintainAtCapacity
public void setMaintainAtCapacity(String supplyType, boolean maintain_at_capacity)(Code)
Set the maintainAtCapacity for a class of supply. This becomes
the default maintainAtCapacity for new Inventory Assets for the
class of supply. The maintainAtCapacity of existing Inventory
assets is updated to the new value (true/false). Override this if
you don't want this behavior.
Set the ProjectionWeight for a class of supply. This becomes
the default ProjectionWeight for new Inventory Assets for the
class of supply. The ProjectionWeight of existing Inventory
assets is updated to the new ProjectionWeight. Override this if
you don't want this behavior.