@MappedSuperclass public abstract class SubsystemDescription extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Serializable |
descriptionData
Big object! see DescriptionType enum ...
|
| Modifier | Constructor and Description |
|---|---|
protected |
SubsystemDescription()
for bean convention: not public!
|
protected |
SubsystemDescription(String subsystemName,
String tag,
Serializable descriptionData)
used by subclasses
|
protected |
SubsystemDescription(SubsystemDescription other)
creates a copy of the SubsystemDescription that is not (yet) registered to the database.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addParameterDescriptions(Collection<ParameterDescription> descriptions) |
abstract void |
addParameterDescriptions(ParameterDescription... descriptions)
adds a list of parameter descriptions
|
boolean |
equals(Object o)
compares only the name and tag of subsystems not their content!
|
ParameterDescription |
fetch(PathObject path)
Looks for a parameter description that matches the given path
|
ParameterDescription |
fetch(String pathString)
Looks for a parameter description that matches the given path string
|
abstract Set<String> |
getCategorySet() |
Serializable |
getDescriptionData() |
long |
getEndTimestamp() |
abstract long |
getId()
the technical id: zero if the object is not yet registered in database
|
abstract Map<ParameterPath,? extends ParameterDescription> |
getParamDescriptionMap()
Detailed description of parameters that can be changed
|
long |
getPreviousDescriptionID()
get the id of the previous subsystemDescription with same Name and tag.
|
long |
getStartTimestamp() |
String |
getSubsystemName() |
String |
getTag() |
int |
hashCode() |
boolean |
isReadOnly()
tells if the modifying methods can be invoked on a newly created objects.
|
abstract void |
removeParameterDescriptions(ParameterDescription... descriptions)
removes a list of parameter descriptions
|
String |
toString() |
protected Serializable descriptionData
protected SubsystemDescription()
protected SubsystemDescription(String subsystemName, String tag, Serializable descriptionData)
subsystemName - should not be null or emptytag - may be null or emptydescriptionData - see DataFlavour documentationprotected SubsystemDescription(SubsystemDescription other)
other - public abstract long getId()
public abstract Map<ParameterPath,? extends ParameterDescription> getParamDescriptionMap()
public boolean isReadOnly()
public String getSubsystemName()
public String getTag()
public long getStartTimestamp()
public long getEndTimestamp()
public Serializable getDescriptionData()
public long getPreviousDescriptionID()
public boolean equals(Object o)
public ParameterDescription fetch(PathObject path)
path - public ParameterDescription fetch(String pathString)
pathString - public abstract void addParameterDescriptions(ParameterDescription... descriptions)
descriptions - ImmutableStateException - if called on an immutable objectpublic abstract void addParameterDescriptions(Collection<ParameterDescription> descriptions)
public abstract void removeParameterDescriptions(ParameterDescription... descriptions)
descriptions - ImmutableStateException - if called on an immutable objectCopyright © 2017 LSST. All rights reserved.