|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.NetFlow.Filter.FilterPlayer
|
+--SSF.Util.Plot.Analyzer
Analyzes the raw binary data streams from the simulation to and
bins it into time-bins. Queue monitor data is already binned but
may be aggregated into larger bins. The raw flow data, on the other
hand, is binned by computing the fraction of the (continuous) flow
covering each bin. The result is that the time-bin holds the number
of active flows at each time point.
Extends the FilterPlayer class to override some if its methods,
primarily receive() and configFilters(). Changes the receive()
behavior, but also uncludes multiple filters instead of the
single filter in FilterPlayer. This permits multiple datasets
to be generated from a single pass through the data file.
$Id: Analyzer.java,v 1.12 2003/02/13 19:31:32 mili Exp $
| Field Summary | |
static char |
QREC_LEN
|
static char |
QREC_PKTCOUNT
|
static char |
QREC_PKTDIFF
|
static char |
QREC_PKTDROPCNT
|
static char |
QREC_PKTDROPDIFF
|
static char |
UNSPEC
|
| Fields inherited from class SSF.OS.NetFlow.Filter.FilterPlayer |
filter, sourceDictionary, streamID, typeDictionary |
| Constructor Summary | |
Analyzer(int numDatasets,
java.lang.String fileName,
java.lang.String streamID)
Constructs an analyzer object for streamID that quantizes the timepoints in the data into bins of size binSize. |
|
| Method Summary | |
protected void |
addType(java.lang.String spec)
addType copied from FilterPlayer and modified to handle multiple filters. |
void |
assignFieldSelectors(char[] fieldSelectors)
Assign a field selector per filter. |
void |
assignFilters(Filter[] pFilters)
Assign multiple filters to this "Player"/Analyzer. |
void |
binToArray(java.lang.Object[][] dataArray,
float binSize)
Bin data from stream into given array using given bin size. |
void |
configFilters(java.lang.String[] configFileNames)
Configuration of filter given the name of a DML file that contains the filter configuration information. |
int |
receive(int tid,
int sid,
double time,
byte[] buf,
int offset,
int length)
Callback method for action to do for each read record. |
void |
wrapUp()
Wrap-up. |
| Methods inherited from class SSF.OS.NetFlow.Filter.FilterPlayer |
addSource, assignFilter, connectRead, connectWrite, disconnect, getRecordSourceCode, getRecordSourceString, getRecordTypeCode, getRecordTypeString, isConnected, main, send, send |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char UNSPEC
public static final char QREC_LEN
public static final char QREC_PKTCOUNT
public static final char QREC_PKTDROPCNT
public static final char QREC_PKTDIFF
public static final char QREC_PKTDROPDIFF
| Constructor Detail |
public Analyzer(int numDatasets,
java.lang.String fileName,
java.lang.String streamID)
| Method Detail |
public void binToArray(java.lang.Object[][] dataArray,
float binSize)
throws streamException
streamExceptionpublic void assignFilters(Filter[] pFilters)
public void assignFieldSelectors(char[] fieldSelectors)
public void configFilters(java.lang.String[] configFileNames)
public int receive(int tid,
int sid,
double time,
byte[] buf,
int offset,
int length)
receive in interface StreamInterfacereceive in class FilterPlayer
protected void addType(java.lang.String spec)
throws streamException
addType in class FilterPlayerspec - the string generated from the record.
streamExceptionpublic void wrapUp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||