com.devexperts.qd.tools
Class RandomRecordsProvider
java.lang.Object
com.devexperts.qd.SymbolList
com.devexperts.qd.tools.RandomRecordsProvider
- All Implemented Interfaces:
- DataProvider
public class RandomRecordsProvider
- extends SymbolList
- implements DataProvider
Generates random number of records with random values.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomRecordsProvider
public RandomRecordsProvider(DataRecord record,
java.lang.String[] symbols,
int max_records)
RandomRecordsProvider
public RandomRecordsProvider(DataScheme scheme,
java.lang.String[] symbols,
int max_records)
RandomRecordsProvider
public RandomRecordsProvider(DataRecord[] records,
java.lang.String[] symbols,
int max_records)
RandomRecordsProvider
public RandomRecordsProvider(DataRecord[] records,
SymbolList symbolList,
int min_records,
int max_records)
retrieveData
public boolean retrieveData(DataVisitor visitor)
- Description copied from interface:
DataProvider
- Retrieves accumulated data into specified data visitor.
Returns
true
if some data still remains in the provider
or false
if all accumulated data were retrieved.
- Specified by:
retrieveData
in interface DataProvider
retrieveRecordBuffer
public boolean retrieveRecordBuffer(RecordBuffer buf)
setDataListener
public void setDataListener(DataListener listener)
- Description copied from interface:
DataProvider
- Sets new data listener to receive notifications about data.
Only one listener at a time is supported; the former listener is discarded.
Use
null
to set empty data listener (no notifications).
NOTE: if there is accumulated data available, then specified
listener will be notified by this method.
- Specified by:
setDataListener
in interface DataProvider