public class NetricsArrayRecOpSrc extends java.lang.Object implements NetricsRecOpSrc
| Constructor and Description |
|---|
NetricsArrayRecOpSrc()
Create an empty source.
|
NetricsArrayRecOpSrc(NetricsRecOp... rec_ops)
Create a source with an initial set of record operations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRecOp(NetricsRecOp... rec_ops)
Add a set of record operations to the source.
|
boolean |
canReset()
Returns true as this class supports the reset operation.
|
NetricsRecOp |
getCur()
Returns the current record operation.
|
NetricsRecOp |
getNext()
Returns the next record operation.
|
boolean |
hasNext()
True if getNext will return a record operation.
|
void |
reset()
Reset the scan of record back to the beginning.
|
int |
size()
Return the number of RecOps in this source.
|
public NetricsArrayRecOpSrc()
public NetricsArrayRecOpSrc(NetricsRecOp... rec_ops)
rec_ops - the initial record operations.public void addRecOp(NetricsRecOp... rec_ops)
rec_ops - the set of record operations to add.public int size()
public boolean hasNext()
throws NetricsRecSrcException
hasNext in interface NetricsRecOpSrcNetricsRecSrcException - if an error occurs.public NetricsRecOp getNext() throws NetricsRecSrcException
getNext in interface NetricsRecOpSrcNetricsRecSrcException - if an error occurs.public NetricsRecOp getCur()
getCur in interface NetricsRecOpSrcpublic boolean canReset()
canReset in interface NetricsRecOpSrcpublic void reset()
throws NetricsRecSrcException,
java.lang.UnsupportedOperationException
reset in interface NetricsRecOpSrcNetricsRecSrcException - for agreement with interface, never thrownjava.lang.UnsupportedOperationException - for agreement with interface,
never thrown.