jAER project on SourceForge

net.sf.jaer.event
Interface EventInterface<T extends BasicEvent>

All Known Implementing Classes:
BasicEvent, BinauralCochleaEvent, BinocularDisparityEvent, BinocularEvent, BinocularOrientationEvent, CochleaAMSEvent, ColorEvent, CUDAEvent, MotionOrientationEvent, OrientationEvent, PolarityEvent, TypedEvent

public interface EventInterface<T extends BasicEvent>

The basic interface for an event

Author:
tobi

Method Summary
 void copyFrom(T event)
          Copies fields from event to this event.
 int getNumCellTypes()
          Returns the number of types this type of event has, e.g.
 int getType()
          Returns the int type of the event, by convention starting with 0
 

Method Detail

getNumCellTypes

int getNumCellTypes()
Returns the number of types this type of event has, e.g. 2 for a PolarityEvent or 4 for an OrientationEvent

Returns:
number of types

getType

int getType()
Returns the int type of the event, by convention starting with 0

Returns:
the type

copyFrom

void copyFrom(T event)
Copies fields from event to this event. If event is a supertype of this event, added fields take default values.

Parameters:
event - the event to copy from

jAER project on SourceForge