org.edg.data.reptor.analysis
Class LogEvent

java.lang.Object
  extended byorg.edg.data.reptor.analysis.LogEvent

public class LogEvent
extends java.lang.Object

Docu

Version:
$Id: LogEvent.java,v 1.1 2003/10/15 14:35:25 jamesc Exp $
Author:
Gavin McCance

Method Summary
 long absDiff(LogEvent other)
          A.diff(B) returns |time of B - time of A|
 long diff(LogEvent other)
          A.diff(B) returns time of B - time of A.
 java.lang.String getLine()
          Return the log line.
 long getTime()
          Returns the absolute time of this event since the epoch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTime

public long getTime()
             throws java.lang.NumberFormatException
Returns the absolute time of this event since the epoch.

Returns:
in milliseconds.
Throws:
java.lang.NumberFormatException

getLine

public java.lang.String getLine()
Return the log line.

Returns:
the log text.

diff

public long diff(LogEvent other)
          throws java.lang.NumberFormatException
A.diff(B) returns time of B - time of A.

Parameters:
other - Event B
Returns:
the time difference in milliseconds.
Throws:
java.lang.NumberFormatException

absDiff

public long absDiff(LogEvent other)
             throws java.lang.NumberFormatException
A.diff(B) returns |time of B - time of A|

Parameters:
other - Event B.
Returns:
the absolute time difference in milliseconds.
Throws:
java.lang.NumberFormatException