The Physiologist's Friend Simulation API

ch.unizh.ini.friend.record
Class SpikeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ch.unizh.ini.friend.record.SpikeEvent
All Implemented Interfaces:
Serializable

public class SpikeEvent
extends EventObject

Represents a spike.

Version:
$Revision: 1.1 $
Author:
$Author: tobi $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SpikeEvent(Object source)
          Creates a new instance of SpikeEvent.
SpikeEvent(Object source, long time)
          Creates a new instance of SpikeEvent
 
Method Summary
 long getTime()
           
 void setTime(long t)
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpikeEvent

public SpikeEvent(Object source)
Creates a new instance of SpikeEvent. The time of the spike is set to System.currentTimeMillis().

Parameters:
source - the object that generated the spike

SpikeEvent

public SpikeEvent(Object source,
                  long time)
Creates a new instance of SpikeEvent

Parameters:
source - the object that generated the spike
time - the time of the spike
Method Detail

getTime

public long getTime()

setTime

public void setTime(long t)

toString

public String toString()
Overrides:
toString in class EventObject
Returns:
time of spike as string

http://www.ini.unizh.ch/~tobi/friend