|
||||||||||
| 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 Object |
content
content refers to the content of the event |
protected Object |
source
the source of an event |
protected EventType |
type
type is the type of the event |
| Constructor Summary | |
|---|---|
Event(EventType type,
Object source,
Object content)
constructs a new Event. |
|
| Method Summary | |
|---|---|
Object |
getContent()
returns the content of this event. |
Object |
getSource()
returns the source of the event. |
EventType |
getType()
returns the type of the event. |
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 Object content
protected Object source
| Constructor Detail |
|---|
public Event(EventType type,
Object source,
Object content)
type - the name of the Event.source - the source of the sender.content - the content of the event.| Method Detail |
|---|
public Object getSource()
EventInterface
getSource in interface EventInterfaceEventInterface.getSource()public Object getContent()
EventInterface
getContent in interface EventInterfaceEventInterface.getContent()public EventType getType()
EventInterface
getType in interface EventInterfaceEventInterface.getType()public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||