NetworkEdgeInboundCostCalculator

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

NetworkTimeBased-strategy variant of EdgeInboundCostCalculator: observes a shared TimeBasedNetworkDemandCarrier and produces CostLine.Unloading for one specific (filler, destination) edge.

Tier attribution: the destination-tier, same convention as the PerIHPTimeBased variant. See EdgeInboundCostCalculator 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

destination

the downstream destination on this edge

destinationTier

tier of the destination — used as CostCalculator.tier

params

cost-rate parameters

Constructors

Link copied to clipboard
constructor(parent: ModelElement, networkCarrier: TimeBasedNetworkDemandCarrier, filler: DemandFillerIfc, destination: DemandSenderIfc, destinationTier: 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.