|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.collection.correlation.BaseCorrelatorDataImpl
public class BaseCorrelatorDataImpl
This is the base implementation of a correlator. Application writers should sub-class this class, and may override the methods of this class.
| Constructor Summary | |
|---|---|
BaseCorrelatorDataImpl()
|
|
| Method Summary | |
|---|---|
long |
convertBytesToInteger(byte[] buffer,
int offset)
Converts the offset...offset + 4 bytes of the given buffer into an unsigned integer. |
void |
convertIntegerToBytes(long n,
byte[] buffer,
int offset)
Converts an unsigned integer into 4 bytes, and saves them in the buffer. |
IApplication |
getApplication()
Returns the application associated with this correlator where application-instance-specific data can be retrieved. |
long |
getApplicationCounter()
Returns applicationCounter. |
long |
getOperationCounter()
Returns operationCounter. |
void |
invalidate()
Invalidates this correlator by resetting it to an initialized correlator. |
int |
readBinary(byte[] buffer,
int offset,
int length)
Converts an array of bytes into a correlator. |
int |
readXML(java.lang.StringBuffer data,
int offset,
int length)
Converts an XML fragment into a correlator. |
void |
setApplicationCounter(long n)
Sets applicationCounter to n. |
void |
setOperationCounter(long n)
Sets operationCounter to n. |
int |
writeBinary(byte[] buffer,
int offset,
int length)
Converts this correlator into an array of bytes, and saves them in the buffer. |
java.lang.StringBuffer |
writeXML(java.lang.StringBuffer data)
Converts this correlator into an XML fragment, and saves them in the string buffer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseCorrelatorDataImpl()
| Method Detail |
|---|
public void invalidate()
public void setApplicationCounter(long n)
applicationCounter to n.
n - the new value of applicationCounterpublic long getApplicationCounter()
applicationCounter.
applicationCounterpublic void setOperationCounter(long n)
operationCounter to n.
n - the new value of operationCounterpublic long getOperationCounter()
operationCounter.
operationCounter.
public long convertBytesToInteger(byte[] buffer,
int offset)
offset...offset + 4 bytes of the given buffer into an unsigned integer.
buffer - the buffer containing the integeroffset - the offset inside the buffer where the most significant byte of the integer is read
offset..offset + 4 bytes.
public void convertIntegerToBytes(long n,
byte[] buffer,
int offset)
n - an unsigned integer to be convertedbuffer - the buffer to stored the integeroffset - the offset inside the buffer where the most significant byte of the integer is written
public int readBinary(byte[] buffer,
int offset,
int length)
throws InsufficientBufferLengthException
ICorrelatorData
readBinary in interface ICorrelatorDatabuffer - the data buffer from which the correlation information is to be readoffset - the starting position to read the correltion datalength - the length (in bytes) of the entire buffer for the correlation data
InsufficientBufferLengthException - If the buffer is not long enough for holding the correlation dataICorrelatorData.readBinary(byte[], int, int)
public int writeBinary(byte[] buffer,
int offset,
int length)
throws InsufficientBufferLengthException
ICorrelatorData
writeBinary in interface ICorrelatorDatabuffer - the data buffer to which the correlator bytes are to be writtenoffset - the starting position to write the correltion datalength - the length (in bytes) of the buffer for the correlation data
InsufficientBufferLengthException - If the buffer is not long enough for holding the correlation dataICorrelatorData.writeBinary(byte[], int, int)
public int readXML(java.lang.StringBuffer data,
int offset,
int length)
ICorrelatorData
readXML in interface ICorrelatorDatadata - the data buffer from which the correlation information is to be readoffset - the starting position to read the correltion datalength - the length (in characters) of the entire buffer for the correlation data
ICorrelatorData.readXML(StringBuffer, int, int)public java.lang.StringBuffer writeXML(java.lang.StringBuffer data)
ICorrelatorData
writeXML in interface ICorrelatorDatadata - the data buffer to which the correlator information is to be written
ICorrelatorData.writeXML(StringBuffer)public IApplication getApplication()
ICorrelatorData
getApplication in interface ICorrelatorDataICorrelatorData.getApplication()
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||