gov.nist.antd.optical
Class BasicMonitorPlayer

java.lang.Object
  |
  +--SSF.Util.Streams.BasicPlayer
        |
        +--gov.nist.antd.optical.BasicMonitorPlayer
All Implemented Interfaces:
SSF.Util.Streams.StreamInterface

public class BasicMonitorPlayer
extends SSF.Util.Streams.BasicPlayer

Player for the BasicQueueMonitor. This is a standalone class that takes a file generated by the BasicQueueMonitor. 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
BasicMonitorPlayer(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
 

Field Detail

format

private java.text.DecimalFormat format
The format to print the time

Constructor Detail

BasicMonitorPlayer

public BasicMonitorPlayer(java.lang.String streamID)
Creates a player that computes information about the given stream

Parameters:
streamID - The id of the stream to play
Method Detail

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 record
sid - The stream id of the record
time - The time stamp of the record
buf - The buffer that contains the data
offset - The offset to start reading the data
length - 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