TransportStrategySpec

@Serializable
sealed class TransportStrategySpec(source)

Serializable description of a network's transport strategy, mirroring the framework's TransportStrategy sealed class.

variantbuilder behaviour
SharedCarrierone shared NoDelayDemandCarrier for every leg
PerIHPTimeBasedeach node owns its own TimeBasedDemandCarrier; per-edge transport times
NetworkTimeBasedone shared TimeBasedNetworkDemandCarrier keyed on (filler, sender)

A custom shared carrier is a v1 escape hatch (build the spec, then post-mutate the network); only the three standard strategies are describable in data. Shipment formation requires PerIHPTimeBased (validated in validate).

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
@Serializable
@SerialName(value = "network")
data object NetworkTimeBased : TransportStrategySpec

One shared network-wide time-based carrier.

Link copied to clipboard
@Serializable
@SerialName(value = "perIHP")
data object PerIHPTimeBased : TransportStrategySpec

Per-node time-based carriers; per-edge transport times.

Link copied to clipboard
@Serializable
@SerialName(value = "shared")
data object SharedCarrier : TransportStrategySpec

One shared no-delay carrier for the whole network.