Class DtoProcess
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoProcess
- All Implemented Interfaces:
IDtoProcess
Definition of a process capable of executing some task.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDtoProcess(String id, String task, String runCostModel, String runDurationModel, IDtoRunCondition runCondition, IDtoDeviceState setupDeviceState) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Unique Id of the process.This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards.Only jobs that fulfil all these requirements can use this process.Details of the operators skill and attention that are required if you execute this process.RunCondition that will determine the cost/durations of run.Model for run cost of this process.Model for run duration of this process.DeviceState that has to be set up before the start of run of this process.getTask()Task that this process will execute.DeviceState that has to be set up after the end of run.Details of the tools that are required if you execute this process.inthashCode()voidUnique Id of the process.voidsetInterruptible(Boolean interruptible) This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards.voidsetJobRequirements(IDtoAbstractJobRequirement[] jobRequirements) Only jobs that fulfil all these requirements can use this process.voidsetOperatorRequirements(IDtoOperatorRequirement[] operatorRequirements) Details of the operators skill and attention that are required if you execute this process.voidsetRunCondition(IDtoRunCondition runCondition) RunCondition that will determine the cost/durations of run.voidsetRunCostModel(String runCostModel) Model for run cost of this process.voidsetRunDurationModel(String runDurationModel) Model for run duration of this process.voidsetSetupDeviceState(IDtoDeviceState setupDeviceState) DeviceState that has to be set up before the start of run of this process.voidTask that this process will execute.voidsetTeardownDeviceState(IDtoDeviceState teardownDeviceState) DeviceState that has to be set up after the end of run.voidsetToolRequirements(IDtoToolRequirement[] toolRequirements) Details of the tools that are required if you execute this process.Unique Id of the process.withInterruptible(Boolean interruptible) This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards.withJobRequirements(IDtoAbstractJobRequirement[] jobRequirements) Only jobs that fulfil all these requirements can use this process.withOperatorRequirements(IDtoOperatorRequirement[] operatorRequirements) Details of the operators skill and attention that are required if you execute this process.withRunCondition(IDtoRunCondition runCondition) RunCondition that will determine the cost/durations of run.withRunCostModel(String runCostModel) Model for run cost of this process.withRunDurationModel(String runDurationModel) Model for run duration of this process.withSetupDeviceState(IDtoDeviceState setupDeviceState) DeviceState that has to be set up before the start of run of this process.Task that this process will execute.withTeardownDeviceState(IDtoDeviceState teardownDeviceState) DeviceState that has to be set up after the end of run.withToolRequirements(IDtoToolRequirement[] toolRequirements) Details of the tools that are required if you execute this process.
-
Constructor Details
-
DtoProcess
protected DtoProcess() -
DtoProcess
public DtoProcess(String id, String task, String runCostModel, String runDurationModel, IDtoRunCondition runCondition, IDtoDeviceState setupDeviceState)
-
-
Method Details
-
getId
Unique Id of the process.- Specified by:
getIdin interfaceIDtoProcess
-
setId
Unique Id of the process.- Specified by:
setIdin interfaceIDtoProcess
-
getTask
Task that this process will execute.- Specified by:
getTaskin interfaceIDtoProcess
-
setTask
Task that this process will execute.- Specified by:
setTaskin interfaceIDtoProcess
-
getInterruptible
This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards.- Specified by:
getInterruptiblein interfaceIDtoProcess
-
setInterruptible
This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards.- Specified by:
setInterruptiblein interfaceIDtoProcess
-
getRunCostModel
Model for run cost of this process. It may only depend on the runCondition.- Specified by:
getRunCostModelin interfaceIDtoProcess
-
setRunCostModel
Model for run cost of this process. It may only depend on the runCondition.- Specified by:
setRunCostModelin interfaceIDtoProcess
-
getRunDurationModel
Model for run duration of this process. It may only depend on the runCondition.- Specified by:
getRunDurationModelin interfaceIDtoProcess
-
setRunDurationModel
Model for run duration of this process. It may only depend on the runCondition.- Specified by:
setRunDurationModelin interfaceIDtoProcess
-
getJobRequirements
Only jobs that fulfil all these requirements can use this process.- Specified by:
getJobRequirementsin interfaceIDtoProcess
-
setJobRequirements
Only jobs that fulfil all these requirements can use this process.- Specified by:
setJobRequirementsin interfaceIDtoProcess
-
getToolRequirements
Details of the tools that are required if you execute this process.- Specified by:
getToolRequirementsin interfaceIDtoProcess
-
setToolRequirements
Details of the tools that are required if you execute this process.- Specified by:
setToolRequirementsin interfaceIDtoProcess
-
getOperatorRequirements
Details of the operators skill and attention that are required if you execute this process.- Specified by:
getOperatorRequirementsin interfaceIDtoProcess
-
setOperatorRequirements
Details of the operators skill and attention that are required if you execute this process.- Specified by:
setOperatorRequirementsin interfaceIDtoProcess
-
getRunCondition
RunCondition that will determine the cost/durations of run. Special char $ is allowed. It may only depend on task parameters defined in the achieved task.- Specified by:
getRunConditionin interfaceIDtoProcess
-
setRunCondition
RunCondition that will determine the cost/durations of run. Special char $ is allowed. It may only depend on task parameters defined in the achieved task.- Specified by:
setRunConditionin interfaceIDtoProcess
-
getSetupDeviceState
DeviceState that has to be set up before the start of run of this process. Special char $ is allowed. It may only depend on task parameters defined in the achieved task.- Specified by:
getSetupDeviceStatein interfaceIDtoProcess
-
setSetupDeviceState
DeviceState that has to be set up before the start of run of this process. Special char $ is allowed. It may only depend on task parameters defined in the achieved task.- Specified by:
setSetupDeviceStatein interfaceIDtoProcess
-
getTeardownDeviceState
DeviceState that has to be set up after the end of run. Special char $ is allowed. It may only depend on task parameters defined in the achieved task. If this is not set, the setupDeviceState will be kept (without generating any additional transition expense).- Specified by:
getTeardownDeviceStatein interfaceIDtoProcess
-
setTeardownDeviceState
DeviceState that has to be set up after the end of run. Special char $ is allowed. It may only depend on task parameters defined in the achieved task. If this is not set, the setupDeviceState will be kept (without generating any additional transition expense).- Specified by:
setTeardownDeviceStatein interfaceIDtoProcess
-
withId
Unique Id of the process. -
withTask
Task that this process will execute. -
withInterruptible
This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards. -
withRunCostModel
Model for run cost of this process. It may only depend on the runCondition. -
withRunDurationModel
Model for run duration of this process. It may only depend on the runCondition. -
withJobRequirements
Only jobs that fulfil all these requirements can use this process. -
withToolRequirements
Details of the tools that are required if you execute this process. -
withOperatorRequirements
Details of the operators skill and attention that are required if you execute this process. -
withRunCondition
RunCondition that will determine the cost/durations of run. Special char $ is allowed. It may only depend on task parameters defined in the achieved task. -
withSetupDeviceState
DeviceState that has to be set up before the start of run of this process. Special char $ is allowed. It may only depend on task parameters defined in the achieved task. -
withTeardownDeviceState
DeviceState that has to be set up after the end of run. Special char $ is allowed. It may only depend on task parameters defined in the achieved task. If this is not set, the setupDeviceState will be kept (without generating any additional transition expense). -
equals
-
hashCode
public int hashCode()
-