Package org.yamcs.commanding
Class PreparedCommand
java.lang.Object
org.yamcs.commanding.PreparedCommand
Stores command information
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Columns that can't be updated via cmdhist_realtime attributes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addStringAttribute
(String name, String value) void
addVerifierConfig
(String name, Commanding.VerifierConfig verifierConfig) boolean
void
disableCommandVerifiers
(boolean b) boolean
void
disablePostprocessing
(boolean b) boolean
void
disableTransmissionConstraints
(boolean b) static PreparedCommand
static PreparedCommand
getArgAssignment
(Argument arg) getAttribute
(String name) byte[]
byte[]
getBinaryAttribute
(String attrname) getBooleanAttribute
(String attrname) static Commanding.CommandId
long
getId()
String useful for logging.int
getStringAttribute
(String attrname) byte[]
static boolean
isProtectedColumn
(String columnName) boolean
isRaw()
static boolean
isReservedColumn
(String columnName) void
setArgAssignment
(Map<Argument, ArgumentValue> argAssignment, Set<String> userAssignedArgumentNames) void
setAttribute
(String name, Object value) void
setBinary
(byte[] b) void
setComment
(String comment) void
void
setRaw
(boolean raw) void
setTcStream
(Stream tcStream) Specify the target TC stream.void
setUnprocessedBinary
(byte[] b) void
setUsername
(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
-
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
-
getCommandId
-
toTuple
-
getAssignments
-
getAttributes
-
getAttributesAsParameters
-
fromTuple
-
fromCommandHistoryEntry
-
addStringAttribute
-
addAttribute
-
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
-
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
-
getVerifierOverride
- Returns:
- a list of command verifiers options overriding MDB settings.
-
getAttribute
-
setAttribute
-
toString
-
isReservedColumn
-
isProtectedColumn
-