nl.tudelft.simulation.event
Class TimedEvent

java.lang.Object
  extended by nl.tudelft.simulation.event.Event
      extended by 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

Field Summary
 
Fields inherited from class nl.tudelft.simulation.event.Event
content, source, type
 
Constructor Summary
TimedEvent(EventType type, Object source, Object value, double timeStamp)
          constructs a new timed event.
 
Method Summary
 double getTimeStamp()
          returns the timeStamp of this event.
 String toString()
           
 
Methods inherited from class nl.tudelft.simulation.event.Event
getContent, getSource, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.