MATES 3.0-rc2

org.mates.sim.event
Class LogEvent

java.lang.Object
  extended byorg.mates.sim.event.Event
      extended byorg.mates.sim.event.LogEvent

public class LogEvent
extends Event

Class for encapsulating a log event (i.e. a message that is to be logged).

Author:
Evan A. Sultanik

Constructor Summary
LogEvent(java.lang.Object source, java.lang.String message, long iteration)
          Constructs a new log event.
 
Method Summary
 long getIteration()
          Returns the iteration on which the event was thrown.
 java.lang.String getMessage()
          Returns the message associated with this event.
 java.lang.Object getSource()
          Returns the source object that threw (our caused) the event.
 java.lang.String toString()
          Returns a string representation of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEvent

public LogEvent(java.lang.Object source,
                java.lang.String message,
                long iteration)
Constructs a new log event. Both source and message may be null.

Method Detail

getIteration

public long getIteration()
Returns the iteration on which the event was thrown.


getMessage

public java.lang.String getMessage()
Returns the message associated with this event.


getSource

public java.lang.Object getSource()
Returns the source object that threw (our caused) the event.


toString

public java.lang.String toString()
Description copied from class: Event
Returns a string representation of this event.

Specified by:
toString in class Event

MATES 3.0-rc2

Submit a bug or request a feature
http://mates.sourceforge.net/

Copyright 2004 Evan Sultanik