public abstract class TablePointSequence extends Object implements PointSequence
Modifier | Constructor and Description |
---|---|
protected |
TablePointSequence(SequentialJELRowReader rseq,
String labelExpr,
String[] setExprs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Call when this sequence is no longer required.
|
protected Object |
evaluate(gnu.jel.CompiledExpression compex)
Convenience method which evaluates an Object-valued compiled expression.
|
protected double |
evaluateDouble(gnu.jel.CompiledExpression compex)
Convenience method which evaluates a numeric-valued compiled expression.
|
String |
getLabel()
Returns any text label associated with the current point.
|
boolean |
isIncluded(int iset)
Indicates whether the current row is included in the given subset.
|
boolean |
next()
Attempts to advance the current row to the next one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrors, getPoint
protected TablePointSequence(SequentialJELRowReader rseq, String labelExpr, String[] setExprs) throws gnu.jel.CompilationException
rseq
- row sequence representing the table which contains the
actual datalabelExpr
- JEL expression for text labellling each point;
may be null for no label; may have any type
(converted to string before use)setExprs
- nset-element array of boolean-valued JEL expressions
giving per-set point inclusion statusgnu.jel.CompilationException
public boolean next()
PointSequence
true
is returned the attempt has been successful,
and if false
is returned there are no more rows in
this sequence. Since the initial position of this sequence is before
the first row, this method must be called before calling any of the
data access methods.next
in interface PointSequence
public String getLabel()
PointSequence
getLabel
in interface PointSequence
public boolean isIncluded(int iset)
PointSequence
isIncluded
in interface PointSequence
iset
is includedpublic void close()
PointSequence
close
in interface PointSequence
protected Object evaluate(gnu.jel.CompiledExpression compex)
compex
- compiled expressionprotected double evaluateDouble(gnu.jel.CompiledExpression compex)
compex
- compiled expressionCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.