|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.tudelft.simulation.event.Event
public class Event
The Event class forms the reference implementation for the EventInterface.
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/event
License of use: Lesser
General Public License (LGPL) , no warranty
| Field Summary | |
|---|---|
protected java.lang.Object |
content
content refers to the content of the event |
protected java.lang.Object |
source
the source of an event |
protected EventType |
type
type is the type of the event |
| Constructor Summary | |
|---|---|
Event(EventType type,
java.lang.Object source,
java.lang.Object content)
constructs a new Event. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getContent()
returns the content of this event. |
java.lang.Object |
getSource()
returns the source of the event. |
EventType |
getType()
returns the type of the event. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected EventType type
protected java.lang.Object content
protected java.lang.Object source
| Constructor Detail |
|---|
public Event(EventType type,
java.lang.Object source,
java.lang.Object content)
type - the name of the Event.source - the source of the sender.content - the content of the event.| Method Detail |
|---|
public java.lang.Object getSource()
EventInterface
getSource in interface EventInterfaceEventInterface.getSource()public java.lang.Object getContent()
EventInterface
getContent in interface EventInterfaceEventInterface.getContent()public EventType getType()
EventInterface
getType in interface EventInterfaceEventInterface.getType()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||