jAER project on SourceForge

net.sf.jaer.event
Class PolarityEvent

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

public class PolarityEvent
extends TypedEvent

Represents an event with a polarity that is On or Off type

Author:
tobi

Nested Class Summary
static class PolarityEvent.Polarity
           
 
Field Summary
 PolarityEvent.Polarity polarity
           
 
Fields inherited from class net.sf.jaer.event.TypedEvent
type
 
Fields inherited from class net.sf.jaer.event.BasicEvent
timestamp, x, y
 
Constructor Summary
PolarityEvent()
          Creates a new instance of PolarityEvent
 
Method Summary
 void copyFrom(BasicEvent src)
          copies fields from source event src 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
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jaer.event.BasicEvent
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

polarity

public PolarityEvent.Polarity polarity
Constructor Detail

PolarityEvent

public PolarityEvent()
Creates a new instance of PolarityEvent

Method Detail

toString

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

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 TypedEvent
Parameters:
src - the event to copy from

getNumCellTypes

public int getNumCellTypes()
Description copied from interface: EventInterface
Returns the number of types this type of event has, e.g. 2 for a PolarityEvent or 4 for an OrientationEvent

Specified by:
getNumCellTypes in interface EventInterface<BasicEvent>
Overrides:
getNumCellTypes in class BasicEvent
Returns:
number of types

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 TypedEvent
Returns:
the type

jAER project on SourceForge