Class DtoDevice
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoDevice
- All Implemented Interfaces:
IDtoDevice
Details about the capabilities and availabilities of a device (that can execute jobs).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAvailable times on this device.If/with how much capacity the device can run its available processes in parallel.The deviceStateAspects of this devices, including initial values.getId()String[]The different processes this Device can execute (OR).Reserved times on this device.The parameters for the default setup costs for this device.The parameters for the default setup durations for this device.The parameters for the default teardown costs for this device.The parameters for the default teardown durations for this device.inthashCode()voidsetAvailabilities(IDtoDeviceAvailability[] availabilities) Available times on this device.voidsetCapacity(IDtoDeviceCapacity capacity) If/with how much capacity the device can run its available processes in parallel.voidsetDeviceStateDeclaration(IDtoDeviceStateAspectDeclaration[] deviceStateDeclaration) The deviceStateAspects of this devices, including initial values.voidvoidsetProcesses(String[] processes) The different processes this Device can execute (OR).voidsetReservations(IDtoDeviceReservation[] reservations) Reserved times on this device.voidsetSetupCostModel(String setupCostModel) The parameters for the default setup costs for this device.voidsetSetupDurationModel(String setupDurationModel) The parameters for the default setup durations for this device.voidsetTeardownCostModel(String teardownCostModel) The parameters for the default teardown costs for this device.voidsetTeardownDurationModel(String teardownDurationModel) The parameters for the default teardown durations for this device.withAvailabilities(IDtoDeviceAvailability[] availabilities) Available times on this device.withCapacity(IDtoDeviceCapacity capacity) If/with how much capacity the device can run its available processes in parallel.withDeviceStateDeclaration(IDtoDeviceStateAspectDeclaration[] deviceStateDeclaration) The deviceStateAspects of this devices, including initial values.withProcesses(String[] processes) The different processes this Device can execute (OR).withReservations(IDtoDeviceReservation[] reservations) Reserved times on this device.withSetupCostModel(String setupCostModel) The parameters for the default setup costs for this device.withSetupDurationModel(String setupDurationModel) The parameters for the default setup durations for this device.withTeardownCostModel(String teardownCostModel) The parameters for the default teardown costs for this device.withTeardownDurationModel(String teardownDurationModel) The parameters for the default teardown durations for this device.
-
Constructor Details
-
DtoDevice
protected DtoDevice() -
DtoDevice
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIDtoDevice
-
setId
- Specified by:
setIdin interfaceIDtoDevice
-
getDeviceStateDeclaration
The deviceStateAspects of this devices, including initial values. The transitionModel may only use these aspects. If processes used in this device provide aspect keys not listed here, they will not be used. If processes used in this device fail to provide one of the aspect keys listed here, the initial value will be used for that key.#TODO ask LL or we validate and throw some MissingKeyError.- Specified by:
getDeviceStateDeclarationin interfaceIDtoDevice
-
setDeviceStateDeclaration
The deviceStateAspects of this devices, including initial values. The transitionModel may only use these aspects. If processes used in this device provide aspect keys not listed here, they will not be used. If processes used in this device fail to provide one of the aspect keys listed here, the initial value will be used for that key.#TODO ask LL or we validate and throw some MissingKeyError.- Specified by:
setDeviceStateDeclarationin interfaceIDtoDevice
-
getProcesses
The different processes this Device can execute (OR). May not be empty.#TODO ask LL or add Has to obey the deviceStateDeclaration.- Specified by:
getProcessesin interfaceIDtoDevice
-
setProcesses
The different processes this Device can execute (OR). May not be empty.#TODO ask LL or add Has to obey the deviceStateDeclaration.- Specified by:
setProcessesin interfaceIDtoDevice
-
getCapacity
If/with how much capacity the device can run its available processes in parallel. If not set, the device can only produce one job at a time.- Specified by:
getCapacityin interfaceIDtoDevice
-
setCapacity
If/with how much capacity the device can run its available processes in parallel. If not set, the device can only produce one job at a time.- Specified by:
setCapacityin interfaceIDtoDevice
-
getSetupCostModel
The parameters for the default setup costs for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects.- Specified by:
getSetupCostModelin interfaceIDtoDevice
-
setSetupCostModel
The parameters for the default setup costs for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects.- Specified by:
setSetupCostModelin interfaceIDtoDevice
-
getSetupDurationModel
The parameters for the default setup durations for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects.- Specified by:
getSetupDurationModelin interfaceIDtoDevice
-
setSetupDurationModel
The parameters for the default setup durations for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects.- Specified by:
setSetupDurationModelin interfaceIDtoDevice
-
getTeardownCostModel
The parameters for the default teardown costs for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects.- Specified by:
getTeardownCostModelin interfaceIDtoDevice
-
setTeardownCostModel
The parameters for the default teardown costs for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects.- Specified by:
setTeardownCostModelin interfaceIDtoDevice
-
getTeardownDurationModel
The parameters for the default teardown durations for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects.- Specified by:
getTeardownDurationModelin interfaceIDtoDevice
-
setTeardownDurationModel
The parameters for the default teardown durations for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects.- Specified by:
setTeardownDurationModelin interfaceIDtoDevice
-
getAvailabilities
Available times on this device. Per default, the device is available always.- Specified by:
getAvailabilitiesin interfaceIDtoDevice
-
setAvailabilities
Available times on this device. Per default, the device is available always.- Specified by:
setAvailabilitiesin interfaceIDtoDevice
-
getReservations
Reserved times on this device.- Specified by:
getReservationsin interfaceIDtoDevice
-
setReservations
Reserved times on this device.- Specified by:
setReservationsin interfaceIDtoDevice
-
withId
-
withDeviceStateDeclaration
public DtoDevice withDeviceStateDeclaration(IDtoDeviceStateAspectDeclaration[] deviceStateDeclaration) The deviceStateAspects of this devices, including initial values. The transitionModel may only use these aspects. If processes used in this device provide aspect keys not listed here, they will not be used. If processes used in this device fail to provide one of the aspect keys listed here, the initial value will be used for that key.#TODO ask LL or we validate and throw some MissingKeyError. -
withProcesses
The different processes this Device can execute (OR). May not be empty.#TODO ask LL or add Has to obey the deviceStateDeclaration. -
withCapacity
If/with how much capacity the device can run its available processes in parallel. If not set, the device can only produce one job at a time. -
withSetupCostModel
The parameters for the default setup costs for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects. -
withSetupDurationModel
The parameters for the default setup durations for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects. -
withTeardownCostModel
The parameters for the default teardown costs for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects. -
withTeardownDurationModel
The parameters for the default teardown durations for this device. If you provide your own setupCalculator, you can just set some simple model for all devices (and decide how/if you use the default value). May only use the declared deviceStateAspects. -
withAvailabilities
Available times on this device. Per default, the device is available always. -
withReservations
Reserved times on this device. -
equals
-
hashCode
public int hashCode()
-