@Entity public class ASubsystemDescription extends SubsystemDescription implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected Map<ParameterPath,AParameterDescription> |
paramDescriptions
the set containing the parameter descriptions
|
descriptionData| Modifier | Constructor and Description |
|---|---|
protected |
ASubsystemDescription() |
|
ASubsystemDescription(String subsystemName,
String tag,
Serializable configurationData)
same parameters and constraints as the superclass constructor
|
|
ASubsystemDescription(SubsystemDescription other)
creates a new SubsystemDescription without information set up by the database (id, startDate)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameterDescriptions(AParameterDescription... descriptions)
adds a list of parameter descriptions
|
void |
addParameterDescriptions(Collection<ParameterDescription> descriptions) |
void |
addParameterDescriptions(ParameterDescription... descriptions)
add Parameter descriptions: this is a public facade to the "real" method
that adds only objects of type AParameterDescription
So if objects are not ot this actual type new objects of the needed type are created
(see AParameterDescription constructor documentation)
|
ASubsystemDescription |
clone()
clone: the contained set of parameter description is also cloned.
|
Set<String> |
getCategorySet() |
long |
getId()
the technical id: zero if the object is not yet registered in database
|
Map<ParameterPath,? extends ParameterDescription> |
getParamDescriptionMap()
Detailed description of parameters that can be changed
|
long |
getStartTimestamp() |
void |
removeParameterDescriptions(ParameterDescription... descriptions)
removes a list of parameter descriptions.
|
equals, fetch, fetch, getDescriptionData, getEndTimestamp, getPreviousDescriptionID, getSubsystemName, getTag, hashCode, isReadOnly, toStringprotected Map<ParameterPath,AParameterDescription> paramDescriptions
protected ASubsystemDescription()
public ASubsystemDescription(String subsystemName, String tag, Serializable configurationData)
subsystemName - tag - configurationData - public ASubsystemDescription(SubsystemDescription other)
other - public long getId()
SubsystemDescriptiongetId in class SubsystemDescriptionpublic Map<ParameterPath,? extends ParameterDescription> getParamDescriptionMap()
SubsystemDescriptiongetParamDescriptionMap in class SubsystemDescriptionpublic Set<String> getCategorySet()
getCategorySet in class SubsystemDescriptionpublic long getStartTimestamp()
getStartTimestamp in class SubsystemDescriptionpublic ASubsystemDescription clone()
public void addParameterDescriptions(ParameterDescription... descriptions)
addParameterDescriptions in class SubsystemDescriptiondescriptions - public void addParameterDescriptions(Collection<ParameterDescription> descriptions)
addParameterDescriptions in class SubsystemDescriptionpublic void addParameterDescriptions(AParameterDescription... descriptions)
descriptions - ImmutableStateException - if called on an immutable objectpublic void removeParameterDescriptions(ParameterDescription... descriptions)
works with any subclass of parameterDescription (see equals method code)
removeParameterDescriptions in class SubsystemDescriptiondescriptions - ImmutableStateException - if called on an immutable objectCopyright © 2016 LSST. All rights reserved.