NetworkEdgeOutboundCostCalculator

class NetworkEdgeOutboundCostCalculator @JvmOverloads constructor(parent: ModelElement, networkCarrier: TimeBasedNetworkDemandCarrier, filler: DemandFillerIfc, destination: DemandSenderIfc, supplierTier: NodeTier, params: CostParams, name: String? = null) : ModelElement, CostCalculator(source)

NetworkTimeBased-strategy variant of EdgeOutboundCostCalculator: observes a shared TimeBasedNetworkDemandCarrier and produces CostLine.Loading + CostLine.Shipping for one specific (filler, destination) edge.

Tier attribution: the supplier-tier (carrier-owner-tier), same convention as the PerIHPTimeBased variant. See EdgeOutboundCostCalculator for the full semantic specification.

Read source: networkCarrier.getNumberOfDemandShipments(filler, destination).

Parameters

parent

the ModelElement parent

networkCarrier

the shared network carrier this calculator observes

filler

the upstream supplier on this edge (the "filler" key in the carrier's per-edge counter map)

destination

the downstream destination on this edge

supplierTier

tier of the supplier — used as CostCalculator.tier

params

cost-rate parameters

Constructors

Link copied to clipboard
constructor(parent: ModelElement, networkCarrier: TimeBasedNetworkDemandCarrier, filler: DemandFillerIfc, destination: DemandSenderIfc, supplierTier: NodeTier, params: CostParams, name: String? = null)

Properties

Link copied to clipboard
open override val lineResponses: Map<CostLine, ResponseCIfc>

The line-item Responses this calculator produces, keyed by CostLine. A calculator may produce a Response for every line its source can express; values for unproduced lines are absent from the map rather than zero.

Link copied to clipboard
open override val source: ModelElement

The single source ModelElement this calculator observes.

Link copied to clipboard
open override val tier: NodeTier

Tier this calculator's source belongs to. Used by CostFormulation.byTierResponse to partition rollups across IHP / CD / ES. A calculator that attributes to multiple tiers (rare) returns null and is excluded from per-tier rollups.