|
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
public class Chip
A chip, having possibly a hardware interface and a bias generator. This class extends Observable and signals changes in its parameters via notifyObservers.
A Chip also has Preferences; the Preferences node is based on the package of the actual chip class.
A Chip has a preferred hardware interface class which is used in the HardwareInterfaceFactory or its subclasses to construct the actual hardware interface class when the hardware interface is enumerated.
A Chip may be remote-controllable via its remote control, see getRemoteControl().
Field Summary | |
---|---|
protected Biasgen |
biasgen
The bias generator for this chip |
protected HardwareInterface |
hardwareInterface
The Chip's HardwareInterface |
protected static java.util.logging.Logger |
log
|
protected java.lang.String |
name
A String name |
Constructor Summary | |
---|---|
Chip()
Creates a new instance of Chip |
|
Chip(Biasgen biasgen)
|
|
Chip(HardwareInterface hardwareInterface)
Creates a new instance of Chip |
|
Chip(HardwareInterface hardwareInterface,
Biasgen biasgen)
|
Method Summary | |
---|---|
Biasgen |
getBiasgen()
|
static java.lang.String |
getDescription()
Override this String (can be html formatted) to show it as the Chip description in some GUI controls. |
HardwareInterface |
getHardwareInterface()
gets the hardware interface for this Chip |
java.lang.Object |
getLastData()
Gets the last data associated with this Chip object. |
java.lang.String |
getName()
|
static java.lang.Class<? extends HardwareInterface> |
getPreferredHardwareInterface()
Should be overridden by a subclass of Chip to specify the preferred HardwareInterface. |
java.util.prefs.Preferences |
getPrefs()
Returns the Preferences node for this Chip. |
RemoteControl |
getRemoteControl()
This remote control can be used for remote (via UDP) control of the Chip, e.g. |
void |
setBiasgen(Biasgen biasgen)
|
void |
setHardwareInterface(HardwareInterface hardwareInterface)
Sets the hardware interface and the bias generators hardware interface (if the interface supports the bias generator). |
void |
setLastData(java.lang.Object lastData)
Sets the last data captured or rendered by this Chip. |
void |
setName(java.lang.String name)
|
static void |
setPreferredHardwareInterface(java.lang.Class<? extends HardwareInterface> clazz)
Sets the preferred HardwareInterface class. |
void |
setPrefs(java.util.prefs.Preferences prefs)
Sets the Preferences node for the Chip |
void |
setRemoteControl(RemoteControl remoteControl)
This remote control can be used for remote (via UDP) control of the Chip, e.g. |
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, toString, wait, wait, wait |
Field Detail |
---|
protected Biasgen biasgen
protected java.lang.String name
protected HardwareInterface hardwareInterface
protected static java.util.logging.Logger log
Constructor Detail |
---|
public Chip()
public Chip(HardwareInterface hardwareInterface)
public Chip(Biasgen biasgen)
public Chip(HardwareInterface hardwareInterface, Biasgen biasgen)
Method Detail |
---|
public static java.lang.String getDescription()
public static java.lang.Class<? extends HardwareInterface> getPreferredHardwareInterface()
public static void setPreferredHardwareInterface(java.lang.Class<? extends HardwareInterface> clazz)
clazz
- the class that must extend HardwareInterface.public Biasgen getBiasgen()
public void setBiasgen(Biasgen biasgen)
public java.lang.String getName()
public void setName(java.lang.String name)
public HardwareInterface getHardwareInterface()
public void setHardwareInterface(HardwareInterface hardwareInterface)
hardwareInterface
- the interfacepublic java.lang.Object getLastData()
public void setLastData(java.lang.Object lastData)
lastData
- the data. Usually but not always (e.g. MotionData) this object is of type EventPacket.EventPacket
public java.util.prefs.Preferences getPrefs()
public void setPrefs(java.util.prefs.Preferences prefs)
prefs
- the nodepublic RemoteControl getRemoteControl()
public void setRemoteControl(RemoteControl remoteControl)
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |