SequenceDependentSetupTime

class SequenceDependentSetupTime(setups: Map<Pair<Int, Int>, Double>, initialSetups: Map<Int, Double> = emptyMap(), defaultSetup: Double = 0.0) : SetupTimeIfc(source)

A sequence-dependent setup matrix: the setup before serving toType depends on the (fromType, toType) pair.

Parameters

setups

setup times keyed by (fromType, toType); missing pairs use defaultSetup

initialSetups

setup times for the first job, keyed by toType; missing uses defaultSetup

defaultSetup

the setup used when a pair (or initial type) is not listed

Constructors

Link copied to clipboard
constructor(setups: Map<Pair<Int, Int>, Double>, initialSetups: Map<Int, Double> = emptyMap(), defaultSetup: Double = 0.0)

Functions

Link copied to clipboard
open override fun setupTime(fromType: Int?, toType: Int, qObject: ModelElement.QObject): Double

The setup time before serving toType, given the type the server was last configured for (fromType, null if nothing has been served yet).