jAER project on SourceForge

net.sf.jaer.event
Class TypedEvent

java.lang.Object
  extended by net.sf.jaer.event.BasicEvent
      extended by net.sf.jaer.event.TypedEvent
All Implemented Interfaces:
EventInterface<BasicEvent>
Direct Known Subclasses:
BinauralCochleaEvent, ColorEvent, PolarityEvent

public class TypedEvent
extends BasicEvent

Represents an event with a byte type. This is a legacy class to support previous implementations.

Author:
tobi

Field Summary
 byte type
           
 
Fields inherited from class net.sf.jaer.event.BasicEvent
timestamp, x, y
 
Constructor Summary
TypedEvent()
          Creates a new instance of TypedEvent
 
Method Summary
 void copyFrom(BasicEvent src)
          copies fields from source event src to this event
 int getType()
          Returns the int type of the event, by convention starting with 0
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jaer.event.BasicEvent
getNumCellTypes, getTimestamp, getX, getY, setTimestamp, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public byte type
Constructor Detail

TypedEvent

public TypedEvent()
Creates a new instance of TypedEvent

Method Detail

getType

public int getType()
Description copied from interface: EventInterface
Returns the int type of the event, by convention starting with 0

Specified by:
getType in interface EventInterface<BasicEvent>
Overrides:
getType in class BasicEvent
Returns:
the type

toString

public java.lang.String toString()
Overrides:
toString in class BasicEvent

copyFrom

public void copyFrom(BasicEvent src)
copies fields from source event src to this event

Specified by:
copyFrom in interface EventInterface<BasicEvent>
Overrides:
copyFrom in class BasicEvent
Parameters:
src - the event to copy from

jAER project on SourceForge