Package de.dlr.proseo.model
Class Processor
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.Processor
A specific version of a ProcessorClass. Each permissible combination of a specific Processor with a specific Configuration is
modelled as a ConfiguredProcessor. A Processor can consist of multiple tasks
(note: for Sentinel-5P only one task per Processor is expected).
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest equality of persistent objects based on their unique ID.Gets the associated processor configurationsGets the docker image name and tagGets the run parameters for the docker imageChecks whether this processor version is a test/evaluation versionGets the Job Order file specification versionGets the maximum execution time in secondsGets the minimum required disk space in MBGets the processor classGets the processor versionChecks whether this processor is executed on time intervalsgetTasks()Gets the task listGets the indicator for generation of input file time intervalsinthashCode()Checks whether this processor is executed on time intervals (convenience alias for getSensingTimeFlag())isTest()Checks whether this processor version is a test/evaluation version (convenience alias for getIsTest())voidsetConfiguredProcessors(Set<ConfiguredProcessor> configuredProcessors) Sets the associated processor configurationsvoidsetDockerImage(String dockerImage) Sets the docker image name and tagvoidsetDockerRunParameters(Map<String, String> dockerRunParameters) Sets the run parameters for the docker imagevoidSets whether this processor version is a test/evaluation versionvoidsetJobOrderVersion(JobOrderVersion jobOrderVersion) Sets the Job Order file specification versionvoidsetMaxTime(Integer maxTime) Sets the maximum execution time in secondsvoidsetMinDiskSpace(Integer minDiskSpace) Sets the minimum required disk space in MBvoidsetProcessorClass(ProcessorClass processorClass) Sets the processor classvoidsetProcessorVersion(String processorVersion) Sets the processor versionvoidsetSensingTimeFlag(Boolean sensingTimeFlag) Sets whether this processor is executed on time intervalsvoidSets the task listvoidsetUseInputFileTimeIntervals(Boolean useInputFileTimeIntervals) Sets the indicator for generation of input file time intervalstoString()Methods inherited from class de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Constructor Details
-
Processor
public Processor()
-
-
Method Details
-
getProcessorClass
Gets the processor class- Returns:
- the processorClass
-
setProcessorClass
Sets the processor class- Parameters:
processorClass- the processorClass to set
-
getConfiguredProcessors
Gets the associated processor configurations- Returns:
- the processor configurations for this processor
-
setConfiguredProcessors
Sets the associated processor configurations- Parameters:
configuredProcessors- the processor configurations to set
-
getProcessorVersion
Gets the processor version- Returns:
- the processorVersion
-
setProcessorVersion
Sets the processor version- Parameters:
processorVersion- the processorVersion to set
-
getJobOrderVersion
Gets the Job Order file specification version- Returns:
- the Job Order file specification version
-
setJobOrderVersion
Sets the Job Order file specification version- Parameters:
jobOrderVersion- the Job Order file specification version to set
-
getUseInputFileTimeIntervals
Gets the indicator for generation of input file time intervals- Returns:
- true, if input file time intervals shall be generated for this processor, false otherwise
-
setUseInputFileTimeIntervals
Sets the indicator for generation of input file time intervals- Parameters:
useInputFileTimeIntervals- set to true, if input file time intervals shall be generated for this processor, and to false otherwise
-
getIsTest
Checks whether this processor version is a test/evaluation version- Returns:
- the isTest
-
isTest
Checks whether this processor version is a test/evaluation version (convenience alias for getIsTest())- Returns:
- the isTest
-
setIsTest
Sets whether this processor version is a test/evaluation version- Parameters:
isTest- the isTest to set
-
getMinDiskSpace
Gets the minimum required disk space in MB- Returns:
- the minDiskSpace
-
setMinDiskSpace
Sets the minimum required disk space in MB- Parameters:
minDiskSpace- the minDiskSpace to set
-
getMaxTime
Gets the maximum execution time in seconds- Returns:
- the maxTime
-
setMaxTime
Sets the maximum execution time in seconds- Parameters:
maxTime- the maxTime to set
-
getSensingTimeFlag
Checks whether this processor is executed on time intervals- Returns:
- the sensingTimeFlag
-
hasSensingTimeFlag
Checks whether this processor is executed on time intervals (convenience alias for getSensingTimeFlag())- Returns:
- the sensingTimeFlag
-
setSensingTimeFlag
Sets whether this processor is executed on time intervals- Parameters:
sensingTimeFlag- the sensingTimeFlag to set
-
getTasks
Gets the task list- Returns:
- the tasks
-
setTasks
Sets the task list- Parameters:
tasks- the tasks to set
-
getDockerImage
Gets the docker image name and tag- Returns:
- the docker image name and tag
-
setDockerImage
Sets the docker image name and tag- Parameters:
dockerImage- the docker image name and tag to set
-
getDockerRunParameters
Gets the run parameters for the docker image- Returns:
- the "docker run" parameters
-
setDockerRunParameters
Sets the run parameters for the docker image- Parameters:
dockerRunParameters- the "docker run" parameters 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
-