|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--RtjAocsFramework.BasicObjects.RootObject
|
+--RtjAocsFramework.BasicObjects.AocsObject
|
+--RtjAocsFramework.SequentialDataProcessing.AbstractControlChannel
|
+--RtjAocsFramework.SequentialDataProcessing.ControlChannelBlock
|
+--RtjAocsFramework.SequentialDataProcessing.MatlabBlock
Control block acting as a container for an autocode procedure generated by Matlab.
Copyright: see the Copyright Notice.
| Field Summary | |
protected RecoveryAction |
matlabErrorRecoveryAction
Recovery action used when the sampling period is incorrect. |
| Fields inherited from class RtjAocsFramework.SequentialDataProcessing.ControlChannelBlock |
dataSourceOutputPosition, initFlag, input, inputLink, onHold, output, outputBuffer, p, state, validityTime |
| Fields inherited from class RtjAocsFramework.SequentialDataProcessing.AbstractControlChannel |
ccLink, channelPropagation, enclosingControlChannel, lastPropagatedTime, m, n, noPropagation, propagationToken, recoveryAction, totalPropagation |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
MatlabBlock(int i,
int j,
int sT)
Creates a new MatlabBlock object with the specified number of inputs, number of outputs and sampling time. |
|
| Method Summary | |
protected abstract String |
ErrorStatus()
Checks if an error status has been set by the generated code or by the developer. |
void |
finalizeMatlabBlock()
Releases resourses when the matlab block is no longer referred. |
RecoveryAction |
getMatlabErrorRecoveryAction()
If method propagate is called with a sampling time that is different from the sampling time defined in a matlab block, then a failure event is raised. |
int |
getTelemetryImageLength()
Return the length in bits of the telemetry image that would be written by the object in response to a call to method writeToTelemetry. |
protected abstract void |
init(boolean flag)
Calls model's generated termination code. |
protected abstract void |
internalLoadInput()
Updates the input. |
protected abstract void |
internalUpdateOutput()
Updates the output. |
protected void |
propagationAlgorithm(int t)
The propagation algorithm of the matlab block. |
void |
reset()
Resets the super object state. |
void |
resetConfiguration()
Resets configuration of the super object and performs the local reset of the configuration. |
void |
setMatlabErrorRecoveryAction(RecoveryAction r)
If method propagate is called with a sampling time that is different from the sampling time defined in a matlab block, then a failure event is raised. |
protected abstract void |
step()
Calls model's generated step function. |
protected abstract void |
term()
Calls model's generated termination code. |
void |
writeToTelemetry(TelemetryStream stream)
Causes the object to write its own state to the telemetry stream. |
| Methods inherited from class RtjAocsFramework.SequentialDataProcessing.ControlChannelBlock |
getNumberOfStates, getOutput, getState, getValidityTime, isConfigured, isOnHold, linkInput, linkInput, propagate, resetMemory, setInput, setInputSize, setOnHold, setOutputSize, setState, setStateSize |
| Methods inherited from class RtjAocsFramework.SequentialDataProcessing.AbstractControlChannel |
getEnclosingControlChannel, getIllegalTimeRecoveryAction, getLastPropagatedTime, getNumberOfInputs, getNumberOfOutputs, getPropagationToken, reset, setEnclosingControlChannel, setIllegalTimeRecoveryAction, setNumberOfInputs, setNumberOfOutputs, setPropagationToken |
| Methods inherited from class RtjAocsFramework.BasicObjects.RootObject |
getClassId, getInstanceId, setClassId |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected RecoveryAction matlabErrorRecoveryAction
| Constructor Detail |
public MatlabBlock(int i,
int j,
int sT)
i - the number of inputsj - the number of outputssT - the sampling time of the matlab model| Method Detail |
public void finalizeMatlabBlock()
protected void propagationAlgorithm(int t)
propagationAlgorithm in class ControlChannelBlockt - the target timeprotected abstract void init(boolean flag)
flag - if the flag is true the function initializes data structures private to the model.
If the flag is false the model resets the model's states.protected abstract void step()
protected abstract void term()
protected abstract void internalLoadInput()
protected abstract void internalUpdateOutput()
protected abstract String ErrorStatus()
public void reset()
reset in interface Resettablereset in class ControlChannelBlockpublic void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class ControlChannelBlockpublic RecoveryAction getMatlabErrorRecoveryAction()
public void setMatlabErrorRecoveryAction(RecoveryAction r)
r - the recovery actionpublic int getTelemetryImageLength()
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObjectpublic void writeToTelemetry(TelemetryStream stream)
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectstream - the telemetry stream
|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||