public class DatagramOverlapDoubleDataSource extends BufferedDoubleDataSource
| Modifier and Type | Field and Description | 
|---|---|
protected Datagram[][] | 
datagrams  | 
protected int | 
p  | 
protected int | 
q  | 
protected Datagram[] | 
rightContexts  | 
protected int | 
totalRead  | 
buf, dataProcessor, DEFAULT_BUFFERSIZE, readPos, writePosdataLength, inputSourceNOT_SPECIFIED| Constructor and Description | 
|---|
DatagramOverlapDoubleDataSource(Datagram[][] datagrams,
                               Datagram[] rightContexts)
Construct an double data source from the given array of datagram arrays and right contexts. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
available()
The number of doubles that can currently be read from this double data source without blocking. 
 | 
boolean | 
hasMoreData()
Whether or not any more data can be read from this data source. 
 | 
protected int | 
readDatagram(Datagram d,
            double[] target,
            int pos)  | 
protected boolean | 
readIntoBuffer(int minLength)
Attempt to get more data from the input source. 
 | 
bufferSpaceLeft, compact, currentlyInBuffer, getData, increaseBufferSizegetAllData, getData, getData, getDataLengthprotected Datagram[][] datagrams
protected Datagram[] rightContexts
protected int p
protected int q
protected int totalRead
public boolean hasMoreData()
hasMoreData in interface DoubleDataSourcehasMoreData in class BufferedDoubleDataSourcepublic int available()
available in interface DoubleDataSourceavailable in class BufferedDoubleDataSourceprotected boolean readIntoBuffer(int minLength)
readIntoBuffer in class BufferedDoubleDataSourceminLength - the amount of data to get from the input sourceprotected int readDatagram(Datagram d, double[] target, int pos)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.