|
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.UnitManagement.BasicUnitReconfigurer
In a common situation a primary unit is backed up by one or more identical redundant units. The BasicUnitReconfigurer can be used as a reconfiguration manager for this situation. It handles reconfigurations across a set of n identical units.
Copyright: see the Copyright Notice.
| Field Summary |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
BasicUnitReconfigurer(short numberOfConfig,
int numberOfList,
short defaultConfig)
Creates a new BasicUnitReconfigurer object. |
|
| Method Summary | |
void |
acquireFunctionalData()
Initiates the transaction(s) for the acquisition of functional data from the unit. |
void |
addReconfigurationListener(ReconfigurationListener l)
Register a listener to reconfiguration events |
void |
addUnit(Unit u)
Load an unit. |
boolean |
canReconfigure()
Calls to reconfigure should normally be preceded by calls to canReconfigure to verify that the reconfiguration is possible. |
void |
disableConfiguration(short n)
Disable reconfiguration to the n-th configuration. |
void |
disableReconfiguration()
Disable reconfigurations. |
void |
enableConfiguration(short n)
Enable reconfiguration to the n-th configuration. |
void |
enableReconfiguration()
Enable reconfigurations. |
AocsObject |
getAocsObject()
Return the reconfiguration manager as an instance of type AocsObject. |
short |
getConfiguration()
Returns the current configuration. |
short |
getConfigurationRank(short n)
Returns the rank of the n-th configuration. |
int |
getNumberOfInputs()
Return the number of inputs of the data sink object. |
int |
getNumberOfOutputs()
Return the number of outputs of the data source object. |
double |
getOutput(int i)
Return the value of the i-th output. |
RecoveryAction |
getReconfigurationErrorRecoveryAction()
Getter method for recovery action associated to failed reconfiguration request. |
int |
getReconfigurationOrder()
Returns the order of the reconfiguration group. |
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. |
boolean |
isAcquireTransactionFinished()
The method returns the completion status of the acquisition. |
boolean |
isConfigurationHealthy(short n)
Checks whether the configuration n is healthy. |
boolean |
isConfigured()
Checks a configuration of the reconfiguration manager helper and the list of units where backup units are stored. |
boolean |
isSendTransactionFinished()
The method returns the completion status of the send transaction. |
boolean |
isSynchronizeFunctionalFinished()
Checks whether the underlying transaction has been completed. |
void |
markConfiguration(short n,
boolean mark)
The method marks configuration n as healthy if mark is true and as unhealthy if mark is false. |
void |
rankConfiguration(short n,
short r)
Sets the rank of configuration n to rank. |
void |
reconfigure()
Perform a reconfiguration to the highest-ranking healthy configuration that has not been disabled. |
void |
refreshFunctionalIn()
Functional data are acquired at raw data level and placed in a hardware buffer internal to the unit. |
void |
refreshFunctionalOut()
Sent functional data to the external unit are taken from hardware buffer internal to the unit. |
void |
removeReconfigurationListener(ReconfigurationListener l)
Unregister a listener to reconfiguration events |
void |
removeUnit(Unit u)
Unload an unit. |
void |
reset()
Resets super object state and performs a local reset. |
void |
resetConfiguration()
Resets configuration of the super object and performs the local reset of the configuration. |
void |
restoreConfiguration(ConfigurationState s)
Restore the internal configuration of the reconfiguration manager to the value stored in s. |
void |
saveConfiguration(ConfigurationState s)
Save the internal configuration of the reconfiguration manager in the parameter s. |
void |
sendFunctionalData()
Initiates the transaction(s) to send the functional data to the unit. |
void |
setConfiguration(short n)
Set the current configuration to newConfiguration. |
void |
setFunctionalInConverter(AbstractControlChannel c)
Data conversion from raw data level to customized data level, and any other processing on the raw data (eg. bias correction), is done by a control channel object. |
void |
setFunctionalInLink(DataSink destLink)
Sets the functional input data link for the data converted from raw data level to customized data level. |
void |
setFunctionalInLink(DataSink destLink,
int i,
int j)
Sets the functional input data link for the data converted from raw data level to customized data level. |
void |
setFunctionalOutConverter(AbstractControlChannel c)
Data conversion from customized data level (in the source buffers) to raw data level (in the hardware buffer) is done by a control channel object. |
void |
setFunctionalOutLink(DataSource sourceLink)
Sets the functional output data link for the data at customized data level. |
void |
setFunctionalOutLink(DataSource sourceLink,
int i,
int j)
Sets the functional output data link for the data at customized data level. |
void |
setInput(double newValue,
int i)
Set the i-th input. |
void |
setReconfigurationErrorRecoveryAction(RecoveryAction r)
Setter method for recovery action associated to failed reconfiguration request. |
void |
synchronizeFunctional()
Initiates a synchronization operation for the functional data. |
void |
writeToTelemetry(TelemetryStream stream)
Causes the object to write its own state to the telemetry stream. |
| 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 |
| Constructor Detail |
public BasicUnitReconfigurer(short numberOfConfig,
int numberOfList,
short defaultConfig)
numberOfConfig - number of configuration in the configuration groupnumberOfList - maximum number of listeners for reconfiguration eventsdefaultConfig - default configuration| Method Detail |
public boolean isConfigured()
isConfigured in interface ConfigurableisConfigured in class AocsObjectpublic void reset()
reset in interface Resettablereset in class AocsObjectpublic void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class AocsObjectpublic void addUnit(Unit u)
u - an unit to loadpublic void removeUnit(Unit u)
u - an unit to unloadpublic short getConfiguration()
getConfiguration in interface Reconfigurablepublic void setConfiguration(short n)
setConfiguration in interface Reconfigurablen - the new configuration
public void markConfiguration(short n,
boolean mark)
markConfiguration in interface Reconfigurablen - a particular configurationmark - marks the configuration n as healthy if mark is true and
as unhealthy if mark is false
public void rankConfiguration(short n,
short r)
rankConfiguration in interface Reconfigurablen - a particular configurationr - a particular rankpublic void enableConfiguration(short n)
enableConfiguration in interface Reconfigurablen - particular configurationpublic void disableConfiguration(short n)
disableConfiguration in interface Reconfigurablen - particular configurationpublic void enableReconfiguration()
enableReconfiguration in interface Reconfigurablepublic void disableReconfiguration()
disableReconfiguration in interface Reconfigurablepublic void reconfigure()
reconfigure in interface Reconfigurablepublic boolean canReconfigure()
canReconfigure in interface Reconfigurablepublic boolean isConfigurationHealthy(short n)
isConfigurationHealthy in interface Reconfigurablen - particular configuration
public int getReconfigurationOrder()
getReconfigurationOrder in interface Reconfigurablepublic short getConfigurationRank(short n)
getConfigurationRank in interface Reconfigurablen - particular configuration
public void setReconfigurationErrorRecoveryAction(RecoveryAction r)
setReconfigurationErrorRecoveryAction in interface Reconfigurabler - particular recovery actionpublic RecoveryAction getReconfigurationErrorRecoveryAction()
getReconfigurationErrorRecoveryAction in interface Reconfigurablepublic void acquireFunctionalData()
acquireFunctionalData in interface UnitFunctionalpublic void sendFunctionalData()
sendFunctionalData in interface UnitFunctionalpublic boolean isAcquireTransactionFinished()
isAcquireTransactionFinished in interface UnitFunctionalpublic boolean isSendTransactionFinished()
isSendTransactionFinished in interface UnitFunctionalpublic void refreshFunctionalIn()
refreshFunctionalIn in interface UnitFunctionalpublic void refreshFunctionalOut()
refreshFunctionalOut in interface UnitFunctionalpublic void synchronizeFunctional()
synchronizeFunctional in interface UnitFunctionalpublic boolean isSynchronizeFunctionalFinished()
isSynchronizeFunctionalFinished in interface UnitFunctionalpublic void setFunctionalInLink(DataSink destLink)
setFunctionalInLink in interface UnitFunctional
public void setFunctionalInLink(DataSink destLink,
int i,
int j)
setFunctionalInLink in interface UnitFunctionalpublic void setFunctionalOutLink(DataSource sourceLink)
setFunctionalOutLink in interface UnitFunctional
public void setFunctionalOutLink(DataSource sourceLink,
int i,
int j)
setFunctionalOutLink in interface UnitFunctionalpublic void setFunctionalInConverter(AbstractControlChannel c)
setFunctionalInConverter in interface UnitFunctionalc - particular control channel objectpublic void setFunctionalOutConverter(AbstractControlChannel c)
setFunctionalOutConverter in interface UnitFunctionalc - particular control channel object
public void setInput(double newValue,
int i)
setInput in interface DataSinkpublic int getNumberOfInputs()
getNumberOfInputs in interface DataSinkpublic double getOutput(int i)
getOutput in interface DataSourcepublic int getNumberOfOutputs()
getNumberOfOutputs in interface DataSourcepublic AocsObject getAocsObject()
getAocsObject in interface Reconfigurablepublic void restoreConfiguration(ConfigurationState s)
In the framework, configuration state objects are stored in the System Manager.
restoreConfiguration in interface ReconfigurableConfigurationState,
SystemManagerpublic void saveConfiguration(ConfigurationState s)
In the framework, configuration state objects are stored in the System Manager.
saveConfiguration in interface ReconfigurableConfigurationState,
SystemManagerpublic void addReconfigurationListener(ReconfigurationListener l)
addReconfigurationListener in interface Reconfigurablepublic void removeReconfigurationListener(ReconfigurationListener l)
removeReconfigurationListener in interface Reconfigurablepublic 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 | ||||||||||