package com.ociweb.grove;

import com.ociweb.iot.maker.FogCommandChannel;
import com.ociweb.iot.maker.FogRuntime;
import static com.ociweb.iot.maker.FogRuntime.*;
import static com.ociweb.iot.grove.gps.GPSTwig.*;

import com.ociweb.iot.grove.gps.GPS_Transducer;
import com.ociweb.iot.grove.gps.GeoCoordinateListener;

public class GPSBehavior implements GeoCoordinateListener{
	private FogCommandChannel ch;
	private GPS_Transducer gps;
	public GPSBehavior(FogRuntime rt){
		this.gps = new GPS_Transducer(rt.newCommandChannel(SERIAL_WRITER), this);

	}
	@Override
	public void coordinates(int longtitude, int lattitude) {
		System.out.println("Long:" + longtitude + ", Lat: " + lattitude);
	}
	
}

@@ -31,54 +31,14 @@
 ort 
-com.ociweb.iot.maker.FogCommandChannel;%0Aimport
+static
  com
@@ -65,25 +65,40 @@
 gRuntime
-;
+.SERIAL_WRITER;%0A
 %0Aimport 
 static c
@@ -81,39 +81,32 @@
 WRITER;%0A%0Aimport 
-static 
 com.ociweb.iot.m
@@ -108,26 +108,32 @@
 iot.
-maker.FogRuntime.*
+grove.gps.GPS_Transducer
 ;%0Aim
@@ -129,39 +129,32 @@
 nsducer;%0Aimport 
-static 
 com.ociweb.iot.g
@@ -167,18 +167,29 @@
 ps.G
-PSTwig.*;%0A
+eoCoordinateListener;
 %0Aimp
@@ -211,87 +211,71 @@
 iot.
-grove.gps.GPS_Transducer;%0Aimport com.ociweb.iot.grove.gps.GeoCoordinateListener
+maker.FogCommandChannel;%0Aimport com.ociweb.iot.maker.FogRuntime
 ;%0A%0Ap
@@ -330,16 +330,17 @@
 Listener
+ 
 %7B%0A%09priva

update from testing