cat.sensor.core
Class SensorProxy

java.lang.Object
  extended bycat.sensor.core.SensorProxy

public class SensorProxy
extends java.lang.Object

The SensorProxy gets actuall sensor data by listening to a simulator or to real hardware sensors. Right now it is only setup to listen to simulated sensors. TODO: Another SensorProxy should be written for connecting to real hardware sensors.


Field Summary
private  LeafSensor leafSensor
          The LeafSensor that this proxy passes sensor data to.
 
Constructor Summary
SensorProxy(LeafSensor rawsensor)
          Constructor needs to signup as a listener to the SocketReceiver.
 
Method Summary
 void incomingMessage(Message msg)
          This is how the Sensor Proxy will get Messages from simulator (iSIM).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leafSensor

private LeafSensor leafSensor
The LeafSensor that this proxy passes sensor data to.

Constructor Detail

SensorProxy

public SensorProxy(LeafSensor rawsensor)
Constructor needs to signup as a listener to the SocketReceiver. Note: Right now SocketReceiver only has one listener. You guys might want to change that, since you will probably have multiple SensorProxys.

Parameters:
rawsensor - The LeafSensor that will data from this proxy.
Method Detail

incomingMessage

public void incomingMessage(Message msg)
This is how the Sensor Proxy will get Messages from simulator (iSIM). It then checks for what type of message received from iSIM, and then gets the data from the message. The data is then passed to the LeafSensor.