@MappedSuperclass public abstract class SubsystemDescription extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected DataFlavour |
dataFlavour
TODO: only object_tree in future releases (other formats can be provided to constructors)
|
protected Serializable |
descriptionData
Big object! see DescriptionType enum ...
|
| Modifier | Constructor and Description |
|---|---|
protected |
SubsystemDescription(String subsystemName,
String tag,
Serializable descriptionData,
DataFlavour dataFlavour)
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
|
void |
generateConfigProperties(Map<String,PrintWriter> printWriters,
int levelMax)
Deprecated.
subsystem description should not have to handle properties
|
abstract Set<String> |
getCategorySet() |
DataFlavour |
getDataFlavour() |
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 DataFlavour dataFlavour
protected SubsystemDescription(String subsystemName, String tag, Serializable descriptionData, DataFlavour dataFlavour)
subsystemName - should not be null or emptytag - may be null or emptydescriptionData - see DataFlavour documentationdataFlavour - which type of Configuration dataprotected 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 DataFlavour getDataFlavour()
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 objectpublic void generateConfigProperties(Map<String,PrintWriter> printWriters, int levelMax)
printWriters - levelMax - Copyright © 2015 LSST. All rights reserved.