|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataElement
This interface is implemented by classes that wish to provide a data element to the comparator. An element can either be a list of one or more elements or a scalar. When viewed as a list, a scalar element has value only at the 0th list position; a list element of n elements has values at the 1st through nth list positions.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
Nested Class Summary | |
---|---|
static class |
IDataElement.Type
The types of a data element. |
Method Summary | |
---|---|
boolean |
forceBooleanValue()
This element represented as a boolean when evaluated in a scalar context. |
boolean |
forceBooleanValue(long pos)
The element at position pos represented as a boolean. |
long |
forceIntegralValue()
This element represented as an integer when evaluated in a scalar context. |
long |
forceIntegralValue(long pos)
The element at position pos represented as an integer. |
IDataElement |
forceListValue(long pos)
This element at position pos represented as a list. |
java.lang.String |
forceLiteralValue()
This element represented as a string literal when evaluated in a scalar context. |
java.lang.String |
forceLiteralValue(long pos)
The element at position pos represented as a string literal. |
double |
forceRealValue()
This element represented as a real when evaluated in a scalar context. |
double |
forceRealValue(long pos)
The element at position pos represented as a real. |
boolean[] |
forceSlice(boolean[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as a boolean list. |
double[] |
forceSlice(double[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as a real list. |
IDataElement[] |
forceSlice(IDataElement[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as a list of elements. |
long[] |
forceSlice(long[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as an integral list. |
java.lang.String[] |
forceSlice(java.lang.String[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as a string literal list. |
boolean |
getBooleanValue()
This element represented as a boolean when evaluated in a scalar context. |
boolean |
getBooleanValue(long pos)
The element at position pos represented as a boolean. |
long |
getIntegralValue()
This element represented as an integer when evaluated in a scalar context. |
long |
getIntegralValue(long pos)
The element at position pos represented as an integer. |
long |
getLength()
The number of elements in this element, or 0 if this element is scalar. |
IDataElement |
getListValue(long pos)
This element at position pos represented as a list. |
java.lang.String |
getLiteralValue()
This element represented as a string literal when evaluated in a scalar context. |
java.lang.String |
getLiteralValue(long pos)
The element at position pos represented as a string literal. |
double |
getRealValue()
This element represented as a real when evaluated in a scalar context. |
double |
getRealValue(long pos)
The element at position pos represented as a real. |
boolean[] |
getSlice(boolean[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as a boolean list. |
double[] |
getSlice(double[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as a real list. |
IDataElement[] |
getSlice(IDataElement[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as a list of elements. |
long[] |
getSlice(long[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as an integral list. |
java.lang.String[] |
getSlice(java.lang.String[] slice,
long start,
int length,
long stride)
A dense, homogeneous subset of this element represented as a string literal list. |
IDataElement.Type |
getType()
The type of this element. |
IDataElement.Type |
getType(long pos)
The type of the element at position pos. |
boolean |
isAvailable()
Whether the element data can currently be worked with. |
boolean |
isScalar()
Whether this element is scalar. |
void |
memoryLock()
Forces the element to guarantee that the element data can currently be worked with. |
void |
memoryUnlock()
Releases the element from the guarantee that the element data can currently be worked with. |
java.lang.String |
toString(boolean limit,
int size)
Renders the DataElement as an ordered tuple. |
java.lang.String |
toString(boolean limit,
int size,
long pos)
Renders the value of a specified position. |
java.lang.String |
toString(boolean limit,
int size,
long pos,
java.text.NumberFormat format)
Renders the value of a specified position with a particular format. |
java.lang.String |
toString(boolean limit,
int size,
java.text.NumberFormat format)
Renders the DataElement as an ordered tuple with a particular format. |
java.lang.String |
toString(long pos)
Renders the value of a specified position. |
java.lang.String |
toString(long pos,
java.text.NumberFormat format)
Renders the value of a specified position with a particular format. |
java.lang.String |
toString(java.text.NumberFormat format)
Renders the value with a particular format. |
Methods inherited from interface java.awt.datatransfer.Transferable |
---|
getTransferData, getTransferDataFlavors, isDataFlavorSupported |
Method Detail |
---|
boolean forceBooleanValue()
boolean forceBooleanValue(long pos)
pos
- Positionlong forceIntegralValue()
long forceIntegralValue(long pos)
pos
- PositionIDataElement forceListValue(long pos)
pos
- Positionjava.lang.String forceLiteralValue()
java.lang.String forceLiteralValue(long pos)
pos
- Positiondouble forceRealValue()
double forceRealValue(long pos)
pos
- Positionboolean[] forceSlice(boolean[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pullIDataElement[] forceSlice(IDataElement[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pulldouble[] forceSlice(double[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pulllong[] forceSlice(long[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pulljava.lang.String[] forceSlice(java.lang.String[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pullboolean getBooleanValue()
boolean getBooleanValue(long pos)
pos
- Positionlong getIntegralValue()
long getIntegralValue(long pos)
pos
- Positionlong getLength()
IDataElement getListValue(long pos)
pos
- Positionjava.lang.String getLiteralValue()
java.lang.String getLiteralValue(long pos)
pos
- Positiondouble getRealValue()
double getRealValue(long pos)
pos
- Positionboolean[] getSlice(boolean[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pullIDataElement[] getSlice(IDataElement[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pulldouble[] getSlice(double[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pulllong[] getSlice(long[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pulljava.lang.String[] getSlice(java.lang.String[] slice, long start, int length, long stride)
slice
- Suggested container for the slicestart
- First position to pulllength
- Number of positions to pullstride
- Interval between positions to pullIDataElement.Type getType()
IDataElement.Type getType(long pos)
pos
- Positionboolean isAvailable()
boolean isScalar()
void memoryLock()
void memoryUnlock()
java.lang.String toString(java.text.NumberFormat format)
format
- Formatjava.lang.String toString(long pos)
pos
- Render positionjava.lang.String toString(boolean limit, int size)
limit
- Whether to abbreviate the string.size
- Approximate length before abbreviation occurs.java.lang.String toString(long pos, java.text.NumberFormat format)
pos
- Render positionformat
- Formatjava.lang.String toString(boolean limit, int size, java.text.NumberFormat format)
limit
- Whether to abbreviate the string.size
- Approximate length before abbreviation occurs.format
- Formatjava.lang.String toString(boolean limit, int size, long pos)
limit
- Whether to abbreviate the string.size
- Approximate length before abbreviation occurs.pos
- Render positionjava.lang.String toString(boolean limit, int size, long pos, java.text.NumberFormat format)
limit
- Whether to abbreviate the string.size
- Approximate length before abbreviation occurs.pos
- Render positionformat
- Format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |