Package de.dlr.proseo.model
Class Task
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.Task
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest equality of persistent objects based on their unique ID.Gets the breakpoint file namesGets the criticality levelChecks whether this task is criticalGets the minimum required memory in GiBGets the suggested number of CPUsGets the processor this task belongs toGets the task nameGets the task versioninthashCode()Checks whether this task is critical (convenience alias for getIsCritical())voidsetBreakpointFileNames(List<String> breakpointFileNames) Sets the breakpoint file namesvoidsetCriticalityLevel(Integer criticalityLevel) Sets the criticality levelvoidsetIsCritical(Boolean isCritical) Sets whether this task is criticalvoidsetMinMemory(Integer minMemory) Sets the minimum required memory in GiBvoidsetNumberOfCpus(Integer numberOfCpus) Sets the suggested number of CPUsvoidsetProcessor(Processor processor) Sets the processor this task belongs tovoidsetTaskName(String taskName) Sets the task namevoidsetTaskVersion(String taskVersion) Sets the task versiontoString()Methods inherited from class de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
getProcessor
Gets the processor this task belongs to- Returns:
- the processor
-
setProcessor
Sets the processor this task belongs to- Parameters:
processor- the processor to set
-
getTaskName
Gets the task name- Returns:
- the taskName
-
setTaskName
Sets the task name- Parameters:
taskName- the taskName to set
-
getTaskVersion
Gets the task version- Returns:
- the taskVersion
-
setTaskVersion
Sets the task version- Parameters:
taskVersion- the taskVersion to set
-
getIsCritical
Checks whether this task is critical- Returns:
- the isCritical
-
isCritical
Checks whether this task is critical (convenience alias for getIsCritical())- Returns:
- the isCritical
-
setIsCritical
Sets whether this task is critical- Parameters:
isCritical- the isCritical to set
-
getCriticalityLevel
Gets the criticality level- Returns:
- the criticalityLevel
-
setCriticalityLevel
Sets the criticality level- Parameters:
criticalityLevel- the criticalityLevel to set
-
getNumberOfCpus
Gets the suggested number of CPUs- Returns:
- the numberOfCpus
-
setNumberOfCpus
Sets the suggested number of CPUs- Parameters:
numberOfCpus- the numberOfCpus to set
-
getMinMemory
Gets the minimum required memory in GiB- Returns:
- the minimum memory
-
setMinMemory
Sets the minimum required memory in GiB- Parameters:
minMemory- the minimum memory to set
-
getBreakpointFileNames
Gets the breakpoint file names- Returns:
- the breakpointFileNames
-
setBreakpointFileNames
Sets the breakpoint file names- Parameters:
breakpointFileNames- the breakpointFileNames to set
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
Description copied from class:PersistentObjectTest equality of persistent objects based on their unique ID.- Overrides:
equalsin classPersistentObject- 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
-