// Create a first source called "packet index", useful to make XY plots.
// See addSource() for comments
createDataSource(new DataInfo("packet index","packet index","number of packets received",""), ValueProvider.DoubleProvider);
try { // Wrap a buffer around it so we see past values too
bufferize(0, new DelayedBuffer(ValueProvider.DoubleProvider, 1000));
} catch (UnsupportedOperation e) {
e.printStackTrace();
}
for (int i= 0; i < 10; i++)
addSource();