appl.parallel.event
Class TimeEvent

java.lang.Object
  extended by appl.parallel.event.RemoteEvent
      extended by appl.parallel.event.CommEvent
          extended by appl.parallel.event.TimeEvent
All Implemented Interfaces:
Serializable

public class TimeEvent
extends CommEvent

A TimeEvent is a CommEvent which is associated with a execution time of a operation.

Author:
Dominik Appl
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class appl.parallel.event.CommEvent
CommEvent.CommType
 
Field Summary
 
Fields inherited from class appl.parallel.event.CommEvent
src, target, type
 
Constructor Summary
TimeEvent(long timeNanos, String src, String target, CommEvent.CommType type)
           
 
Method Summary
 long getTime()
           
 String toString()
           
 
Methods inherited from class appl.parallel.event.CommEvent
getSrc, getTarget, getType, typeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeEvent

public TimeEvent(long timeNanos,
                 String src,
                 String target,
                 CommEvent.CommType type)
Parameters:
timeNanos - the execution time to be associated with this event in nano seconds
src - the source of the event
target - the target of the event
type - the type of the event
See Also:
System.nanoTime()
Method Detail

getTime

public long getTime()
Returns:
the execution time

toString

public String toString()
Overrides:
toString in class Object