|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
net.sf.jaer.chip.Chip
net.sf.jaer.chip.Chip2D
net.sf.jaer.chip.AEChip
public class AEChip
Describes a generic address-event chip, and includes fields for associated classes like its renderer, its rendering paint surface, file input and output event streams, and the event filters that can operate on its output. A subclass can add it's own default EventFilters so that users need not customize the FilterChain.
Field Summary | |
---|---|
protected AEFileInputStream |
aeInputStream
|
protected AEFileOutputStream |
aeOutputStream
|
protected AEViewer |
aeViewer
|
protected java.util.ArrayList<java.lang.Class> |
defaultEventFilters
List of default EventFilter2D filters |
protected EventExtractor2D |
eventExtractor
|
protected FilterChain |
filterChain
|
protected AEChipRenderer |
renderer
|
Fields inherited from class net.sf.jaer.chip.Chip2D |
---|
canvas, filterFrame, numCellTypes, sizeX, sizeY |
Fields inherited from class net.sf.jaer.chip.Chip |
---|
biasgen, hardwareInterface, log, name |
Constructor Summary | |
---|---|
AEChip()
Creates a new instance of AEChip |
Method Summary | |
---|---|
void |
addDefaultEventFilter(java.lang.Class f)
add a filter that is available by default |
AEFileInputStream |
getAeInputStream()
|
AEFileOutputStream |
getAeOutputStream()
|
AEViewer |
getAeViewer()
|
java.util.ArrayList<java.lang.Class> |
getDefaultEventFilterClasses()
|
java.util.ArrayList<java.lang.String> |
getDefaultEventFilterClassNames()
return list of default filter class names (strings) |
static java.lang.String |
getDescription()
|
java.lang.Class<? extends BasicEvent> |
getEventClass()
A chip has this intrinsic class of output events. |
EventExtractor2D |
getEventExtractor()
|
FilterChain |
getFilterChain()
This chain of filters for this AEChip |
FilterFrame |
getFilterFrame()
|
int |
getNumCellTypes()
|
int |
getRawAddressNumBits()
The number of bits on an AE bus used for the raw device address. |
AEChipRenderer |
getRenderer()
|
boolean |
isSubSamplingEnabled()
|
void |
setAeInputStream(AEFileInputStream aeInputStream)
Sets the file input stream and notifies Observers with the new AEFileInputStream. |
void |
setAeOutputStream(AEFileOutputStream aeOutputStream)
Sets the file output stream and notifies Observers with the new AEFileOutputStream. |
void |
setAeViewer(AEViewer aeViewer)
Sets the AEViewer that will display this chip. |
void |
setEventClass(java.lang.Class<? extends BasicEvent> eventClass)
The AEChip produces this type of event. |
void |
setEventExtractor(EventExtractor2D eventExtractor)
Sets the EventExtractor2D and notifies Observers with the new extractor. |
void |
setFilterChain(FilterChain filterChain)
|
void |
setFilterFrame(FilterFrame filterFrame)
Sets the FilterFrame and notifies Observers with the new FilterFrame. |
void |
setNumCellTypes(int numCellTypes)
Sets the number of cell types from each x,y location that this AEChip has. |
void |
setRawAddressNumBits(int rawAddressNumBits)
The number of bits on an AE bus used for the raw device address. |
void |
setRenderer(AEChipRenderer renderer)
sets the class that renders the event histograms and notifies Observers with the new Renderer. |
void |
setSubSamplingEnabled(boolean subSamplingEnabled)
Enables subsampling of the events in event extraction, rendering, etc. |
java.lang.String |
toString()
|
Methods inherited from class net.sf.jaer.chip.Chip2D |
---|
getCanvas, getMaxSize, getMinSize, getNumCells, getNumPixels, getPixelHeightUm, getPixelWidthUm, getSizeX, getSizeY, setCanvas, setName, setPixelHeightUm, setPixelWidthUm, setRenderer, setSizeX, setSizeY |
Methods inherited from class net.sf.jaer.chip.Chip |
---|
getBiasgen, getHardwareInterface, getLastData, getName, getPreferredHardwareInterface, getPrefs, getRemoteControl, setBiasgen, setHardwareInterface, setLastData, setPreferredHardwareInterface, setPrefs, setRemoteControl |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected EventExtractor2D eventExtractor
protected AEChipRenderer renderer
protected AEFileInputStream aeInputStream
protected AEFileOutputStream aeOutputStream
protected FilterChain filterChain
protected AEViewer aeViewer
protected java.util.ArrayList<java.lang.Class> defaultEventFilters
Constructor Detail |
---|
public AEChip()
Method Detail |
---|
public static java.lang.String getDescription()
public java.util.ArrayList<java.lang.Class> getDefaultEventFilterClasses()
public java.util.ArrayList<java.lang.String> getDefaultEventFilterClassNames()
public void addDefaultEventFilter(java.lang.Class f)
public EventExtractor2D getEventExtractor()
public void setEventExtractor(EventExtractor2D eventExtractor)
eventExtractor
- the extractor; notifies Observers.public int getNumCellTypes()
public void setNumCellTypes(int numCellTypes)
numCellTypes
- the number of types, e.g. 2 for the temporal contrast retina with on/off typespublic java.lang.String toString()
toString
in class java.lang.Object
public AEChipRenderer getRenderer()
getRenderer
in class Chip2D
public void setRenderer(AEChipRenderer renderer)
public AEFileInputStream getAeInputStream()
public void setAeInputStream(AEFileInputStream aeInputStream)
aeInputStream
- public AEFileOutputStream getAeOutputStream()
public void setAeOutputStream(AEFileOutputStream aeOutputStream)
aeOutputStream
- public AEViewer getAeViewer()
public void setAeViewer(AEViewer aeViewer)
aeViewer
- the viewerpublic FilterFrame getFilterFrame()
public void setFilterFrame(FilterFrame filterFrame)
filterFrame
- public boolean isSubSamplingEnabled()
public void setSubSamplingEnabled(boolean subSamplingEnabled)
subSamplingEnabled
- true to enable sub samplingpublic FilterChain getFilterChain()
public void setFilterChain(FilterChain filterChain)
public java.lang.Class<? extends BasicEvent> getEventClass()
public void setEventClass(java.lang.Class<? extends BasicEvent> eventClass)
eventClass
- the class of event, extending BasicEventpublic int getRawAddressNumBits()
short
, and 32 bits reads and writes int
.
At present
all chips write and read the same address data width, int (32 bits)
as of data file format 2.0. Old data files
will still be read correctly.
public void setRawAddressNumBits(int rawAddressNumBits)
short
, and 32 bits reads and writes int
.
At present
all chips write and read the same address data width, int (32 bits)
as of data file format 2.0. Old data files
will still be read correctly.
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |