|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.services.ServiceEngine
public class ServiceEngine
This class handles interaction with environment. It implements convenience methods for handling of sensors.
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
logger
Logger for this class |
private static java.util.Collection<SensorInput> |
sensorList
All the sensors in the environment. |
Constructor Summary | |
---|---|
ServiceEngine()
|
Method Summary | |
---|---|
static State |
getCurrentState()
Method returns the current state of the system. |
private static java.util.Collection<SensorInput> |
getEnvironmentSensors()
Returns a snapshot of the sensors and their current setting in the system. |
static double |
getSensorValue(SuperLinkID id)
Method returns the value of the sensor associated with the given id . |
static void |
reset()
Resets the service engine. |
static void |
setSensorList(java.util.Collection<SensorInput> sensorList)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.Collection<SensorInput> sensorList
private static final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public ServiceEngine()
Method Detail |
---|
private static java.util.Collection<SensorInput> getEnvironmentSensors()
public static State getCurrentState()
public static double getSensorValue(SuperLinkID id)
id
.
id
- the id of the sensor
public static void setSensorList(java.util.Collection<SensorInput> sensorList)
sensorList
- the sensorList to setpublic static void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |