Class Task


@Entity public class Task extends PersistentObject
A single, separately adressable execution step of a Processor. Tasks may be flagged as "external", in which case the input data products are forwarded to an external entity for processing, and the output products are retrieved from that external entity. (Level 4 "Task" from Generic IPF Interface Specifications, sec. 4.1.3)
Author:
Dr. Thomas Bassler
  • Constructor Details

    • Task

      public Task()
  • Method Details

    • getProcessor

      public Processor getProcessor()
      Gets the processor this task belongs to
      Returns:
      the processor
    • setProcessor

      public void setProcessor(Processor processor)
      Sets the processor this task belongs to
      Parameters:
      processor - the processor to set
    • getTaskName

      public String getTaskName()
      Gets the task name
      Returns:
      the taskName
    • setTaskName

      public void setTaskName(String taskName)
      Sets the task name
      Parameters:
      taskName - the taskName to set
    • getTaskVersion

      public String getTaskVersion()
      Gets the task version
      Returns:
      the taskVersion
    • setTaskVersion

      public void setTaskVersion(String taskVersion)
      Sets the task version
      Parameters:
      taskVersion - the taskVersion to set
    • getIsCritical

      public Boolean getIsCritical()
      Checks whether this task is critical
      Returns:
      the isCritical
    • isCritical

      public Boolean isCritical()
      Checks whether this task is critical (convenience alias for getIsCritical())
      Returns:
      the isCritical
    • setIsCritical

      public void setIsCritical(Boolean isCritical)
      Sets whether this task is critical
      Parameters:
      isCritical - the isCritical to set
    • getCriticalityLevel

      public Integer getCriticalityLevel()
      Gets the criticality level
      Returns:
      the criticalityLevel
    • setCriticalityLevel

      public void setCriticalityLevel(Integer criticalityLevel)
      Sets the criticality level
      Parameters:
      criticalityLevel - the criticalityLevel to set
    • getNumberOfCpus

      public Integer getNumberOfCpus()
      Gets the suggested number of CPUs
      Returns:
      the numberOfCpus
    • setNumberOfCpus

      public void setNumberOfCpus(Integer numberOfCpus)
      Sets the suggested number of CPUs
      Parameters:
      numberOfCpus - the numberOfCpus to set
    • getMinMemory

      public Integer getMinMemory()
      Gets the minimum required memory in GiB
      Returns:
      the minimum memory
    • setMinMemory

      public void setMinMemory(Integer minMemory)
      Sets the minimum required memory in GiB
      Parameters:
      minMemory - the minimum memory to set
    • getBreakpointFileNames

      public List<String> getBreakpointFileNames()
      Gets the breakpoint file names
      Returns:
      the breakpointFileNames
    • setBreakpointFileNames

      public void setBreakpointFileNames(List<String> breakpointFileNames)
      Sets the breakpoint file names
      Parameters:
      breakpointFileNames - the breakpointFileNames to set
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PersistentObject
    • equals

      public boolean equals(Object obj)
      Description copied from class: PersistentObject
      Test equality of persistent objects based on their unique ID.
      Overrides:
      equals in class PersistentObject
      Parameters:
      obj - the object to compare this object to
      Returns:
      true, if obj is a persistent object and has the same ID, false otherwise
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object