gov.nist.antd.ssf.net
Class InputTrafficPlayer
java.lang.Object
|
+--SSF.Util.Streams.BasicPlayer
|
+--gov.nist.antd.ssf.net.InputTrafficPlayer
- All Implemented Interfaces:
- SSF.Util.Streams.StreamInterface
- public class InputTrafficPlayer
- extends SSF.Util.Streams.BasicPlayer
Player for the NICMonitor. This is a standalone class that
takes a file generated by the NICMonitor.
The result is a text file that contains the information per lambda.
The file can be imported with Microsoft Excel.
This class was developed at the National Institute of Standards and
Technology by employees of the Federal Government in the course of
their official duties. Pursuant to title 17 Section 105 of the United
States Code this software is not subject to copyright protection and
is in the public domain.
NIST assumes no responsibility whatsoever for its use by other parties,
and makes no guarantees, expressed or implied, about its quality,
reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND
DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING
FROM THE USE OF THIS SOFTWARE.
- Author:
- borchert
, rouil
|
Field Summary |
private java.text.DecimalFormat |
format
The format to print the time |
| Fields inherited from class SSF.Util.Streams.BasicPlayer |
|
|
Constructor Summary |
InputTrafficPlayer(java.lang.String streamID)
Creates a player that computes information about the given stream |
|
Method Summary |
static void |
main(java.lang.String[] args)
Main method. |
int |
receive(int tid,
int sid,
double time,
byte[] buf,
int offset,
int length)
Overwrite the method executed for each record. |
| Methods inherited from class SSF.Util.Streams.BasicPlayer |
connectRead, connectWrite, disconnect, getRecordCount, getRecordSourceCode, getRecordSourceString, getRecordTypeCode, getRecordTypeString, isConnected, send, send |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
format
private java.text.DecimalFormat format
- The format to print the time
InputTrafficPlayer
public InputTrafficPlayer(java.lang.String streamID)
- Creates a player that computes information about the given stream
- Parameters:
streamID - The id of the stream to play
receive
public int receive(int tid,
int sid,
double time,
byte[] buf,
int offset,
int length)
- Overwrite the method executed for each record.
- Specified by:
receive in interface SSF.Util.Streams.StreamInterface- Overrides:
receive in class SSF.Util.Streams.BasicPlayer
- Parameters:
tid - The type of the recordsid - The stream id of the recordtime - The time stamp of the recordbuf - The buffer that contains the dataoffset - The offset to start reading the datalength - The length of the user data
- Returns:
- always 0
main
public static void main(java.lang.String[] args)
- Main method.
- Parameters:
args - The argument to configure the player