|
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
ControlChannelBlock is an abstract class that acts as base class for all concrete control blocks. It provides concrete implementations of methods and data structure to manage block operations. This class provides data structures to buffer the input and the output signals and operations to reset them. Such data operations are common to all control channel blocks. This class is abstract because it does not provide any implementation for the method propagate.
Copyright: see the Copyright Notice.
| Field Summary | |
protected int[] |
dataSourceOutputPosition
Array index represents particular inputs of the control channel block, the data stored in the array represent an output of a DataSource connected to the inputs of a control channel block. |
protected boolean |
initFlag
The value is true when the block is reset. |
protected double[] |
input
Working input buffer. |
protected DataSource[] |
inputLink
Array of links for input from external signals. |
protected boolean |
onHold
The value is true if block is currently on hold. |
protected double[] |
output
Working output buffer. |
protected double[] |
outputBuffer
Array holding last set of computed outputs. |
protected int |
p
Specifies a number of states. |
protected double[] |
state
State buffer. |
protected int |
validityTime
Validity time for output buffer. |
| 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 | |
ControlChannelBlock()
Creates a new ControlChannelBlock object with a default description variable p. |
|
| Method Summary | |
int |
getNumberOfStates()
Returns a size of the state buffer. |
double |
getOutput(int j)
Returns the j-th output of the control channel as a double. |
double |
getState(int i)
Getter method for the i-th component of the block's internal state. |
int |
getValidityTime()
Returns the validity time. |
boolean |
isConfigured()
Checks the configuration. |
boolean |
isOnHold()
Checks whether the state propagation is suspended. |
void |
linkInput(AbstractControlChannel c,
int i,
int j)
Links j-th input to i-th output of control channel c. |
void |
linkInput(DataSource d,
int i,
int j)
Links the j-th input to i-th output of the data source d. |
void |
propagate(int t)
Propagates state and output equations from the current time to the target time t. |
protected abstract void |
propagationAlgorithm(int t)
A particular propagation algorithm. |
void |
reset()
Resets super object state and performs the local reset. |
void |
resetConfiguration()
Resets configuration of the super object and performs the local reset of the configuration. |
protected void |
resetMemory()
Performs the local reset and the local reset of the configuation. |
void |
setInput(double d,
int i)
Sets the new value of the i-th input. |
protected void |
setInputSize(int i)
Allocates memory for the input buffers. |
void |
setOnHold(boolean holdStatus)
Setter method that suspends or resumes the state propagation. |
protected void |
setOutputSize(int j)
Allocates memory for the output buffers. |
void |
setState(int i,
double value)
Setter method for the i-th component of the block's internal state. |
protected void |
setStateSize(int k)
Allocates memory for the state buffers. |
| 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 int p
protected boolean onHold
protected boolean initFlag
protected DataSource[] inputLink
protected int[] dataSourceOutputPosition
protected double[] outputBuffer
protected int validityTime
protected double[] input
protected double[] output
protected double[] state
| Constructor Detail |
public ControlChannelBlock()
| Method Detail |
protected void setInputSize(int i)
i - an order of the inputprotected void setOutputSize(int j)
j - an order of the outputprotected void setStateSize(int k)
k - an order of the stateprotected void resetMemory()
protected abstract void propagationAlgorithm(int t)
t - the target timepublic void propagate(int t)
propagate in class AbstractControlChannelt - the target time
public void linkInput(DataSource d,
int i,
int j)
linkInput in class AbstractControlChanneld - the fixed data sourcei - the output of the fixed data sourcej - the input of the control channel
public void linkInput(AbstractControlChannel c,
int i,
int j)
linkInput in class AbstractControlChannelc - another control channeli - the output of another control channelj - the input of the control channelpublic void reset()
reset in interface Resettablereset in class AbstractControlChannelpublic void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class AbstractControlChannelpublic boolean isConfigured()
isConfigured in interface ConfigurableisConfigured in class AbstractControlChannelpublic void setOnHold(boolean holdStatus)
setOnHold in class AbstractControlChannelpublic boolean isOnHold()
public int getValidityTime()
public double getOutput(int j)
getOutput in interface DataSourcegetOutput in class AbstractControlChannelj - determines a particular output of the control channel
public void setInput(double d,
int i)
setInput in interface DataSinksetInput in class AbstractControlChanneld - the new valuei - the particular inputpublic int getNumberOfStates()
public double getState(int i)
i - the particular state
public void setState(int i,
double value)
i - the particular statevalue - the required value
|
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 | ||||||||||