nl.tudelft.simulation.event
Class TimedEvent
java.lang.Object
nl.tudelft.simulation.event.Event
nl.tudelft.simulation.event.TimedEvent
- All Implemented Interfaces:
- java.io.Serializable, EventInterface
public class TimedEvent
- extends Event
The TimedEvent is the reference implementation for a timed event.
(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
- Since:
- 1.5
- Version:
- $Revision: 1.6 $ $Date: 2005/08/04 12:08:32 $
- Author:
- Peter Jacobs
- See Also:
- Serialized Form
|
Constructor Summary |
TimedEvent(EventType type,
java.lang.Object source,
java.lang.Object value,
double timeStamp)
constructs a new timed event. |
|
Method Summary |
double |
getTimeStamp()
returns the timeStamp of this event. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimedEvent
public TimedEvent(EventType type,
java.lang.Object source,
java.lang.Object value,
double timeStamp)
- constructs a new timed event.
- Parameters:
type - the eventType of the event.source - the source of the event.value - the value of the event.timeStamp - the timeStamp.
getTimeStamp
public double getTimeStamp()
- returns the timeStamp of this event.
- Returns:
- the timestamp as double.
toString
public java.lang.String toString()
- Overrides:
toString in class Event
- See Also:
Object.toString()
Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.