Package org.yamcs.xtce
Class Parameter
java.lang.Object
org.yamcs.xtce.NameDescription
org.yamcs.xtce.Parameter
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SystemParameter
A Parameter is a description of something that can have a value; it is not the value itself.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.xtce.NameDescription
NameDescription.Builder<T extends NameDescription.Builder<T>>
-
Field Summary
Fields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this parameter is used/valid in a commanding context: that is if the data source isDataSource.COMMAND
orDataSource.COMMAND_HISTORY
boolean
void
setDataSource
(DataSource dataSource) void
setInitialValue
(Object initialValue) Sets the initial value for the parameter (if any).void
void
setPersistent
(boolean persistent) If set, the parameter's value will be preserved during Yamcs restartsvoid
toString()
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, qualifiedName, setAliasSet, setAncillaryData, setLongDescription, setName, setQualifiedName, setShortDescription
-
Constructor Details
-
Parameter
-
-
Method Details
-
getDataSource
-
setDataSource
-
setParameterType
-
getParameterType
-
getRecordingGroup
-
setRecordingGroup
-
getInitialValue
- Returns:
- the initial value of the parameter (if any)
-
setInitialValue
Sets the initial value for the parameter (if any). The value has to be compatible with its type.- Parameters:
initialValue
-
-
isCommandParameter
public boolean isCommandParameter()Return true if this parameter is used/valid in a commanding context: that is if the data source isDataSource.COMMAND
orDataSource.COMMAND_HISTORY
-
toString
-
isPersistent
public boolean isPersistent() -
setPersistent
public void setPersistent(boolean persistent) If set, the parameter's value will be preserved during Yamcs restarts
-