|
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
The AbstractControlChannel class is the interface through which any control channel is seen by its clients. Abstract control channel is a pure virtual class that exposes the functionalities that are common to all control channels, regardless of whether they are blocks or superblocks and regardless of the input and output order of the control channel. Control channel are always seen as instances of this class.
Copyright: see the Copyright Notice.
| Field Summary | |
protected AbstractControlChannel[] |
ccLink
i-th element contains channel linked to i-th input of this channel. |
protected static int |
channelPropagation
The propagation flag. |
protected AbstractControlChannel |
enclosingControlChannel
In the variable enclosingControlChannel is stored a reference to a enclosing control channel. |
protected int |
lastPropagatedTime
Time to which state was last propagated. |
protected int |
m
Specifies a number of outputs. |
protected int |
n
Specifies a number of inputs. |
protected static int |
noPropagation
The propagation flag. |
protected int |
propagationToken
The variable propagationToken is used for storing a token value. |
protected RecoveryAction |
recoveryAction
Recovery action used when propagateTime is called with illegal target time. |
protected static int |
totalPropagation
The propagation flag. |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
AbstractControlChannel()
Creates a new AbstractControlChannel object with default description variables n, m, and propagationToken and performs localReset() and localResetConfiguration(). |
|
| Method Summary | |
AbstractControlChannel |
getEnclosingControlChannel()
Getter method for the reference of an enclosing control channel. |
RecoveryAction |
getIllegalTimeRecoveryAction()
If method propagate is called with a target time that is lower than lastPropagatedTime, then a failure event is raised. |
int |
getLastPropagatedTime()
Returns the last propagated time. |
int |
getNumberOfInputs()
Returns the number of inputs in the control channel. |
int |
getNumberOfOutputs()
Returns the number of outputs in the control channel. |
abstract double |
getOutput(int j)
Returns the j-th output of the control channel as a double. |
int |
getPropagationToken()
Returns the propagation token. |
boolean |
isConfigured()
The abstract method from the interface Configurable. |
abstract void |
linkInput(AbstractControlChannel c,
int i,
int j)
Links j-th input to i-th output of control channel c. |
abstract void |
linkInput(DataSource d,
int i,
int j)
Links the j-th input to i-th output of the data source d. |
abstract void |
propagate(int t)
Propagates state and output equations from the current time to the target time t. |
void |
reset()
Resets super object state and performs a local reset. |
void |
reset(int flag,
int token)
Performs the reset operation of source blocks. |
void |
resetConfiguration()
Resets configuration of a super object and performs a local reset of the configuration. |
void |
setEnclosingControlChannel(AbstractControlChannel c)
Setter method for the reference of an enclosing control channel. |
void |
setIllegalTimeRecoveryAction(RecoveryAction r)
If method propagate is called with a target time that is lower than lastPropagatedTime, then a failure event is raised. |
abstract void |
setInput(double d,
int i)
Sets the new value of the i-th input. |
protected void |
setNumberOfInputs(int i)
Setter method for the number of inputs. |
protected void |
setNumberOfOutputs(int i)
Setter method for the number of outputs. |
abstract void |
setOnHold(boolean holdStatus)
Setter method that suspends or resumes the state propagation. |
void |
setPropagationToken(int newToken)
|
| 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 n
protected int m
protected int propagationToken
protected RecoveryAction recoveryAction
protected AbstractControlChannel enclosingControlChannel
protected static final int noPropagation
protected static final int channelPropagation
protected static final int totalPropagation
protected AbstractControlChannel[] ccLink
protected int lastPropagatedTime
| Constructor Detail |
public AbstractControlChannel()
| Method Detail |
public abstract void propagate(int t)
t - the target timepublic abstract void setOnHold(boolean holdStatus)
public abstract void linkInput(DataSource d,
int i,
int j)
d - the fixed data sourcei - the output of the fixed data sourcej - the input of the control channel
public abstract void linkInput(AbstractControlChannel c,
int i,
int j)
c - another control channeli - the output of another control channelj - the input of the control channelpublic void reset()
reset in interface Resettablereset in class AocsObject
public void reset(int flag,
int token)
flag - is the propagation flagtoken - is the propagation tokenpublic void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class AocsObjectpublic boolean isConfigured()
isConfigured in interface ConfigurableisConfigured in class AocsObjectpublic abstract double getOutput(int j)
getOutput in interface DataSourcej - determines a particular output of the control channel
public abstract void setInput(double d,
int i)
setInput in interface DataSinkd - the new valuei - the particular inputpublic int getLastPropagatedTime()
public int getNumberOfInputs()
getNumberOfInputs in interface DataSinkprotected void setNumberOfInputs(int i)
i - the number of inputspublic int getNumberOfOutputs()
getNumberOfOutputs in interface DataSourceprotected void setNumberOfOutputs(int i)
i - number of outputspublic RecoveryAction getIllegalTimeRecoveryAction()
public void setIllegalTimeRecoveryAction(RecoveryAction r)
r - the recovery actionpublic AbstractControlChannel getEnclosingControlChannel()
public void setEnclosingControlChannel(AbstractControlChannel c)
c - reference to an enclosing control channelpublic int getPropagationToken()
public void setPropagationToken(int newToken)
|
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 | ||||||||||