se.sics.tasim.logtool
Class LogReader
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogReader
public LogReader(java.io.InputStream in)
throws java.io.IOException,
java.text.ParseException
- Throws:
java.io.IOException
java.text.ParseException
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.