org.blackbox.model
Class Event
java.lang.Object
org.blackbox.model.Event
public class Event
- extends java.lang.Object
Constructor Summary |
Event(java.lang.String type,
java.lang.String origin,
java.lang.Object h)
Create a new Event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Event
public Event(java.lang.String type,
java.lang.String origin,
java.lang.Object h)
- Create a new Event.
- Parameters:
type
- of evt.source
- of this evt.msg
- message holdinf by this event.
getMessage
public java.lang.Object getMessage()
- Returns:
- Returns the msg.
setMessage
public void setMessage(java.lang.Object msg)
- Parameters:
msg
- The msg to set.
getSource
public java.lang.String getSource()
- Returns:
- Returns the source.
setSource
public void setSource(java.lang.String source)
- Parameters:
source
- The source to set.
getType
public java.lang.String getType()
- Returns:
- Returns the type.
setType
public void setType(java.lang.String type)
- Parameters:
type
- The type to set.
toString
public java.lang.String toString()
- String rep of this class
- Overrides:
toString
in class java.lang.Object