|
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.Unit
The abstract class Unit is an abstract unit model for basic and smart units. The units are passive components, namely incapable of initiating data exchanges with the computer. All data transactions with a unit occur in response to a command from the computer. Change Record:
isConfigured.
Done by A. Pasetti on 31.03.03Copyright: see the Copyright Notice.
| Field Summary | |
protected int[] |
fcDestInput
|
protected DataSink[] |
fcDestLink
|
protected AocsData |
fcHwInpBuf
|
protected AocsData |
fcHwOutBuf
|
protected int[] |
hkDestInput
|
protected DataSink[] |
hkDestLink
|
protected AocsData |
hkHwInpBuf
|
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
Unit()
Creates a new Unit object. |
|
| Method Summary | |
int |
getNumberOfInputs()
Return the number of the unit inputs. |
int |
getNumberOfOutputs()
Return the number of the unit outputs. |
double |
getOutput(int i)
Return the value of the i-th unit output. |
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. |
short |
getType()
Return the unit type. |
boolean |
isConfigured()
Checks a configuration of the unit model, housekeeping and functionals input and output buffers and convertors. |
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 |
refreshHousekeepingIn()
Housekeeping data are acquired at raw data level and placed in a hardware buffer internal to the unit. |
void |
reset()
Reset super object state and performs a local reset. |
void |
resetConfiguration()
Reset configuration of the super object and performs the local reset of the configuration. |
void |
setFunctionalInConverter(AbstractControlChannel c)
Initialization method to set 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)
Initialization method to set 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)
Initialization method to set the functional input data link for the data converted from raw data level to customized data level. |
void |
setFunctionalOutConverter(AbstractControlChannel c)
Initialization method to set 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)
Initialization method to set the functional output data link for the data at AOCS data level. |
void |
setFunctionalOutLink(DataSource sourceLink,
int i,
int j)
Initialization method to set the functional output data link for the data at customized data level. |
void |
setHkBufferSize(int nHkInpBuf)
Initialization method to set a size of the internal buffer for housekeeping data. |
void |
setHousekeepingConverter(AbstractControlChannel c)
Initialization method to set the 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 |
setHousekeepingLink(DataSink hkLink)
Initialization method to set the housekeeping data link for the housekeeping data. |
void |
setHousekeepingLink(DataSink hkLink,
int i,
int j)
Initialization method to set the housekeeping data link for the housekeeping data. |
void |
setInBufferSize(int nFcInpBuf)
Initialization method to set a size of the internal buffer for functional input data. |
void |
setInput(double newValue,
int i)
Set the i-th unit input. |
void |
setOutBufferSize(int nFcOutBuf)
Initialization method to set a size of the internal buffer for functional output 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 |
| Methods inherited from interface RtjAocsFramework.UnitManagement.UnitFunctional |
acquireFunctionalData, isAcquireTransactionFinished, isSendTransactionFinished, isSynchronizeFunctionalFinished, sendFunctionalData, synchronizeFunctional |
| Methods inherited from interface RtjAocsFramework.UnitManagement.UnitHousekeeping |
acquireHousekeepingData, getSelfTestResults, initialize, isHousekeepingTransactionFinished, isInitialized, isSelfTestFinished, isSwitchedOn, isSynchronizeHousekeepingFinished, performSelfTest, resetUnit, switchOff, switchOn, synchronizeHousekeeping |
| Field Detail |
protected AocsData fcHwInpBuf
protected AocsData fcHwOutBuf
protected AocsData hkHwInpBuf
protected DataSink[] fcDestLink
protected DataSink[] hkDestLink
protected int[] fcDestInput
protected int[] hkDestInput
| Constructor Detail |
public Unit()
| Method Detail |
public boolean isConfigured()
isConfigured in interface ConfigurableisConfigured in class AocsObjectpublic short getType()
public void reset()
reset in interface Resettablereset in class AocsObjectpublic void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class AocsObjectpublic void setInBufferSize(int nFcInpBuf)
nFcInpBuf - represents a size of the funct. hw input bufferpublic void setOutBufferSize(int nFcOutBuf)
nFcOutBuf - represents a size of the funct. hw output bufferpublic void setHkBufferSize(int nHkInpBuf)
nHkInpBuf - represents a size of the housekeeping. hw bufferpublic 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 setHousekeepingLink(DataSink hkLink)
setHousekeepingLink in interface UnitHousekeeping
public void setHousekeepingLink(DataSink hkLink,
int i,
int j)
setHousekeepingLink in interface UnitHousekeepingpublic void setFunctionalInConverter(AbstractControlChannel c)
setFunctionalInConverter in interface UnitFunctionalc - particular control channel objectpublic void setFunctionalOutConverter(AbstractControlChannel c)
setFunctionalOutConverter in interface UnitFunctionalc - particular control channel objectpublic void setHousekeepingConverter(AbstractControlChannel c)
setHousekeepingConverter in interface UnitHousekeepingc - particular control channel objectpublic void refreshFunctionalIn()
refreshFunctionalIn in interface UnitFunctionalpublic void refreshFunctionalOut()
refreshFunctionalOut in interface UnitFunctionalpublic void refreshHousekeepingIn()
refreshHousekeepingIn in interface UnitHousekeepingpublic int getNumberOfOutputs()
getNumberOfOutputs in interface DataSourcepublic double getOutput(int i)
getOutput in interface DataSourcei - the output of the unitpublic int getNumberOfInputs()
getNumberOfInputs in interface DataSink
public void setInput(double newValue,
int i)
setInput in interface DataSinknewValue - the new valuei - the input of the unitpublic 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 | ||||||||||