|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.event.BasicEvent
public class BasicEvent
Base class for events. This class is extended by producers offering extended event type information. Instances are used in EventPacket. This class is the new-style event that replaces the original Event2D.
Field Summary | |
---|---|
int |
timestamp
timestamp of event, by convention in us |
short |
x
x address of event (horizontal coordinate, by convention starts at left of image) |
short |
y
y address of event (vertical coordinate, by convention starts at bottom of image) |
Constructor Summary | |
---|---|
BasicEvent()
Creates a new instance of BasicEvent |
|
BasicEvent(int t)
Creates a new instance of BasicEvent |
|
BasicEvent(int timestamp,
short x,
short y,
byte type,
byte... types)
create an BasicEvent with a timestamp, x, y, and a variable length number of bytes types |
Method Summary | |
---|---|
void |
copyFrom(BasicEvent e)
copies fields from source event src to this event |
int |
getNumCellTypes()
Returns the number of types this type of event has, e.g. |
int |
getTimestamp()
|
int |
getType()
Returns the int type of the event, by convention starting with 0 |
short |
getX()
|
short |
getY()
|
void |
setTimestamp(int timestamp)
|
void |
setX(short x)
|
void |
setY(short y)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int timestamp
public short x
public short y
Constructor Detail |
---|
public BasicEvent()
public BasicEvent(int timestamp, short x, short y, byte type, byte... types)
public BasicEvent(int t)
Method Detail |
---|
public void copyFrom(BasicEvent e)
copyFrom
in interface EventInterface<BasicEvent>
e
- the event to copy frompublic java.lang.String toString()
toString
in class java.lang.Object
public int getNumCellTypes()
EventInterface
getNumCellTypes
in interface EventInterface<BasicEvent>
public int getType()
EventInterface
getType
in interface EventInterface<BasicEvent>
public final int getTimestamp()
public final void setTimestamp(int timestamp)
public final short getX()
public final void setX(short x)
public final short getY()
public final void setY(short y)
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |