Order Filler Abstract
Base class for objects that implement OrderFillerIfc. Provides the order-receipt orchestration (availability gating → per-demand filler assignment → status determination → batched receipt) and leaves fill / canFillItemType / negotiate to subclasses.
Parameters
the SupplyChainModel this filler belongs to
availability at the start of each replication
optional model-element name
See sc.inventorylayer.OrderFillerAbstract
Inheritors
Constructors
Properties
Functions
Tell order to begin batched processing. Subclasses may override to resequence demands before processing.
Tell order to begin batched receipt. Subclasses may override to resequence demands before receipt.
True iff every demand on order can have its item type filled by this filler. Diverges from the Java original, which returned only the last demand's result (preserved here as a clean all { ... }).
Walks each demand, setting its status via its assigned filler and collecting whether any will reject. Returns true iff at least one demand will be rejected.
This method should be overridden by subclasses that need actions performed to initialize prior to a replication. It is called once before each replication occurs if the model element wants initialization. It is called after beforeReplication() is called
Place order in process state.
Receive order, routing each of its demands to a per-demand filler. Steps (matching Java's OrderFillerAbstract.receive):
Place order in rejected state with the given status code.
Assign a DemandFillerIfc to each demand on order via demandFillerFinder. Throws NoDemandFillerFoundException if no filler is found for any demand.