Class DtoProcess

java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoProcess
All Implemented Interfaces:
IDtoProcess

public class DtoProcess extends Object implements IDtoProcess
Definition of a process capable of executing some task.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Unique Id of the process.
      Specified by:
      getId in interface IDtoProcess
    • setId

      public void setId(String id)
      Unique Id of the process.
      Specified by:
      setId in interface IDtoProcess
    • getTask

      public String getTask()
      Task that this process will execute.
      Specified by:
      getTask in interface IDtoProcess
    • setTask

      public void setTask(String task)
      Task that this process will execute.
      Specified by:
      setTask in interface IDtoProcess
    • getInterruptible

      public Boolean getInterruptible()
      This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards.
      Specified by:
      getInterruptible in interface IDtoProcess
    • setInterruptible

      public void setInterruptible(Boolean interruptible)
      This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards.
      Specified by:
      setInterruptible in interface IDtoProcess
    • getRunCostModel

      public String getRunCostModel()
      Model for run cost of this process. It may only depend on the runCondition.
      Specified by:
      getRunCostModel in interface IDtoProcess
    • setRunCostModel

      public void setRunCostModel(String runCostModel)
      Model for run cost of this process. It may only depend on the runCondition.
      Specified by:
      setRunCostModel in interface IDtoProcess
    • getRunDurationModel

      public String getRunDurationModel()
      Model for run duration of this process. It may only depend on the runCondition.
      Specified by:
      getRunDurationModel in interface IDtoProcess
    • setRunDurationModel

      public void setRunDurationModel(String runDurationModel)
      Model for run duration of this process. It may only depend on the runCondition.
      Specified by:
      setRunDurationModel in interface IDtoProcess
    • getJobRequirements

      public IDtoAbstractJobRequirement[] getJobRequirements()
      Only jobs that fulfil all these requirements can use this process.
      Specified by:
      getJobRequirements in interface IDtoProcess
    • setJobRequirements

      public void setJobRequirements(IDtoAbstractJobRequirement[] jobRequirements)
      Only jobs that fulfil all these requirements can use this process.
      Specified by:
      setJobRequirements in interface IDtoProcess
    • getToolRequirements

      public IDtoToolRequirement[] getToolRequirements()
      Details of the tools that are required if you execute this process.
      Specified by:
      getToolRequirements in interface IDtoProcess
    • setToolRequirements

      public void setToolRequirements(IDtoToolRequirement[] toolRequirements)
      Details of the tools that are required if you execute this process.
      Specified by:
      setToolRequirements in interface IDtoProcess
    • getOperatorRequirements

      public IDtoOperatorRequirement[] getOperatorRequirements()
      Details of the operators skill and attention that are required if you execute this process.
      Specified by:
      getOperatorRequirements in interface IDtoProcess
    • setOperatorRequirements

      public void setOperatorRequirements(IDtoOperatorRequirement[] operatorRequirements)
      Details of the operators skill and attention that are required if you execute this process.
      Specified by:
      setOperatorRequirements in interface IDtoProcess
    • getRunCondition

      public IDtoRunCondition 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:
      getRunCondition in interface IDtoProcess
    • setRunCondition

      public void setRunCondition(IDtoRunCondition runCondition)
      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:
      setRunCondition in interface IDtoProcess
    • getSetupDeviceState

      public IDtoDeviceState 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:
      getSetupDeviceState in interface IDtoProcess
    • setSetupDeviceState

      public void setSetupDeviceState(IDtoDeviceState setupDeviceState)
      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:
      setSetupDeviceState in interface IDtoProcess
    • getTeardownDeviceState

      public IDtoDeviceState 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:
      getTeardownDeviceState in interface IDtoProcess
    • setTeardownDeviceState

      public void setTeardownDeviceState(IDtoDeviceState teardownDeviceState)
      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:
      setTeardownDeviceState in interface IDtoProcess
    • withId

      public DtoProcess withId(String id)
      Unique Id of the process.
    • withTask

      public DtoProcess withTask(String task)
      Task that this process will execute.
    • withInterruptible

      public DtoProcess withInterruptible(Boolean interruptible)
      This is allowed to be paused during reservations (during setup, run and teardown) and will resume afterwards.
    • withRunCostModel

      public DtoProcess withRunCostModel(String runCostModel)
      Model for run cost of this process. It may only depend on the runCondition.
    • withRunDurationModel

      public DtoProcess withRunDurationModel(String runDurationModel)
      Model for run duration of this process. It may only depend on the runCondition.
    • withJobRequirements

      public DtoProcess withJobRequirements(IDtoAbstractJobRequirement[] jobRequirements)
      Only jobs that fulfil all these requirements can use this process.
    • withToolRequirements

      public DtoProcess withToolRequirements(IDtoToolRequirement[] toolRequirements)
      Details of the tools that are required if you execute this process.
    • withOperatorRequirements

      public DtoProcess withOperatorRequirements(IDtoOperatorRequirement[] operatorRequirements)
      Details of the operators skill and attention that are required if you execute this process.
    • withRunCondition

      public DtoProcess withRunCondition(IDtoRunCondition runCondition)
      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

      public DtoProcess withSetupDeviceState(IDtoDeviceState setupDeviceState)
      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

      public DtoProcess withTeardownDeviceState(IDtoDeviceState teardownDeviceState)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object