jAER project on SourceForge

ch.unizh.ini.jaer.chip.dollbrain
Class ColorEvent

java.lang.Object
  extended by net.sf.jaer.event.BasicEvent
      extended by net.sf.jaer.event.TypedEvent
          extended by ch.unizh.ini.jaer.chip.dollbrain.ColorEvent
All Implemented Interfaces:
EventInterface<BasicEvent>

public class ColorEvent
extends TypedEvent

Represents an event with a short color.

Author:
raphael

Field Summary
 short color
           
 
Fields inherited from class net.sf.jaer.event.TypedEvent
type
 
Fields inherited from class net.sf.jaer.event.BasicEvent
timestamp, x, y
 
Constructor Summary
ColorEvent()
          Creates a new instance of TypedEvent
 
Method Summary
 void copyFrom(BasicEvent src)
          copies fields from source event src to this event
 short getColor()
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jaer.event.TypedEvent
getType
 
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

color

public short color
Constructor Detail

ColorEvent

public ColorEvent()
Creates a new instance of TypedEvent

Method Detail

getColor

public short getColor()

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

jAER project on SourceForge