Class DtoAllocation

java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoAllocation
All Implemented Interfaces:
IDtoAllocation

public class DtoAllocation extends Object implements IDtoAllocation
Proposed realization of a job.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Unique identifier among all DtoAllocations.
      Specified by:
      getId in interface IDtoAllocation
    • setId

      public void setId(String id)
      Unique identifier among all DtoAllocations.
      Specified by:
      setId in interface IDtoAllocation
    • getSetupStart

      public Long getSetupStart()
      Start preparation of the needed deviceState at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart).
      Specified by:
      getSetupStart in interface IDtoAllocation
    • setSetupStart

      public void setSetupStart(Long setupStart)
      Start preparation of the needed deviceState at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart).
      Specified by:
      setSetupStart in interface IDtoAllocation
    • getSetupEnd

      public Long getSetupEnd()
      Finish preparation of the needed deviceState at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Redundant information Will always be equal to runStart.
      Specified by:
      getSetupEnd in interface IDtoAllocation
    • setSetupEnd

      public void setSetupEnd(Long setupEnd)
      Finish preparation of the needed deviceState at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Redundant information Will always be equal to runStart.
      Specified by:
      setSetupEnd in interface IDtoAllocation
    • getRunStart

      public Long getRunStart()
      Start production at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Will always be equal to setupEnd. tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
      Specified by:
      getRunStart in interface IDtoAllocation
    • setRunStart

      public void setRunStart(Long runStart)
      Start production at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Will always be equal to setupEnd. tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
      Specified by:
      setRunStart in interface IDtoAllocation
    • getRunEnd

      public Long getRunEnd()
      Finish production at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Redundant information Will always be equal to teardownStart.
      Specified by:
      getRunEnd in interface IDtoAllocation
    • setRunEnd

      public void setRunEnd(Long runEnd)
      Finish production at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Redundant information Will always be equal to teardownStart.
      Specified by:
      setRunEnd in interface IDtoAllocation
    • getTeardownStart

      public Long getTeardownStart()
      Start preparation of teardownDeviceState after run at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Will always be equal to runEnd. tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
      Specified by:
      getTeardownStart in interface IDtoAllocation
    • setTeardownStart

      public void setTeardownStart(Long teardownStart)
      Start preparation of teardownDeviceState after run at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Will always be equal to runEnd. tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
      Specified by:
      setTeardownStart in interface IDtoAllocation
    • getTeardownEnd

      public Long getTeardownEnd()
      Finish preparation of teardownDeviceState after run at this time (teardownEnd greater or equal teardownStart equal to runEnd greater than runStart equal to setupEnd greater or equal setupStart). tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
      Specified by:
      getTeardownEnd in interface IDtoAllocation
    • setTeardownEnd

      public void setTeardownEnd(Long teardownEnd)
      Finish preparation of teardownDeviceState after run at this time (teardownEnd greater or equal teardownStart equal to runEnd greater than runStart equal to setupEnd greater or equal setupStart). tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
      Specified by:
      setTeardownEnd in interface IDtoAllocation
    • getJob

      public String getJob()
      Id of the production job that is produced in this allocation.
      Specified by:
      getJob in interface IDtoAllocation
    • setJob

      public void setJob(String job)
      Id of the production job that is produced in this allocation.
      Specified by:
      setJob in interface IDtoAllocation
    • getProcess

      public String getProcess()
      Id of the process executed in this allocation. Always set for non-fixed jobs, never set for fixed jobs.
      Specified by:
      getProcess in interface IDtoAllocation
    • setProcess

      public void setProcess(String process)
      Id of the process executed in this allocation. Always set for non-fixed jobs, never set for fixed jobs.
      Specified by:
      setProcess in interface IDtoAllocation
    • getDevice

      public String getDevice()
      Id of the device used by this allocation.
      Specified by:
      getDevice in interface IDtoAllocation
    • setDevice

      public void setDevice(String device)
      Id of the device used by this allocation.
      Specified by:
      setDevice in interface IDtoAllocation
    • getRunCost

      public Double getRunCost()
      The total cost in production (after setup, before teardown). Redundant information (see process, job, runModel)
      Specified by:
      getRunCost in interface IDtoAllocation
    • setRunCost

      public void setRunCost(Double runCost)
      The total cost in production (after setup, before teardown). Redundant information (see process, job, runModel)
      Specified by:
      setRunCost in interface IDtoAllocation
    • getRunDuration

      public Long getRunDuration()
      The total duration in production (after setup, before teardown). Does not include possible time spent in breaks (i.e. this can differ from runEnd - runStart). Redundant information (see process, job, runModel)
      Specified by:
      getRunDuration in interface IDtoAllocation
    • setRunDuration

      public void setRunDuration(Long runDuration)
      The total duration in production (after setup, before teardown). Does not include possible time spent in breaks (i.e. this can differ from runEnd - runStart). Redundant information (see process, job, runModel)
      Specified by:
      setRunDuration in interface IDtoAllocation
    • getSetupCost

      public Double getSetupCost()
      The total cost in setup (before production). Redundant information (see deviceState, other allocations, job, setupModel)
      Specified by:
      getSetupCost in interface IDtoAllocation
    • setSetupCost

      public void setSetupCost(Double setupCost)
      The total cost in setup (before production). Redundant information (see deviceState, other allocations, job, setupModel)
      Specified by:
      setSetupCost in interface IDtoAllocation
    • getSetupDuration

      public Long getSetupDuration()
      The total duration in setup (before production). Does not include possible time spent in breaks (i.e. this can differ from setupEnd - setupStart). Redundant information (see deviceState, other allocations, job, setupModel)
      Specified by:
      getSetupDuration in interface IDtoAllocation
    • setSetupDuration

      public void setSetupDuration(Long setupDuration)
      The total duration in setup (before production). Does not include possible time spent in breaks (i.e. this can differ from setupEnd - setupStart). Redundant information (see deviceState, other allocations, job, setupModel)
      Specified by:
      setSetupDuration in interface IDtoAllocation
    • getTeardownCost

      public Double getTeardownCost()
      The total cost in teardown (after production). Redundant information (see deviceState, other allocations, job, setupModel)
      Specified by:
      getTeardownCost in interface IDtoAllocation
    • setTeardownCost

      public void setTeardownCost(Double teardownCost)
      The total cost in teardown (after production). Redundant information (see deviceState, other allocations, job, setupModel)
      Specified by:
      setTeardownCost in interface IDtoAllocation
    • getTeardownDuration

      public Long getTeardownDuration()
      The total duration in teardown (after production). Does not include possible time spent in breaks (i.e. this can differ from teardownEnd - teardownStart) Redundant information (see deviceState, other allocations, job, setupModel)
      Specified by:
      getTeardownDuration in interface IDtoAllocation
    • setTeardownDuration

      public void setTeardownDuration(Long teardownDuration)
      The total duration in teardown (after production). Does not include possible time spent in breaks (i.e. this can differ from teardownEnd - teardownStart) Redundant information (see deviceState, other allocations, job, setupModel)
      Specified by:
      setTeardownDuration in interface IDtoAllocation
    • getDependencies

      public IDtoAllocationDependency[] getDependencies()
      All allocations that this allocation directly depends on. An allocation depends on the allocations for all productionJobs that this allocation's job has a dependency for. Redundant information (see job + device + other allocations + selectedAlterantives + input transportations)
      Specified by:
      getDependencies in interface IDtoAllocation
    • setDependencies

      public void setDependencies(IDtoAllocationDependency[] dependencies)
      All allocations that this allocation directly depends on. An allocation depends on the allocations for all productionJobs that this allocation's job has a dependency for. Redundant information (see job + device + other allocations + selectedAlterantives + input transportations)
      Specified by:
      setDependencies in interface IDtoAllocation
    • getToolUsages

      public IDtoToolUsage[] getToolUsages()
      The tools needed during some times by this allocation. Redundant information (see process + setupStart/runStart/runEnd/teardownEnd)
      Specified by:
      getToolUsages in interface IDtoAllocation
    • setToolUsages

      public void setToolUsages(IDtoToolUsage[] toolUsages)
      The tools needed during some times by this allocation. Redundant information (see process + setupStart/runStart/runEnd/teardownEnd)
      Specified by:
      setToolUsages in interface IDtoAllocation
    • getSkillUsages

      public IDtoSkillUsage[] getSkillUsages()
      The skills needed during some times by this allocation. Redundant information (see process + setupStart/runStart/runEnd/teardownEnd)
      Specified by:
      getSkillUsages in interface IDtoAllocation
    • setSkillUsages

      public void setSkillUsages(IDtoSkillUsage[] skillUsages)
      The skills needed during some times by this allocation. Redundant information (see process + setupStart/runStart/runEnd/teardownEnd)
      Specified by:
      setSkillUsages in interface IDtoAllocation
    • getProducedMaterials

      public IDtoTimedMaterialProduction[] getProducedMaterials()
      The Material produced at some time during this allocation. Redundant information (see job + setupStart/runStart/runEnd/teardownEnd)
      Specified by:
      getProducedMaterials in interface IDtoAllocation
    • setProducedMaterials

      public void setProducedMaterials(IDtoTimedMaterialProduction[] producedMaterials)
      The Material produced at some time during this allocation. Redundant information (see job + setupStart/runStart/runEnd/teardownEnd)
      Specified by:
      setProducedMaterials in interface IDtoAllocation
    • getConsumedMaterials

      public IDtoTimedMaterialConsumption[] getConsumedMaterials()
      The Material produced at some time during this allocation. Redundant information (see job + setupStart/runStart/runEnd/teardownEnd)
      Specified by:
      getConsumedMaterials in interface IDtoAllocation
    • setConsumedMaterials

      public void setConsumedMaterials(IDtoTimedMaterialConsumption[] consumedMaterials)
      The Material produced at some time during this allocation. Redundant information (see job + setupStart/runStart/runEnd/teardownEnd)
      Specified by:
      setConsumedMaterials in interface IDtoAllocation
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • withId

      public DtoAllocation withId(String id)
      Unique identifier among all DtoAllocations.
    • withSetupStart

      public DtoAllocation withSetupStart(Long setupStart)
      Start preparation of the needed deviceState at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart).
    • withSetupEnd

      public DtoAllocation withSetupEnd(Long setupEnd)
      Finish preparation of the needed deviceState at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Redundant information Will always be equal to runStart.
    • withRunStart

      public DtoAllocation withRunStart(Long runStart)
      Start production at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Will always be equal to setupEnd. tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
    • withRunEnd

      public DtoAllocation withRunEnd(Long runEnd)
      Finish production at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Redundant information Will always be equal to teardownStart.
    • withTeardownStart

      public DtoAllocation withTeardownStart(Long teardownStart)
      Start preparation of teardownDeviceState after run at this time (TeardownEnd >= TeardownStart = RunEnd > RunStart = SetupEnd >= SetupStart). Will always be equal to runEnd. tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
    • withTeardownEnd

      public DtoAllocation withTeardownEnd(Long teardownEnd)
      Finish preparation of teardownDeviceState after run at this time (teardownEnd greater or equal teardownStart equal to runEnd greater than runStart equal to setupEnd greater or equal setupStart). tecnically Redundant information (see device avaiabilities, reservations, setup and run duration, ...)
    • withJob

      public DtoAllocation withJob(String job)
      Id of the production job that is produced in this allocation.
    • withProcess

      public DtoAllocation withProcess(String process)
      Id of the process executed in this allocation. Always set for non-fixed jobs, never set for fixed jobs.
    • withDevice

      public DtoAllocation withDevice(String device)
      Id of the device used by this allocation.
    • withRunCost

      public DtoAllocation withRunCost(Double runCost)
      The total cost in production (after setup, before teardown). Redundant information (see process, job, runModel)
    • withRunDuration

      public DtoAllocation withRunDuration(Long runDuration)
      The total duration in production (after setup, before teardown). Does not include possible time spent in breaks (i.e. this can differ from runEnd - runStart). Redundant information (see process, job, runModel)
    • withSetupCost

      public DtoAllocation withSetupCost(Double setupCost)
      The total cost in setup (before production). Redundant information (see deviceState, other allocations, job, setupModel)
    • withSetupDuration

      public DtoAllocation withSetupDuration(Long setupDuration)
      The total duration in setup (before production). Does not include possible time spent in breaks (i.e. this can differ from setupEnd - setupStart). Redundant information (see deviceState, other allocations, job, setupModel)
    • withTeardownCost

      public DtoAllocation withTeardownCost(Double teardownCost)
      The total cost in teardown (after production). Redundant information (see deviceState, other allocations, job, setupModel)
    • withTeardownDuration

      public DtoAllocation withTeardownDuration(Long teardownDuration)
      The total duration in teardown (after production). Does not include possible time spent in breaks (i.e. this can differ from teardownEnd - teardownStart) Redundant information (see deviceState, other allocations, job, setupModel)
    • withDependencies

      public DtoAllocation withDependencies(IDtoAllocationDependency[] dependencies)
      All allocations that this allocation directly depends on. An allocation depends on the allocations for all productionJobs that this allocation's job has a dependency for. Redundant information (see job + device + other allocations + selectedAlterantives + input transportations)
    • withToolUsages

      public DtoAllocation withToolUsages(IDtoToolUsage[] toolUsages)
      The tools needed during some times by this allocation. Redundant information (see process + setupStart/runStart/runEnd/teardownEnd)
    • withSkillUsages

      public DtoAllocation withSkillUsages(IDtoSkillUsage[] skillUsages)
      The skills needed during some times by this allocation. Redundant information (see process + setupStart/runStart/runEnd/teardownEnd)
    • withProducedMaterials

      public DtoAllocation withProducedMaterials(IDtoTimedMaterialProduction[] producedMaterials)
      The Material produced at some time during this allocation. Redundant information (see job + setupStart/runStart/runEnd/teardownEnd)
    • withConsumedMaterials

      public DtoAllocation withConsumedMaterials(IDtoTimedMaterialConsumption[] consumedMaterials)
      The Material produced at some time during this allocation. Redundant information (see job + setupStart/runStart/runEnd/teardownEnd)