Class DtoJobDependency

java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoJobDependency
All Implemented Interfaces:
IDtoJobDependency

public class DtoJobDependency extends Object implements IDtoJobDependency
Indicates that some job (successor) may only start (or start-of-run or similar) after some other job (predecessor) is finished or has progressed enough.
  • Constructor Details

    • DtoJobDependency

      protected DtoJobDependency()
    • DtoJobDependency

      public DtoJobDependency(String predecessor, String successor)
  • Method Details

    • getPredecessor

      public String getPredecessor()
      the job that has to be finished or progressed enough.
      Specified by:
      getPredecessor in interface IDtoJobDependency
    • setPredecessor

      public void setPredecessor(String predecessor)
      the job that has to be finished or progressed enough.
      Specified by:
      setPredecessor in interface IDtoJobDependency
    • getSuccessor

      public String getSuccessor()
      the job that depends on predecessor.
      Specified by:
      getSuccessor in interface IDtoJobDependency
    • setSuccessor

      public void setSuccessor(String successor)
      the job that depends on predecessor.
      Specified by:
      setSuccessor in interface IDtoJobDependency
    • getPredecessorAnchor

      public IDtoAbstractAllocationAnchor getPredecessorAnchor()
      specifies the go ahead point in time during setup or execution of the predecessor
      Specified by:
      getPredecessorAnchor in interface IDtoJobDependency
    • setPredecessorAnchor

      public void setPredecessorAnchor(IDtoAbstractAllocationAnchor predecessorAnchor)
      specifies the go ahead point in time during setup or execution of the predecessor
      Specified by:
      setPredecessorAnchor in interface IDtoJobDependency
    • getSuccessorAnchor

      public IDtoAbstractAllocationAnchor getSuccessorAnchor()
      specifies the time in successor that has to be after or at predecessorTime + max(minimalBuffer, transportation)
      Specified by:
      getSuccessorAnchor in interface IDtoJobDependency
    • setSuccessorAnchor

      public void setSuccessorAnchor(IDtoAbstractAllocationAnchor successorAnchor)
      specifies the time in successor that has to be after or at predecessorTime + max(minimalBuffer, transportation)
      Specified by:
      setSuccessorAnchor in interface IDtoJobDependency
    • getMinimalBuffer

      public Long getMinimalBuffer()
      Lower bound on the duration between predecessorTime and successorTime
      Specified by:
      getMinimalBuffer in interface IDtoJobDependency
    • setMinimalBuffer

      public void setMinimalBuffer(Long minimalBuffer)
      Lower bound on the duration between predecessorTime and successorTime
      Specified by:
      setMinimalBuffer in interface IDtoJobDependency
    • getMaximalBuffer

      public Long getMaximalBuffer()
      Upper bound on the duration between predecessorTime and successorTime for successor to be considered on time, i.e. enforced as additional latestEndTime on successor. If not set, there is no upper bound.
      Specified by:
      getMaximalBuffer in interface IDtoJobDependency
    • setMaximalBuffer

      public void setMaximalBuffer(Long maximalBuffer)
      Upper bound on the duration between predecessorTime and successorTime for successor to be considered on time, i.e. enforced as additional latestEndTime on successor. If not set, there is no upper bound.
      Specified by:
      setMaximalBuffer in interface IDtoJobDependency
    • withPredecessor

      public DtoJobDependency withPredecessor(String predecessor)
      the job that has to be finished or progressed enough.
    • withSuccessor

      public DtoJobDependency withSuccessor(String successor)
      the job that depends on predecessor.
    • withPredecessorAnchor

      public DtoJobDependency withPredecessorAnchor(IDtoAbstractAllocationAnchor predecessorAnchor)
      specifies the go ahead point in time during setup or execution of the predecessor
    • withSuccessorAnchor

      public DtoJobDependency withSuccessorAnchor(IDtoAbstractAllocationAnchor successorAnchor)
      specifies the time in successor that has to be after or at predecessorTime + max(minimalBuffer, transportation)
    • withMinimalBuffer

      public DtoJobDependency withMinimalBuffer(Long minimalBuffer)
      Lower bound on the duration between predecessorTime and successorTime
    • withMaximalBuffer

      public DtoJobDependency withMaximalBuffer(Long maximalBuffer)
      Upper bound on the duration between predecessorTime and successorTime for successor to be considered on time, i.e. enforced as additional latestEndTime on successor. If not set, there is no upper bound.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object