s/SensorDataProcessor/SensorEventCounter/

This commit is contained in:
ml1050
2012-01-23 23:27:20 +01:00
parent faa4ddd98f
commit 625d0704bc
3 changed files with 4 additions and 4 deletions
@@ -29,7 +29,7 @@ public class CadenceSensor extends AntSensorBase {
public static final byte CADENCE_DEVICE_TYPE = 122;
public static final short CADENCE_CHANNEL_PERIOD = 8102;
SensorDataProcessor dataProcessor = new SensorDataProcessor();
SensorEventCounter dataProcessor = new SensorEventCounter();
CadenceSensor(short devNum) {
super(devNum, CADENCE_DEVICE_TYPE, "cadence sensor", CADENCE_CHANNEL_PERIOD);
@@ -29,7 +29,7 @@ public class CadenceSpeedSensor extends AntSensorBase {
public static final byte CADENCE_SPEED_DEVICE_TYPE = 121;
public static final short CADENCE_SPEED_CHANNEL_PERIOD = 8086;
SensorDataProcessor dataProcessor = new SensorDataProcessor();
SensorEventCounter dataProcessor = new SensorEventCounter();
CadenceSpeedSensor(short devNum) {
super(devNum, CADENCE_SPEED_DEVICE_TYPE, "speed&cadence sensor", CADENCE_SPEED_CHANNEL_PERIOD);
@@ -27,7 +27,7 @@ import java.util.LinkedList;
*
* @author Laszlo Molnar
*/
public class SensorDataProcessor {
public class SensorEventCounter {
/**
* HistoryElement stores a time stamped sensor counter
@@ -67,7 +67,7 @@ public class SensorDataProcessor {
*/
private LinkedList<HistoryElement> history;
SensorDataProcessor() {
SensorEventCounter() {
counter = -1;
eventsPerMinute = 0;
history = new LinkedList<HistoryElement>();