DemandFillerAbstract

abstract class DemandFillerAbstract @JvmOverloads constructor(parent: ModelElement, initialAvailability: Boolean = true, name: String? = null) : ModelElement, DemandFillerIfc(source)

Base class for objects that implement DemandFillerIfc. Provides availability state, carrier/preparer plumbing, and per-replication initialization. Subclasses must implement the demand-handling abstract methods.

Subclasses that override initialize must call super.initialize().

Parameters

parent

the SupplyChainModel this filler belongs to

initialAvailability

availability at the start of each replication

name

optional model-element name

See sc.inventorylayer.DemandFillerAbstract

Inheritors

Constructors

Link copied to clipboard
constructor(parent: ModelElement, initialAvailability: Boolean = true, name: String? = null)

Properties

Link copied to clipboard
open override var demandCarrier: DemandCarrierIfc?

Carrier used to send filled demands to their destination.

Link copied to clipboard
open override var demandPreparer: DemandPreparerIfc?

Optional pre-shipment preparer.

Link copied to clipboard

Availability at the start of each replication.

Link copied to clipboard
override val isAvailable: Boolean

True when this object can currently be selected for use.

Functions

Link copied to clipboard
protected open override fun initialize()

Resets availability to initialAvailability before each replication. The Java original had a typo (intialize) so it never actually overrode the framework hook; this port fixes the override.

Link copied to clipboard
protected fun setAvailability(flag: Boolean)

Toggle current-replication availability. Protected because subclasses (e.g., a filler that becomes unavailable on backlog) may need to flip the flag; external callers should not.