jAER project on SourceForge

net.sf.jaer.event
Class BinocularEvent

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

public class BinocularEvent
extends PolarityEvent

Represents an event from a binocular source

Author:
tobi

Nested Class Summary
static class BinocularEvent.Eye
           
 
Nested classes/interfaces inherited from class net.sf.jaer.event.PolarityEvent
PolarityEvent.Polarity
 
Field Summary
 BinocularEvent.Eye eye
           
 
Fields inherited from class net.sf.jaer.event.PolarityEvent
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
BinocularEvent()
          Creates a new instance of BinocularEvent
 
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()
          Overridden so that LEFT=0, RIGHT=1
 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

eye

public BinocularEvent.Eye eye
Constructor Detail

BinocularEvent

public BinocularEvent()
Creates a new instance of BinocularEvent

Method Detail

getType

public int getType()
Overridden so that LEFT=0, RIGHT=1

Specified by:
getType in interface EventInterface<BasicEvent>
Overrides:
getType in class PolarityEvent
Returns:
type value from eye

toString

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

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 PolarityEvent
Returns:
number of types

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

jAER project on SourceForge