Package de.dlr.proseo.model
Class ProcessorClass
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.ProcessorClass
A type of processor capable of generating products of a specific set of ProductClasses. There can be only one ProcessorClass
capable of generating products of any one ProductClass.
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest equality of persistent objects based on their unique ID.Gets the mission this processor class belongs toGets the processor (class) nameGets the processor versions for this classGets the product classes processors of this class can generateinthashCode()voidsetMission(Mission mission) Sets the mission this processor class belongs tovoidsetProcessorName(String processorName) Sets the processor (class) namevoidsetProcessors(Set<Processor> processors) Sets the processor versions for this classvoidsetProductClasses(Set<ProductClass> productClasses) Sets the product classes processors of this class can generatetoString()Methods inherited from class de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Constructor Details
-
ProcessorClass
public ProcessorClass()
-
-
Method Details
-
getMission
Gets the mission this processor class belongs to- Returns:
- the mission
-
setMission
Sets the mission this processor class belongs to- Parameters:
mission- the mission to set
-
getProcessorName
Gets the processor (class) name- Returns:
- the processorName
-
setProcessorName
Sets the processor (class) name- Parameters:
processorName- the processorName to set
-
getProductClasses
Gets the product classes processors of this class can generate- Returns:
- the productClasses
-
setProductClasses
Sets the product classes processors of this class can generate- Parameters:
productClasses- the productClasses to set
-
getProcessors
Gets the processor versions for this class- Returns:
- the processors
-
setProcessors
Sets the processor versions for this class- Parameters:
processors- the processors 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
-