Package de.dlr.proseo.model
Klasse Product
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.Product
Representation of a data product
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Tests equality of products based on their attribute values.Generates a product filename according to the file name template given for the enclosing missionGet a named Boolean parameterGets the sub-products of this productGets the configured processor that generated this productgetDoubleParameter
(String key) Get a named Double parameterGets the product download historyGets the enclosing product of this productGets the product eviction timeGets the product file classGets the product generation timeGet a named Instant parameterGet a named Integer parameterGets the job step that created this productgetMode()
Gets the processing modegetOrbit()
Gets the orbit for this productGets the product parametersGets the product classGets the set of product files (at most one per existing processing facility)Gets the production type of the productGets the product quality indicatorGets the product publication (= ingestion) timeGets the time of the availability of the satellite raw dataGets the requested start timeGets the requested stop timeGets the set of satisfied product queriesGets the sensing start timeGets the sensing stop timegetStringParameter
(String key) Get a named String parametergetUuid()
Gets the universally unique product identifierint
hashCode()
void
setBooleanParameter
(String key, Boolean value) Set the named Boolean parameter to the given valuevoid
setComponentProducts
(Set<Product> componentProducts) Sets the sub-products of this productvoid
setConfiguredProcessor
(ConfiguredProcessor configuredProcessor) Sets the configured processor that generated this productvoid
setDoubleParameter
(String key, Double value) Set the named Double parameter to the given valuevoid
setDownloadHistory
(Set<DownloadHistory> downloadHistory) Sets the product download historyvoid
setEnclosingProduct
(Product enclosingProduct) Sets the enclosing product of this productvoid
setEvictionTime
(Instant evictionTime) Sets the product eviction timevoid
setFileClass
(String fileClass) Sets the product file classvoid
setGenerationTime
(Instant generationTime) Sets the product generation timevoid
setInstantParameter
(String key, TemporalAccessor value) Set the named Instant parameter to the given valuevoid
setIntegerParameter
(String key, Integer value) Set the named Integer parameter to the given valuevoid
setJobStep
(JobStep jobStep) Sets the job step that created this productvoid
Sets the processing modevoid
Sets the orbit for this productvoid
setParameters
(Map<String, Parameter> parameters) Sets the product parametersvoid
setProductClass
(ProductClass productClass) Sets the product classvoid
setProductFile
(Set<ProductFile> productFile) Sets the set of product files (at most one per existing processing facility)void
setProductionType
(ProductionType productionType) Sets the production type of the productvoid
setProductQuality
(ProductQuality productQuality) Sets the product quality indicatorvoid
setPublicationTime
(Instant publicationTime) Sets the product publication (= ingestion) timevoid
setRawDataAvailabilityTime
(Instant rawDataAvailabilityTime) Sets the time of the availability of the satellite raw datavoid
setRequestedStartTime
(Instant requestedStartTime) Sets the requested start timevoid
setRequestedStopTime
(Instant requestedStopTime) Sets the requested stop timevoid
setSatisfiedProductQueries
(Set<ProductQuery> satisfiedProductQueries) Sets the set of satisfied product queriesvoid
setSensingStartTime
(Instant sensingStartTime) Sets the sensing start timevoid
setSensingStopTime
(Instant sensingStopTime) Sets the sensing stop timevoid
setStringParameter
(String key, String value) Set the named String parameter to the given valuevoid
Sets the universally unique product identifiertoString()
Von Klasse geerbte Methoden de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Konstruktordetails
-
Product
public Product()
-
-
Methodendetails
-
getUuid
Gets the universally unique product identifier- Gibt zurück:
- the UUID
-
setUuid
Sets the universally unique product identifier- Parameter:
uuid
- the UUID to set
-
getProductClass
Gets the product class- Gibt zurück:
- the productClass
-
setProductClass
Sets the product class- Parameter:
productClass
- the productClass to set
-
getFileClass
Gets the product file class- Gibt zurück:
- the file class
-
setFileClass
Sets the product file class- Parameter:
fileClass
- the file class to set
-
getMode
Gets the processing mode- Gibt zurück:
- the mode
-
setMode
Sets the processing mode- Parameter:
mode
- the mode to set
-
getProductQuality
Gets the product quality indicator- Gibt zurück:
- the product quality
-
setProductQuality
Sets the product quality indicator- Parameter:
productQuality
- the product quality to set
-
getRequestedStartTime
Gets the requested start time- Gibt zurück:
- the requested start time
-
setRequestedStartTime
Sets the requested start time- Parameter:
requestedStartTime
- the requested start time to set
-
getRequestedStopTime
Gets the requested stop time- Gibt zurück:
- the requested stop time
-
setRequestedStopTime
Sets the requested stop time- Parameter:
requestedStopTime
- the requested stop time to set
-
getSensingStartTime
Gets the sensing start time- Gibt zurück:
- the sensing start time
-
setSensingStartTime
Sets the sensing start time- Parameter:
sensingStartTime
- the sensing start time to set
-
getSensingStopTime
Gets the sensing stop time- Gibt zurück:
- the sensing stop time
-
setSensingStopTime
Sets the sensing stop time- Parameter:
sensingStopTime
- the sensing stop time to set
-
getRawDataAvailabilityTime
Gets the time of the availability of the satellite raw data- Gibt zurück:
- the raw data availability time
-
setRawDataAvailabilityTime
Sets the time of the availability of the satellite raw data- Parameter:
rawDataAvailabilityTime
- the raw data availability time to set
-
getGenerationTime
Gets the product generation time- Gibt zurück:
- the generationTime
-
setGenerationTime
Sets the product generation time- Parameter:
generationTime
- the generationTime to set
-
getPublicationTime
Gets the product publication (= ingestion) time- Gibt zurück:
- the publication time
-
setPublicationTime
Sets the product publication (= ingestion) time- Parameter:
publicationTime
- the publication time to set
-
getEvictionTime
Gets the product eviction time- Gibt zurück:
- the eviction time
-
setEvictionTime
Sets the product eviction time- Parameter:
evictionTime
- the eviction time to set
-
getDownloadHistory
Gets the product download history- Gibt zurück:
- the download history
-
setDownloadHistory
Sets the product download history- Parameter:
downloadHistory
- the download history to set
-
getProductionType
Gets the production type of the product- Gibt zurück:
- the production type
-
setProductionType
Sets the production type of the product- Parameter:
productionType
- the production type to set
-
getComponentProducts
Gets the sub-products of this product- Gibt zurück:
- the componentProducts
-
setComponentProducts
Sets the sub-products of this product- Parameter:
componentProducts
- the componentProducts to set
-
getEnclosingProduct
Gets the enclosing product of this product- Gibt zurück:
- the enclosingProduct
-
setEnclosingProduct
Sets the enclosing product of this product- Parameter:
enclosingProduct
- the enclosingProduct to set
-
getOrbit
Gets the orbit for this product- Gibt zurück:
- the orbit (or null, if this product is not associated to an orbit)
-
setOrbit
Sets the orbit for this product- Parameter:
orbit
- the orbit to set (may be null)
-
getProductFile
Gets the set of product files (at most one per existing processing facility)- Gibt zurück:
- the productFile
-
setProductFile
Sets the set of product files (at most one per existing processing facility)- Parameter:
productFile
- the productFile to set
-
getSatisfiedProductQueries
Gets the set of satisfied product queries- Gibt zurück:
- the satisfiedProductQueries
-
setSatisfiedProductQueries
Sets the set of satisfied product queries- Parameter:
satisfiedProductQueries
- the satisfiedProductQueries to set
-
getJobStep
Gets the job step that created this product- Gibt zurück:
- the jobStep
-
setJobStep
Sets the job step that created this product- Parameter:
jobStep
- the jobStep to set
-
getConfiguredProcessor
Gets the configured processor that generated this product- Gibt zurück:
- the configuredProcessor
-
setConfiguredProcessor
Sets the configured processor that generated this product- Parameter:
configuredProcessor
- the configuredProcessor to set
-
getParameters
Gets the product parameters- Gibt zurück:
- the parameters
-
setParameters
Sets the product parameters- Parameter:
parameters
- the parameters to set
-
getStringParameter
Get a named String parameter- Parameter:
key
- the name of the String parameter- Gibt zurück:
- the parameter value casted to String
- Löst aus:
ClassCastException
- if the named parameter is not of an appropriate type
-
setStringParameter
Set the named String parameter to the given value- Parameter:
key
- the parameter namevalue
- the parameter value to set
-
getIntegerParameter
Get a named Integer parameter- Parameter:
key
- the name of the Integer parameter- Gibt zurück:
- the parameter value casted to Integer
- Löst aus:
ClassCastException
- if the named parameter is not of an appropriate type
-
setIntegerParameter
Set the named Integer parameter to the given value- Parameter:
key
- the parameter namevalue
- the parameter value to set
-
getBooleanParameter
Get a named Boolean parameter- Parameter:
key
- the name of the Boolean parameter- Gibt zurück:
- the parameter value casted to Boolean
- Löst aus:
ClassCastException
- if the named parameter is not of an appropriate type
-
setBooleanParameter
Set the named Boolean parameter to the given value- Parameter:
key
- the parameter namevalue
- the parameter value to set
-
getDoubleParameter
Get a named Double parameter- Parameter:
key
- the name of the Double parameter- Gibt zurück:
- the parameter value casted to Double
- Löst aus:
ClassCastException
- if the named parameter is not of an appropriate type
-
setDoubleParameter
Set the named Double parameter to the given value- Parameter:
key
- the parameter namevalue
- the parameter value to set
-
getInstantParameter
Get a named Instant parameter- Parameter:
key
- the name of the Instant parameter- Gibt zurück:
- the parameter value casted to Instant
- Löst aus:
ClassCastException
- if the named parameter is not of an appropriate type
-
setInstantParameter
Set the named Instant parameter to the given value- Parameter:
key
- the parameter namevalue
- the parameter value to set
-
generateFilename
public String generateFilename() throws IllegalStateException, org.springframework.expression.ParseException, org.springframework.expression.EvaluationExceptionGenerates a product filename according to the file name template given for the enclosing mission- Gibt zurück:
- a filename string
- Löst aus:
IllegalStateException
- if the filename template for the mission could not be foundorg.springframework.expression.ParseException
- if the filename template could not be parsed using Spring Expression Languageorg.springframework.expression.EvaluationException
- if the filename template could not be evaluated
-
toString
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCode
in KlassePersistentObject
-
equals
Tests equality of products based on their attribute values. Returns true if either of the following alternatives holds:- The database IDs are equal
- The UUIDs are equal or at least one of the UUIDs is null (i.e. they do not have different UUIDs)
- All of the following attributes are equal:
- Product class
- Configured processor
- Sensing start/stop times
- Processing mode
- File class
- Product quality
- Production type
- All product parameters present in both products (additional parameters on either product will be ignored)
- Setzt außer Kraft:
equals
in KlassePersistentObject
- Parameter:
obj
- the object to compare to- Gibt zurück:
- true, if the two objects are equal, false otherwise
- Siehe auch:
-