Package de.dlr.proseo.model
Class ProductClass
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.ProductClass
A class of products pertaining to a specific Mission, e. g. the L2_O3 products of Sentinel-5P. A ProductClass can describe
final (deliverable) products as well as intermediate products. For a ProductClass its dependency on base products can be
described using SelectionRules. Alternatively a ProductClass may be composed of other product classes (e. g. the S5P NPP
products consist of three separate single-band NPP sub-products).
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest equality of persistent objects based on their unique ID.Gets the product classes of component productsGets the default slice duration (if the default slicing type is TIME_SLICE)Gets the default slicing type to apply in ordersGets the product class descriptionGets the product classes of an enclosing productGets the mission this product class belongs toGets the processing levelGets the processor class capable of generating products of this classGets the template for product file naming for this product class (if no template is set, returns the template of the associated mission)Gets the prosEO-internal product type (product class identifier)Gets the set of required selection rulesGets the set of supported selection rulesGets the product visibility to external usersinthashCode()voidsetComponentClasses(Set<ProductClass> componentClasses) Sets the product classes for component productsvoidsetDefaultSliceDuration(Duration defaultSliceDuration) Sets the default slice duration (if the default slicing type is TIME_SLICE)voidsetDefaultSlicingType(OrderSlicingType defaultSlicingType) Sets the default slicing type to apply in ordersvoidsetDescription(String description) Sets the product class descriptionvoidsetEnclosingClass(ProductClass enclosingClass) Sets the product classes for an enclosing productvoidsetMission(Mission mission) Sets the mission this product class belongs tovoidsetProcessingLevel(ProcessingLevel processingLevel) Sets the processing levelvoidsetProcessorClass(ProcessorClass processorClass) Gets the processor class capable of generating products of this classvoidsetProductFileTemplate(String productFileTemplate) Sets the template for product file naming for this product class (will override template from Mission)voidsetProductType(String productType) Sets the prosEO-internal product type (product class identifier)voidsetRequiredSelectionRules(Set<SimpleSelectionRule> requiredSelectionRules) Gets the set of required selection rulesvoidsetSupportedSelectionRules(Set<SimpleSelectionRule> supportedSelectionRules) Sets the set of supported selection rulesvoidsetVisibility(ProductVisibility visibility) Gets the product visibility to external userstoString()Methods inherited from class de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Constructor Details
-
ProductClass
public ProductClass()
-
-
Method Details
-
getMission
Gets the mission this product class belongs to- Returns:
- the mission
-
setMission
Sets the mission this product class belongs to- Parameters:
mission- the mission to set
-
getProductType
Gets the prosEO-internal product type (product class identifier)- Returns:
- the product type
-
setProductType
Sets the prosEO-internal product type (product class identifier)- Parameters:
productType- the product type to set
-
getDescription
Gets the product class description- Returns:
- the description
-
setDescription
Sets the product class description- Parameters:
description- the description to set
-
getProcessingLevel
Gets the processing level- Returns:
- the processing level
-
setProcessingLevel
Sets the processing level- Parameters:
processingLevel- the processing level to set
-
getVisibility
Gets the product visibility to external users- Returns:
- the visibility
-
setVisibility
Gets the product visibility to external users- Parameters:
visibility- the visibility to set
-
getDefaultSlicingType
Gets the default slicing type to apply in orders- Returns:
- the default slicing type
-
setDefaultSlicingType
Sets the default slicing type to apply in orders- Parameters:
defaultSlicingType- the default slicing type to set
-
getDefaultSliceDuration
Gets the default slice duration (if the default slicing type is TIME_SLICE)- Returns:
- the default slice duration
-
setDefaultSliceDuration
Sets the default slice duration (if the default slicing type is TIME_SLICE)- Parameters:
defaultSliceDuration- the default slice duration to set
-
getProductFileTemplate
Gets the template for product file naming for this product class (if no template is set, returns the template of the associated mission)- Returns:
- the productFileTemplate
-
setProductFileTemplate
Sets the template for product file naming for this product class (will override template from Mission)- Parameters:
productFileTemplate- the productFileTemplate to set
-
getRequiredSelectionRules
Gets the set of required selection rules- Returns:
- the requiredSelectionRules
-
setRequiredSelectionRules
Gets the set of required selection rules- Parameters:
requiredSelectionRules- the requiredSelectionRules to set
-
getSupportedSelectionRules
Gets the set of supported selection rules- Returns:
- the supportedSelectionRules
-
setSupportedSelectionRules
Sets the set of supported selection rules- Parameters:
supportedSelectionRules- the supportedSelectionRules to set
-
getComponentClasses
Gets the product classes of component products- Returns:
- the componentClasses
-
setComponentClasses
Sets the product classes for component products- Parameters:
componentClasses- the componentClasses to set
-
getEnclosingClass
Gets the product classes of an enclosing product- Returns:
- the enclosingClass
-
setEnclosingClass
Sets the product classes for an enclosing product- Parameters:
enclosingClass- the enclosingClass to set
-
getProcessorClass
Gets the processor class capable of generating products of this class- Returns:
- the processorClass
-
setProcessorClass
Gets the processor class capable of generating products of this class- Parameters:
processorClass- the processorClass 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
-