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 PreparedCommandgetArgAssignment(Argument arg) List<org.yamcs.protobuf.Commanding.CommandAssignment>org.yamcs.protobuf.Commanding.CommandHistoryAttributegetAttribute(String name) List<org.yamcs.protobuf.Commanding.CommandHistoryAttribute>getAttributesAsParameters(XtceDb xtcedb) byte[]byte[]getBinaryAttribute(String attrname) getBooleanAttribute(String attrname) org.yamcs.protobuf.Commanding.CommandIdstatic org.yamcs.protobuf.Commanding.CommandIdlonggetId()String useful for logging.intgetStringAttribute(String attrname) byte[]getUUID()static booleanisProtectedColumn(String columnName) static booleanisReservedColumn(String columnName) voidsetArgAssignment(Map<Argument, ArgumentValue> argAssignment, Set<String> userAssignedArgumentNames) voidsetAttribute(String name, Object value) voidsetBinary(byte[] b) voidsetComment(String comment) voidvoidvoidsetUnprocessedBinary(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_SOURCE
- 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:
-
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() -
setSource
-
getSource
-
setComment
-
getComment
-
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() -
getUUID
-
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) -
getUsername
-
setUsername
-
getMetaCommand
-
setMetaCommand
-
setArgAssignment
public void setArgAssignment(Map<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
-