|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectbackendCInterfase.BackendProcess
public abstract class BackendProcess
Abstract class for backend processes. Functions in this class will work their was through to a set of C code running before data get into PAMGUARD, some of which will hopefully be running on a DSP.
| Field Summary | |
|---|---|
private PamProcess |
parentProcess
|
| Constructor Summary | |
|---|---|
BackendProcess(PamProcess parentProcess)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getInputDataName()
|
PamDataBlock |
getOutputDataBlock()
Get the output data block for the process. |
java.lang.String |
getOutputDataName()
|
abstract java.lang.Object |
getParams()
Get params to be passed over to the JNI C code. |
java.lang.String |
getProcessName()
|
java.lang.String |
getProcessType()
|
boolean |
getReturnData()
See whether or not it's necessary to return data for this process back across the JNI. |
boolean |
getReturnData(int iOutputBlock)
See if the output data for a block needs to be returned Do this by looking at the observers of the datablock and if the observers are also sunning on the DSP and their data source is the same as this data output, then there is no need to return the data across the DSP. |
boolean |
getReturnData(PamDataBlock outputBlock)
See if the output data for a block needs to be returned Do this by looking at the observers of the datablock and if the observers are also sunning on the DSP and their data source is the same as this data output, then there is no need to return the data across the DSP. |
abstract void |
newData(int dataType,
int channelMap,
short[] data,
int dataLenBytes)
|
abstract boolean |
prepareProcess()
Will be called before start up so that the process can take any special actions needed to inhibit parts of the java operation. |
void |
setStatus(int status)
Receive status information back across the JNI from the backend process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PamProcess parentProcess
| Constructor Detail |
|---|
public BackendProcess(PamProcess parentProcess)
| Method Detail |
|---|
public abstract boolean prepareProcess()
public void setStatus(int status)
status - status flag.
public abstract void newData(int dataType,
int channelMap,
short[] data,
int dataLenBytes)
public java.lang.String getInputDataName()
public java.lang.String getOutputDataName()
public PamDataBlock getOutputDataBlock()
public java.lang.String getProcessName()
public java.lang.String getProcessType()
public boolean getReturnData()
The standard test for this is to examine all observers of the output datablock and 1. see if they are a pamProcess; 2. see if that process is running on the DSP. If so, then the data are not needed.
public boolean getReturnData(int iOutputBlock)
iOutputBlock - output data block index
public boolean getReturnData(PamDataBlock outputBlock)
outputBlock - output data block
public abstract java.lang.Object getParams()
Params should be in the form of a Java structure. Module specific C Code on the other side will unpack the Java parameters and turn it into an equivalent C structure. There must be a perfect match between the Java and the C or the program will crash
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||