|
MATES 3.0-rc2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mates.sim.event.Event org.mates.sim.event.LogEvent
Class for encapsulating a log event (i.e. a message that is to be logged).
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 |
public LogEvent(java.lang.Object source, java.lang.String message, long iteration)
source
and
message
may be null.
Method Detail |
public long getIteration()
public java.lang.String getMessage()
public java.lang.Object getSource()
public java.lang.String toString()
Event
toString
in class Event
|
MATES 3.0-rc2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |