Package org.yamcs.mdb
Class TcProcessingContext
java.lang.Object
org.yamcs.mdb.ProcessingData
org.yamcs.mdb.TcProcessingContext
Keeps track of where we are when filling in the bits and bytes of a command
-
Field Summary
Fields inherited from class org.yamcs.mdb.ProcessingData
cmdArgs, cmdParams, cmdParamsCache, tmParams, tmParamsCache
-
Constructor Summary
ConstructorDescriptionTcProcessingContext
(MetaCommand metaCmd, ProcessorData pdata, Map<Parameter, Value> paramValues, BitBuffer bitbuf, int bitPosition) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgumentValue
(Argument a, Value argValue) getArgument
(String argName) getArgumentValue
(String argName) Look up an argument by name only, for cases in which we do not have the full argument definition, such as arguments used for defining the length of other variable-length arguments.returns the size in bytes of the encoded commandgetRawParameterValue
(Parameter param) int
getSize()
boolean
void
setSize
(int size) sets the size in bytes of the encoded commandMethods inherited from class org.yamcs.mdb.ProcessingData
addCmdParam, addTmParam, addTmParams, cloneForCommanding, cloneForTm, containsUpdate, createForCmdProcessing, createForTestCmd, createForTestTm, createForTmProcessing, createInitial, getCmdArgs, getCmdArgument, getCmdParams, getParameterInstance, getTmParams, resolveDynamicIntegerValue, toString
-
Field Details
-
generationTime
public long generationTime
-
-
Constructor Details
-
TcProcessingContext
public TcProcessingContext(MetaCommand metaCmd, ProcessorData pdata, Map<Parameter, Value> paramValues, BitBuffer bitbuf, int bitPosition)
-
-
Method Details
-
getArgumentValue
Look up an argument by name only, for cases in which we do not have the full argument definition, such as arguments used for defining the length of other variable-length arguments.- Parameters:
argName
- the name of the argument- Returns:
- the argument value, if found, or null
-
getRawParameterValue
-
getArgValues
-
hasArgumentValue
-
addArgumentValue
-
getArgument
-
getSize
public int getSize() -
setSize
public void setSize(int size) sets the size in bytes of the encoded command -
getCommand
returns the size in bytes of the encoded command
-