se.sics.tasim.logtool
Class LogReader

java.lang.Object
  extended by se.sics.tasim.logtool.LogReader

public class LogReader
extends java.lang.Object

Utility for parsing server logs (not used by the AgentWare).


Constructor Summary
LogReader(java.io.InputStream in)
           
 
Method Summary
 void cancel()
           
 void close()
           
 long getEndTime()
           
 int getMaxBufferSize()
           
 ParticipantInfo[] getParticipants()
           
 java.lang.String getServerName()
           
 java.lang.String getServerVersion()
           
 int getSimulationID()
           
 int getSimulationLength()
          Returns the length of the simulation in milliseconds.
 java.lang.String getSimulationParams()
           
 java.lang.String getSimulationType()
           
 long getStartTime()
           
 int getUniqueID()
           
 boolean hasMoreChunks()
           
 boolean isCancelled()
           
 boolean isClosed()
           
 boolean isComplete()
          Returns true if the log file has been successfully read to its end
static void main(java.lang.String[] args)
           
 TransportReader nextChunk()
           
 void setContext(Context context)
           
 void setMaxBufferSize(int maxBufferSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogReader

public LogReader(java.io.InputStream in)
          throws java.io.IOException,
                 java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException
Method Detail

getSimulationID

public int getSimulationID()

getUniqueID

public int getUniqueID()

getSimulationType

public java.lang.String getSimulationType()

getSimulationParams

public java.lang.String getSimulationParams()

getStartTime

public long getStartTime()

getEndTime

public long getEndTime()

getSimulationLength

public int getSimulationLength()
Returns the length of the simulation in milliseconds.


isComplete

public boolean isComplete()
Returns true if the log file has been successfully read to its end


getParticipants

public ParticipantInfo[] getParticipants()

getServerName

public java.lang.String getServerName()

getServerVersion

public java.lang.String getServerVersion()

getMaxBufferSize

public int getMaxBufferSize()

setMaxBufferSize

public void setMaxBufferSize(int maxBufferSize)

setContext

public void setContext(Context context)

hasMoreChunks

public boolean hasMoreChunks()
                      throws java.io.IOException
Throws:
java.io.IOException

nextChunk

public TransportReader nextChunk()
                          throws java.io.IOException
Throws:
java.io.IOException

isClosed

public boolean isClosed()

close

public void close()

isCancelled

public boolean isCancelled()

cancel

public void cancel()

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.