Shipment Formation Spec
@Serializable
Serializable description of a per-edge shipment-formation policy, mirroring the framework's ShipmentFormation. Attached to a NodeSpec (NodeSpec.shipmentFormationFromParent) or a DemandGeneratorSpec (DemandGeneratorSpec.shipmentFormation).
Validation (see validate):
FormingOption.COUNT requires countLimit
> 0.FormingOption.WEIGHT requires weightLimits.
FormingOption.CUBE requires cubeLimits.
Formation is only permitted under TransportStrategySpec.PerIHPTimeBased.
Parameters
option
the forming trigger
count Limit
demands per load under FormingOption.COUNT
weight Limits
min/max queued weight under FormingOption.WEIGHT
cube Limits
min/max queued cube under FormingOption.CUBE
Constructors
Link copied to clipboard
constructor(option: FormingOption, countLimit: Int? = null, weightLimits: LimitsSpec? = null, cubeLimits: LimitsSpec? = null)