|
JanosVM v1.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kaffe.sensors.Sensor
A Sensor corresponds to a chip that contains several features that can be read from or written to. This class is relatively primitive and should probably be extended by more capable classes.
Field Summary | |
private java.util.Hashtable |
features
The set of sensor features. |
private kaffe.util.Ptr |
internal
Link to any internal data structures used by the native library. |
private java.lang.String |
name
The name of the sensor. |
private Sensor |
next
Link to next node in the list. |
private static java.lang.Class |
SENSOR_FEATURE_CLASS
Cached reference to the feature class. |
private static java.lang.Class |
THIS_CLASS
Cached reference to this class. |
Constructor Summary | |
protected |
Sensor()
Construct an empty Sensor object. |
Method Summary | |
(package private) static void |
|
static java.util.Hashtable |
detect()
Detect and return a table of sensors. |
static java.util.Hashtable |
detect(java.lang.Class sensorClass,
java.lang.Class featureClass)
Detect and return a table of sensors. |
private SensorFeature |
detectFeatures(java.lang.Class featureClass)
Detect the set of sensor features. |
boolean |
equals(java.lang.Object obj)
|
SensorFeature |
getFeature(java.lang.String name)
|
java.util.Enumeration |
getFeatures()
|
java.lang.String |
getName()
|
int |
hashCode()
|
private static Sensor |
nativeDetect(java.lang.Class cls)
Detect and return a list sensors in the computer. |
private static void |
nativeInit()
Initialize any native data. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait, wait0 |
Field Detail |
private static final java.lang.Class THIS_CLASS
private static final java.lang.Class SENSOR_FEATURE_CLASS
private Sensor next
private kaffe.util.Ptr internal
private java.lang.String name
private final java.util.Hashtable features
Constructor Detail |
protected Sensor()
Method Detail |
private static void nativeInit() throws java.lang.Exception
private static Sensor nativeDetect(java.lang.Class cls)
cls
- The Sensor subclass that should be used when creating new
objects.static void()
public static java.util.Hashtable detect(java.lang.Class sensorClass, java.lang.Class featureClass)
sensorClass
- The class to use when creating Sensor objects.featureClass
- The class to use when creating SensorFeature
objects.public static java.util.Hashtable detect()
private SensorFeature detectFeatures(java.lang.Class featureClass)
featureClass
- The class to use when creating SensorFeature
objects.public java.lang.String getName()
public java.util.Enumeration getFeatures()
public SensorFeature getFeature(java.lang.String name)
name
- The specific name of a sensor feature.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
JanosVM v1.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |