public class XTCEContainerContentEntry extends Object implements Comparable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
XTCEContainerContentEntry.FieldType
Enumeration type to describe the nature of an entry item on a container
or telecommand table and/or drawing.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone()
Make a copy of this entry by copying all the references included.
|
int |
compareTo(Object obj)
Comparison Operator
This function is used for sorting XTCEContainerContentEntry by their
start bit while safely ignoring those that do not have a start bit set.
|
XTCEArgument |
getArgument()
Retrieve the XTCEArgument that is represented by this entry, or a
null pointer if this entry is not based on an XTCEArgument.
|
List<XTCEContainerEntryValue> |
getConditionList()
Retrieve the list of include conditions that are applied to this entry
in the container model.
|
String |
getConditions()
Retrieve a string representation of the list of include conditions
that are applied to this entry in the container model.
|
XTCEContainerContentEntry.FieldType |
getEntryType()
Retrieve the type of entry that this object represents in the overall
container as the native enumeration type.
|
String |
getEntryTypeString()
Retrieve the type of entry that this object represents in the overall
container as a string.
|
XTCETMContainer |
getHoldingContainer()
Retrieve the XTCETMContainer that is represented by this entry, or a
null pointer if this entry is not a XTCETMContainer within another
XTCETMContainer.
|
String |
getInitialValue()
Retrieve the initial/default value for this entry in the container
stream, or an empty string if none is defined.
|
String |
getItemFullPath()
Retrieve the Fully Qualified Name of the item for which this entry is
associated, which can be an Argument, Parameter, or Container name.
|
String |
getName()
Retrieve the Name of the item for which this entry is associated, which
can be an Argument, Parameter, or Container name.
|
XTCEParameter |
getParameter()
Retrieve the XTCEParameter that is represented by this entry, or a
null pointer if this entry is not based on an XTCEParameter.
|
String |
getRawSizeInBits()
Retrieve the size in bits that this entry occupies in the container
stream, or an empty string if this entry is "information only", such as
another container or a telecommand entry.
|
String |
getRepeatParameterInfo()
Retrieve the repeating condition for this entry.
|
String |
getStartBit()
Retrieve the start bit that this entry occupies in the container
stream, or an empty string if this entry is "information only", such as
another container or a telecommand entry.
|
XTCETelecommand |
getTelecommand()
Retrieve the XTCETelecommand that is represented by this entry, or a
null pointer if this entry is not based on an XTCETelecommand.
|
XTCETCContainer |
getTelecommandContainer()
Retrieve the XTCETCContainer that is represented by this entry, or a
null pointer if this entry is not based on an XTCETCContainer.
|
XTCETMContainer |
getTelemetryContainer()
Retrieve the XTCETMContainer that is represented by this entry, or a
null pointer if this entry is not based on an XTCETMContainer.
|
XTCEContainerEntryValue |
getValue()
Retrieves the value that is set or restricted on this entry based on
ArgumentAssignment, RestrictionCriteria, or user chosen set values.
|
boolean |
isCurrentlyInUse()
Retrieve the "in use" attribute of this entry.
|
void |
setCondition(XTCEParameter parameter,
org.omg.space.xtce.ComparisonType compare)
Sets the include condition for this entry, which is always based on a
Parameter in a ComparisonType element from the XTCE data model.
|
void |
setConditionList(List<XTCEContainerEntryValue> allConditions,
boolean entryInUse)
Sets the include condition list based on it already being evaluated.
|
void |
setCurrentlyInUse(boolean useFlag)
Sets the "in use" attribute of this entry.
|
void |
setRepeatparameterInfo(String repeatString)
Sets the repeating condition for this entry.
|
void |
setStartBit(long startBitValue)
Sets the start bit for this entry in the container stream.
|
void |
setStartBit(String startBitValue)
Sets the start bit for this entry in the container stream.
|
void |
setValue(org.omg.space.xtce.ComparisonType compare)
Sets a value for this entry based on a RestrictionCriteria by passing
the ComparisonType from the XTCE data model.
|
void |
setValue(org.omg.space.xtce.MetaCommandType.BaseMetaCommand.ArgumentAssignmentList.ArgumentAssignment argAssign)
Sets a value for this entry based on a ArgumentAssignment by passing
the ArgumentAssignment from the XTCE data model.
|
void |
setValue(XTCEContainerEntryValue userValue)
Sets a value for this entry based on a XTCEContainerEntryValue from
this toolkit.
|
public final String getName()
public final String getItemFullPath()
public final XTCETMContainer getTelemetryContainer()
getEntryType()public final XTCETCContainer getTelecommandContainer()
getEntryType()public final XTCETMContainer getHoldingContainer()
getEntryType()public final XTCEParameter getParameter()
getEntryType()public final XTCEArgument getArgument()
getEntryType()public final XTCETelecommand getTelecommand()
getEntryType()public final String getEntryTypeString()
public final XTCEContainerContentEntry.FieldType getEntryType()
public final String getRawSizeInBits()
public final String getInitialValue()
public final String getStartBit()
public final void setStartBit(long startBitValue)
startBitValue - long containing the start bit position.public final void setStartBit(String startBitValue)
startBitValue - String containing the start bit position.public final XTCEContainerEntryValue getValue()
public final void setValue(org.omg.space.xtce.ComparisonType compare)
compare - ComparisonType element from the XTCE data model that
contains the value, the operator, and the comparison flag.public final void setValue(org.omg.space.xtce.MetaCommandType.BaseMetaCommand.ArgumentAssignmentList.ArgumentAssignment argAssign)
argAssign - ArgumentAssignment element from the XTCE data model
that contains the value, the operator, and the comparison flag.public final void setValue(XTCEContainerEntryValue userValue)
userValue - XTCEContainerEntryValue object that is typically
created when the user manually desires to set values on the container
entries.public final String getConditions()
public final List<XTCEContainerEntryValue> getConditionList()
public final void setConditionList(List<XTCEContainerEntryValue> allConditions, boolean entryInUse)
allConditions - List of XTCEContainerEntryValue conditions to
set the list.entryInUse - boolean indicating if this entry passes the include
conditions and should be set to be in use.isCurrentlyInUse()public final void setCondition(XTCEParameter parameter, org.omg.space.xtce.ComparisonType compare)
parameter - XTCEParameter that is being compared in the condition.compare - ComparisonType element that contains the operator, value,
and form of comparison.public final String getRepeatParameterInfo()
public final void setRepeatparameterInfo(String repeatString)
repeatString - String containing the repeating entry condition,
which must be in the form of [operator][parameter][form]
(e.g. ==PARM1{cal}).protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - in the event that this object cannot
be cloned.public final boolean isCurrentlyInUse()
public final void setCurrentlyInUse(boolean useFlag)
useFlag - boolean indicating that this entry is currently used in
the container definition for which it is included.public int compareTo(Object obj)
compareTo in interface Comparableobj - XTCEContainerContentEntry to compare to.ComparableCopyright © 2015–2019. All rights reserved.