nl.tudelft.simulation.event
Class TimedEvent
java.lang.Object
nl.tudelft.simulation.event.Event
nl.tudelft.simulation.event.TimedEvent
- All Implemented Interfaces:
- EventInterface, java.io.Serializable
- public class TimedEvent
- extends Event
The TimedEvent is the reference implementation for a timed event.
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
- Since:
- 1.0
- Version:
- 1.7 2004-03-18
- 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-2004 Delft University of Technology, the Netherlands. All Rights Reserved.