java.lang.Object
org.yamcs.commanding.PreparedCommand
Stores command information
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringColumns that can't be updated via cmdhist_realtime attributes. -
Constructor Summary
ConstructorsConstructorDescriptionPreparedCommand(byte[] binary) Used for testing the uplinkersPreparedCommand(org.yamcs.protobuf.Commanding.CommandId id) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(org.yamcs.protobuf.Commanding.CommandHistoryAttribute cha) voidaddStringAttribute(String name, String value) voidaddVerifierConfig(String name, org.yamcs.protobuf.Commanding.VerifierConfig verifierConfig) booleanvoiddisableCommandVerifiers(boolean b) booleanvoiddisablePostprocessing(boolean b) booleanvoiddisableTransmissionConstraints(boolean b) static PreparedCommandfromCommandHistoryEntry(org.yamcs.protobuf.Commanding.CommandHistoryEntry che) static PreparedCommandMap<org.yamcs.xtce.Argument,ArgumentValue> getArgAssignment(org.yamcs.xtce.Argument arg) List<org.yamcs.protobuf.Commanding.CommandAssignment>org.yamcs.protobuf.Commanding.CommandHistoryAttributegetAttribute(String name) List<org.yamcs.protobuf.Commanding.CommandHistoryAttribute>byte[]byte[]getBinaryAttribute(String attrname) getBooleanAttribute(String attrname) org.yamcs.protobuf.Commanding.CommandIdstatic org.yamcs.protobuf.Commanding.CommandIdlonggetId()String useful for logging.org.yamcs.xtce.MetaCommandintgetStringAttribute(String attrname) byte[]static booleanisProtectedColumn(String columnName) booleanisRaw()static booleanisReservedColumn(String columnName) voidsetArgAssignment(Map<org.yamcs.xtce.Argument, ArgumentValue> argAssignment, Set<String> userAssignedArgumentNames) voidsetAttribute(String name, Object value) voidsetBinary(byte[] b) voidsetComment(String comment) voidsetMetaCommand(org.yamcs.xtce.MetaCommand cmd) voidsetRaw(boolean raw) voidsetTcStream(Stream tcStream) Specify the target TC stream.voidsetUnprocessedBinary(byte[] b) voidsetUsername(String username) toString()toTuple()
-
Field Details
-
CNAME_GENTIME
- See Also:
-
CNAME_SEQNUM
- See Also:
-
CNAME_ORIGIN
- See Also:
-
CNAME_USERNAME
- See Also:
-
CNAME_UNPROCESSED_BINARY
- See Also:
-
CNAME_BINARY
- See Also:
-
CNAME_CMDNAME
- See Also:
-
CNAME_ASSIGNMENTS
- See Also:
-
CNAME_COMMENT
- See Also:
-
CNAME_NO_POSTPROCESSING
- See Also:
-
CNAME_NO_TRANSMISSION_CONSTRAINTS
- See Also:
-
CNAME_NO_VERIFIERS
- See Also:
-
CNAME_RAW
- See Also:
-
protectedColumns
Columns that can't be updated via cmdhist_realtime attributes.
-
-
Constructor Details
-
PreparedCommand
public PreparedCommand(org.yamcs.protobuf.Commanding.CommandId id) -
PreparedCommand
public PreparedCommand(byte[] binary) Used for testing the uplinkers
-
-
Method Details
-
getGenerationTime
public long getGenerationTime() -
setComment
-
getComment
-
setTcStream
Specify the target TC stream. If unset, a stream is automatically selected. -
getTcStream
-
getCmdName
-
getBooleanAttribute
-
getStringAttribute
-
getBinaryAttribute
-
getId
-
getLoggingId
String useful for logging. Contains command name and sequence number -
getOrigin
-
getSequenceNumber
public int getSequenceNumber() -
getCommandName
-
getCommandId
public org.yamcs.protobuf.Commanding.CommandId getCommandId() -
getCommandId
-
toTuple
-
getAssignments
-
getAttributes
-
getAttributesAsParameters
-
fromTuple
-
fromCommandHistoryEntry
public static PreparedCommand fromCommandHistoryEntry(org.yamcs.protobuf.Commanding.CommandHistoryEntry che) -
addStringAttribute
-
addAttribute
public void addAttribute(org.yamcs.protobuf.Commanding.CommandHistoryAttribute cha) -
getBinary
public byte[] getBinary() -
setBinary
public void setBinary(byte[] b) -
getUnprocessedBinary
public byte[] getUnprocessedBinary() -
setUnprocessedBinary
public void setUnprocessedBinary(byte[] b) -
isRaw
public boolean isRaw() -
setRaw
public void setRaw(boolean raw) -
getUsername
-
setUsername
-
getMetaCommand
public org.yamcs.xtce.MetaCommand getMetaCommand() -
setMetaCommand
public void setMetaCommand(org.yamcs.xtce.MetaCommand cmd) -
setArgAssignment
public void setArgAssignment(Map<org.yamcs.xtce.Argument, ArgumentValue> argAssignment, Set<String> userAssignedArgumentNames) -
getArgAssignment
-
getArgAssignment
-
disableTransmissionConstraints
public void disableTransmissionConstraints(boolean b) -
disableTransmissionConstraints
public boolean disableTransmissionConstraints()- Returns:
- true if the transmission constraints have to be disabled for this command
-
disableCommandVerifiers
public boolean disableCommandVerifiers()- Returns:
- true if the command verifiers have to be disabled for this command
-
disableCommandVerifiers
public void disableCommandVerifiers(boolean b) -
disablePostprocessing
public boolean disablePostprocessing()- Returns:
- true if no post-processing should occur on this command
-
disablePostprocessing
public void disablePostprocessing(boolean b) -
addVerifierConfig
public void addVerifierConfig(String name, org.yamcs.protobuf.Commanding.VerifierConfig verifierConfig) -
getVerifierOverride
- Returns:
- a list of command verifiers options overriding MDB settings.
-
getAttribute
-
setAttribute
-
toString
-
isReservedColumn
-
isProtectedColumn
-