You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by dl...@apache.org on 2016/04/07 20:12:29 UTC
[07/10] incubator-quarks git commit: Removed unused getSensor()
method in SimulatedGpsSensor.java
Removed unused getSensor() method in SimulatedGpsSensor.java
Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/e7f7b6cf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/e7f7b6cf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/e7f7b6cf
Branch: refs/heads/master
Commit: e7f7b6cfab855a334981fa23499b9a9625520902
Parents: 98e0fa7
Author: May Wone <mn...@gmail.com>
Authored: Thu Mar 31 16:33:54 2016 -0700
Committer: May Wone <mn...@gmail.com>
Committed: Wed Apr 6 14:24:45 2016 -0700
----------------------------------------------------------------------
.../utils/sensor/gps/SimulatedGpsSensor.java | 29 --------------------
1 file changed, 29 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/e7f7b6cf/test/svt/src/main/java/quarks/test/svt/utils/sensor/gps/SimulatedGpsSensor.java
----------------------------------------------------------------------
diff --git a/test/svt/src/main/java/quarks/test/svt/utils/sensor/gps/SimulatedGpsSensor.java b/test/svt/src/main/java/quarks/test/svt/utils/sensor/gps/SimulatedGpsSensor.java
index d529858..d9f4a48 100644
--- a/test/svt/src/main/java/quarks/test/svt/utils/sensor/gps/SimulatedGpsSensor.java
+++ b/test/svt/src/main/java/quarks/test/svt/utils/sensor/gps/SimulatedGpsSensor.java
@@ -53,35 +53,6 @@ public class SimulatedGpsSensor {
{37.195647, -121.748087}, // IBM Silicon Valley Lab 555 Bailey Ave
};
- /**
- * Create a stream of simulated GPS sensor readings.
- *
- * Simulation of reading a sensor every 1sec
- *
- * Each tuple is a JSON object containing:
- * <UL>
- * <LI>{@code name} - Name of the sensor from {@code name}.</LI>
- * <LI>{@code GPS reading} - GPS value -
- * <UL>
- * <LI>{@code latitude}.</LI>
- * <LI> {@code longitude}.</LI>
- * <LI> {@code altitude}.</LI>
- * <LI> {@code speed}.</LI>
- * <LI> {@code time}.</LI>
- * <LI> {@code course}.</LI>
- * </UL>
- * </UL>
- *
- * @param topology Topology to be added to.
- * @param name Name of the sensor in the JSON output.
- * @return Stream containing GPS data
- */
- public TStream<GpsSensor> gpsSensor(Topology topology, String name) {
-
- TStream<GpsSensor> sensor = topology.poll(() -> nextGps(), 1, TimeUnit.SECONDS);
- return sensor;
- }
-
//TODO Re-write kluge code to read from a file
// Returns a GpsSensor using the hard-coded list, then repeats through the list
// forever when requestedIterations = -1, or until iterations is reached.