nl.tudelft.simulation.event
Class TimedEvent
java.lang.Object
nl.tudelft.simulation.event.Event
nl.tudelft.simulation.event.TimedEvent
- All Implemented Interfaces:
- 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.0
- Version:
- $Revision: 1.1 $ $Date: 2007/01/06 13:24:35 $
- Author:
- Peter Jacobs
- See Also:
- Serialized Form
TimedEvent
public TimedEvent(EventType type,
Object source,
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 String toString()
- Overrides:
toString
in class Event
- See Also:
Object.toString()
Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.