From cec1e1393e7317f264367106ef59e9d90042dd93 Mon Sep 17 00:00:00 2001 From: Gathika94 Date: Wed, 22 Nov 2017 23:34:08 +0530 Subject: [PATCH] removed unnecessary files --- .../html_templates/modal/exit_alert.html | 47 ---- .../html_templates/modal/proximity_alert.html | 95 -------- .../html_templates/modal/speed_alert.html | 49 ----- .../modal/stationery_alert.html | 80 ------- .../html_templates/modal/traffic_point.html | 104 --------- .../html_templates/modal/within_alert.html | 47 ---- .../html_templates/view_fence_popup.html | 52 ----- .../Geo-ExecutionPlan-Exit_alert.siddhiql | 20 -- ...Geo-ExecutionPlan-Proximity_alert.siddhiql | 140 ------------ .../Geo-ExecutionPlan-Speed_alert.siddhiql | 20 -- ...eo-ExecutionPlan-Stationery_alert.siddhiql | 89 -------- .../Geo-ExecutionPlan-Traffic_alert.siddhiql | 17 -- .../Geo-ExecutionPlan-Within_alert.siddhiql | 20 -- .../public/css/d3/c3.css | 203 ------------------ 14 files changed, 983 deletions(-) delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/exit_alert.html delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/proximity_alert.html delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/speed_alert.html delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/stationery_alert.html delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/traffic_point.html delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/within_alert.html delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/view_fence_popup.html delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Exit_alert.siddhiql delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Proximity_alert.siddhiql delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Speed_alert.siddhiql delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Stationery_alert.siddhiql delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Traffic_alert.siddhiql delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Within_alert.siddhiql delete mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/css/d3/c3.css diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/exit_alert.html b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/exit_alert.html deleted file mode 100644 index 801fd95393..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/exit_alert.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/proximity_alert.html b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/proximity_alert.html deleted file mode 100644 index 1270b8d71e..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/proximity_alert.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/speed_alert.html b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/speed_alert.html deleted file mode 100644 index 308f036c9a..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/speed_alert.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/stationery_alert.html b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/stationery_alert.html deleted file mode 100644 index 8275e657b8..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/modal/stationery_alert.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/view_fence_popup.html b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/view_fence_popup.html deleted file mode 100644 index 671ae1bb3f..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/assets/html_templates/view_fence_popup.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - -
-

-
-
- - -
-
-
-
-

-
-
- - -
-
-
-
-

-
-
-
Stationery time(Seconds)N/A
- - -
-
-
- - \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Exit_alert.siddhiql b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Exit_alert.siddhiql deleted file mode 100644 index 53902ccfe5..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Exit_alert.siddhiql +++ /dev/null @@ -1,20 +0,0 @@ -/* Enter a unique ExecutionPlan */ -@Plan:name('$executionPlanName') - -/* Enter a unique description for ExecutionPlan */ --- @Plan:description('ExecutionPlan') - -/* define streams/tables and write queries here ... */ - -@Import('org.wso2.geo.StandardSpatialEvents:1.0.0') -define stream dataIn (id string, latitude double, longitude double, timeStamp long, type string ,speed float, heading float, eventId string); - -@Export('org.wso2.geo.ProcessedSpatialEvents:1.0.0') -define stream dataOut (id string, latitude double, longitude double, timeStamp long, type string ,speed float, heading float, eventId string, state string, information string); - -from dataIn[geo:within(longitude,latitude,"$geoFenceGeoJSON")==false and id == "$deviceId"]#geodashboard:subscribe() -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "ALERTED" as state, "This device is in $areaName restricted area!!!" as information -insert into dataOut; -from dataIn[geo:within(longitude,latitude,"$geoFenceGeoJSON")!=false and id == "$deviceId"] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "NORMAL" as state, "" as information -insert into dataOut; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Proximity_alert.siddhiql b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Proximity_alert.siddhiql deleted file mode 100644 index fb64720391..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Proximity_alert.siddhiql +++ /dev/null @@ -1,140 +0,0 @@ -/* Enter a unique ExecutionPlan */ -@Plan:name('Geo-ExecutionPlan-Proximity_alert') - -/* Enter a unique description for ExecutionPlan */ --- @Plan:description('ExecutionPlan') - -/* define streams/tables and write queries here ... */ - -@Import('org.wso2.geo.StandardSpatialEvents:1.0.0') -define stream dataIn (id string, latitude double, longitude double, timeStamp long, type string, speed float, heading float, eventId string ); - -@Export('org.wso2.geo.ProcessedSpatialEvents:1.0.0') -define stream dataOut ( id string, latitude double, longitude double, timeStamp long, type string, speed float, heading float, eventId string, state string, information string ); - -@IndexBy('id') -define table ProximityTable(id string, timeStamp long); - -@IndexBy('id') -define table AlertsTable(id string , proximityWith string, eventId string); - -from dataIn#geodashboard:subscribe() -select id, latitude, longitude, timeStamp, type, speed, heading, eventId -insert into initialStream; - -from initialStream[type == 'STOP'] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "" as proximityInfo ,"false" as isProximity -insert into dataOutStream; - -from initialStream[type != 'STOP'] -select * -insert into objectInitialStream; - -from objectInitialStream#geo:proximity(id,longitude,latitude, $proximityDistance) -select id, latitude, longitude, timeStamp, type, speed, heading, eventId,inCloseProximity,proximityWith -insert into proxymityStream; - -from proxymityStream[AlertsTable.id == proxymityStream.id in AlertsTable] -select id, latitude, longitude, timeStamp, type, speed, heading, eventId,inCloseProximity,proximityWith,true as inAlertTable -insert into innerStreamOne; - -from proxymityStream[not(AlertsTable.id == proxymityStream.id in AlertsTable)] -select id, latitude, longitude, timeStamp, type, speed, heading, eventId,inCloseProximity,proximityWith,false as inAlertTable -insert into innerStreamOne; - -from proxymityStream[AlertsTable.id == proxymityStream.proximityWith in AlertsTable] -select id, latitude, longitude, timeStamp, type, speed, heading, eventId,inCloseProximity,proximityWith,true as inAlertTable -insert into innerStreamSeven; - -from proxymityStream[not(AlertsTable.id == proxymityStream.proximityWith in AlertsTable)] -select id, latitude, longitude, timeStamp, type, speed, heading, eventId,inCloseProximity,proximityWith,false as inAlertTable -insert into innerStreamSeven; - -from innerStreamOne[inCloseProximity == true AND not(inAlertTable)] -select id,str:concat(",",proximityWith) as proximityWith , eventId -insert into AlertsTable; - -from innerStreamSeven[inCloseProximity == true AND not(inAlertTable)] -select proximityWith as id,str:concat(",",id) as proximityWith , eventId -insert into AlertsTable; - -from innerStreamOne[innerStreamOne.inCloseProximity == true AND inAlertTable]#window.length(0) join AlertsTable -on innerStreamOne.id == AlertsTable.id -select innerStreamOne.id as id, str:concat(",", innerStreamOne.proximityWith, AlertsTable.proximityWith) as proximityWith, innerStreamOne.eventId as eventId -insert into updateStream; - -from innerStreamSeven[innerStreamSeven.inCloseProximity == true AND inAlertTable]#window.length(0) join AlertsTable -on innerStreamSeven.proximityWith == AlertsTable.id -select innerStreamSeven.proximityWith as id, str:concat(",", innerStreamSeven.id, AlertsTable.proximityWith) as proximityWith, innerStreamSeven.eventId as eventId -insert into updateStream; - -from innerStreamOne[innerStreamOne.inCloseProximity == false AND inAlertTable]#window.length(0) join AlertsTable -on innerStreamOne.id == AlertsTable.id -select innerStreamOne.id as id, str:replaceAll(AlertsTable.proximityWith, str:concat(",", innerStreamOne.proximityWith), "") as proximityWith, innerStreamOne.eventId as eventId -insert into updateStream; - -from innerStreamSeven[innerStreamSeven.inCloseProximity == false AND inAlertTable]#window.length(0) join AlertsTable -on innerStreamSeven.proximityWith == AlertsTable.id -select innerStreamSeven.proximityWith as id, str:replaceAll(AlertsTable.proximityWith, str:concat(",", innerStreamSeven.id), "") as proximityWith, innerStreamSeven.eventId as eventId -insert into updateStream; - -from updateStream -select * -update AlertsTable - on id== AlertsTable.id; - -from updateStream[proximityWith == ""] -delete AlertsTable - on id== AlertsTable.id; - -from objectInitialStream[AlertsTable.id == objectInitialStream.id in AlertsTable] -select id, latitude, longitude, timeStamp, type, speed, heading, eventId, true as inAlertTable -insert into publishStream; - -from objectInitialStream[not(AlertsTable.id == objectInitialStream.id in AlertsTable)] -select id, latitude, longitude, timeStamp, type, speed, heading, eventId, false as inAlertTable -insert into publishStream; - -from publishStream[inAlertTable == true]#window.length(0) join AlertsTable -on publishStream.id== AlertsTable.id -select publishStream.id as id, publishStream.latitude as latitude, publishStream.longitude as longitude, publishStream.timeStamp as timeStamp, publishStream.type as type, publishStream.speed as speed, publishStream.heading as heading, publishStream.eventId as eventId, AlertsTable.proximityWith as proximityInfo -insert into innerStreamTwo; - -from publishStream[inAlertTable == false] -delete ProximityTable on ProximityTable.id==id; - -from publishStream[inAlertTable == false] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "" as proximityInfo ,"false" as isProximity -insert into dataOutStream; - -from innerStreamTwo[ProximityTable.id == innerStreamTwo.id in ProximityTable] -insert into innerStreamThree; - -from innerStreamThree#window.length(0) join ProximityTable -on innerStreamThree.id == ProximityTable.id -select innerStreamThree.id , innerStreamThree.latitude, innerStreamThree.longitude,innerStreamThree.timeStamp, innerStreamThree.type, innerStreamThree.speed, innerStreamThree.heading ,innerStreamThree.eventId, ProximityTable.timeStamp as storedTime, innerStreamThree.proximityInfo as proximityInfo -insert into innerStreamFour; - -from innerStreamFour[(timeStamp - storedTime) >= $proximityTime] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId ,proximityInfo,"true" as isProximity -insert into dataOutStream; - -from innerStreamFour[(timeStamp - storedTime) < $proximityTime] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , proximityInfo ,"false" as isProximity -insert into dataOutStream; - -from innerStreamTwo[not(ProximityTable.id == innerStreamTwo.id in ProximityTable)] -select innerStreamTwo.id, innerStreamTwo.timeStamp -insert into ProximityTable; - -from innerStreamTwo[not(ProximityTable.id == innerStreamTwo.id in ProximityTable)] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "" as proximityInfo ,"false" as isProximity -insert into dataOutStream; - -from dataOutStream[isProximity == 'true'] -select id, latitude, longitude, timeStamp, type, speed, heading, eventId,"WARNING" as state,str:concat("Proximity with "," ",proximityInfo) as information -insert into dataOut; - -from dataOutStream[isProximity == 'false'] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId ,"NORMAL" as state,"" as information -insert into dataOut; \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Speed_alert.siddhiql b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Speed_alert.siddhiql deleted file mode 100644 index 65dad468d5..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Speed_alert.siddhiql +++ /dev/null @@ -1,20 +0,0 @@ -/* Enter a unique ExecutionPlan */ -@Plan:name('Geo-ExecutionPlan-Speed---$deviceId_alert') - -/* Enter a unique description for ExecutionPlan */ --- @Plan:description('ExecutionPlan') - -/* define streams/tables and write queries here ... */ - -@Import('org.wso2.geo.StandardSpatialEvents:1.0.0') -define stream dataIn (id string, latitude double, longitude double, timeStamp long, type string, speed float, heading float, eventId string); - -@Export('org.wso2.geo.ProcessedSpatialEvents:1.0.0') -define stream dataOut (id string, latitude double, longitude double, timeStamp long, type string, speed float, heading float, eventId string, state string, information string); - -from dataIn[speed >= $speedAlertValue and id == "$deviceId"]#geodashboard:subscribe() -select id , latitude, longitude,timeStamp, type ,speed, heading ,eventId , "ALERTED" as state, "This device movement is not normal!!" as information -insert into dataOut; -from dataIn[speed < $speedAlertValue and id == "$deviceId"] -select id , latitude, longitude,timeStamp, type ,speed, heading ,eventId , "NORMAL" as state, "This device movement is normal" as information -insert into dataOut; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Stationery_alert.siddhiql b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Stationery_alert.siddhiql deleted file mode 100644 index 46bfbfe2e3..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Stationery_alert.siddhiql +++ /dev/null @@ -1,89 +0,0 @@ -/* Enter a unique ExecutionPlan */ -@Plan:name('$executionPlanName') - -/* Enter a unique description for ExecutionPlan */ --- @Plan:description('ExecutionPlan') - -/* define streams/tables and write queries here ... */ - -@Import('org.wso2.geo.StandardSpatialEvents:1.0.0') -define stream dataIn (id string, latitude double, longitude double, timeStamp long, type string ,speed float, heading float, eventId string); - - -@Export('org.wso2.geo.ProcessedSpatialEvents:1.0.0') -define stream dataOut (id string, latitude double, longitude double, timeStamp long, type string ,speed float, heading float, eventId string, state string, information string); - -@IndexBy('id') -define table StationeryTable(id string, timeStamp long); - -@IndexBy('id') -define table AlertsTable(id string, stationary bool); - -from dataIn#geodashboard:subscribe() -select id, latitude, longitude, timeStamp, type, speed, heading, eventId,geo:within(longitude,latitude,"$geoFenceGeoJSON") as isWithin -insert into innerStreamOne; - -from innerStreamOne[isWithin == false] -delete StationeryTable on StationeryTable.id==id; - -from innerStreamOne[isWithin == false] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "false" as isStationary -insert into dataOutStream; - -from innerStreamOne[isWithin == true]#geo:stationary(id,longitude,latitude, $fluctuationRadius) -select id, latitude, longitude, timeStamp, type, speed, heading, eventId,stationary -insert into innerStreamTwo; - -from innerStreamTwo[innerStreamTwo.stationary == true] -select innerStreamTwo.id, innerStreamTwo.stationary -insert into AlertsTable; - -from innerStreamTwo[innerStreamTwo.stationary == false] -delete AlertsTable on AlertsTable.id==id; - -from innerStreamTwo[innerStreamTwo.stationary == false] -delete StationeryTable on StationeryTable.id==id; - -from innerStreamOne[isWithin == true AND not(AlertsTable.id == innerStreamOne.id in AlertsTable)] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "false" as isStationary -insert into dataOutStream; - -from innerStreamOne[isWithin == true AND AlertsTable.id == innerStreamOne.id in AlertsTable] -insert into innerStreamThree; - -from innerStreamThree#window.length(0) join AlertsTable -on innerStreamThree.id == AlertsTable.id -select innerStreamThree.id , innerStreamThree.latitude, innerStreamThree.longitude,innerStreamThree.timeStamp, innerStreamThree.type, innerStreamThree.speed, innerStreamThree.heading ,innerStreamThree.eventId -insert into innerStreamFour; - -from innerStreamFour[not(StationeryTable.id == innerStreamFour.id in StationeryTable)] -select innerStreamFour.id, innerStreamFour.timeStamp -insert into StationeryTable; - -from innerStreamOne[isWithin == true AND not(StationeryTable.id == innerStreamOne.id in StationeryTable)] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "false" as isStationary -insert into dataOutStream; - -from innerStreamOne[isWithin == true AND StationeryTable.id == innerStreamOne.id in StationeryTable] -insert into innerStreamFive; - -from innerStreamFive#window.length(0) join StationeryTable -on innerStreamFive.id == StationeryTable.id -select innerStreamFive.id , innerStreamFive.latitude, innerStreamFive.longitude,innerStreamFive.timeStamp, innerStreamFive.type, innerStreamFive.speed, innerStreamFive.heading ,innerStreamFive.eventId, StationeryTable.timeStamp as storedTime -insert into innerStreamSix; - -from innerStreamSix[(timeStamp - storedTime) >= $stationeryTime] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId ,"true" as isStationary -insert into dataOutStream; - -from innerStreamSix[(timeStamp - storedTime) < $stationeryTime] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId ,"false" as isStationary -insert into dataOutStream; - -from dataOutStream[isStationary == 'true'] -select id ,latitude, longitude,timeStamp, type, speed, heading ,eventId ,"ALERTED" as state, "This device is in $stationeryName area!!!" as information -insert into dataOut; - -from dataOutStream[isStationary == 'false'] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId ,"NORMAL" as state,"" as information -insert into dataOut; \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Traffic_alert.siddhiql b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Traffic_alert.siddhiql deleted file mode 100644 index 5e6bb5b1a8..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Traffic_alert.siddhiql +++ /dev/null @@ -1,17 +0,0 @@ -/* Enter a unique ExecutionPlan */ -@Plan:name('$executionPlanName') - -/* Enter a unique description for ExecutionPlan */ --- @Plan:description('ExecutionPlan') - -/* define streams/tables and write queries here ... */ - -@Import('rawGeoStream:1.0.0') -define stream dataIn (id string, timeStamp long, geometry string, state string, information string); - -@Export('AlertsNotifications:1.0.0') -define stream dataOut (id string, state string, information string, timeStamp long, latitude double, longitude double); - -from dataIn[geo:intersects(geometry, "$geoFenceGeoJSON")==true and geodashboard:needToNotify(id, str:concat(information, state), "sendFirst") == true and id == $deviceId] -select id, state, str:concat("Traffic alert in $areaName. State: ", state, " ", information) as information, timeStamp, 0.0 as latitude, 0.0 as longitude -insert into dataOut \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Within_alert.siddhiql b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Within_alert.siddhiql deleted file mode 100644 index b58fd59e33..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/conf/alerts/Geo-ExecutionPlan-Within_alert.siddhiql +++ /dev/null @@ -1,20 +0,0 @@ -/* Enter a unique ExecutionPlan */ -@Plan:name('$executionPlanName') - -/* Enter a unique description for ExecutionPlan */ --- @Plan:description('ExecutionPlan') - -/* define streams/tables and write queries here ... */ - -@Import('org.wso2.geo.StandardSpatialEvents:1.0.0') -define stream dataIn (id string, latitude double, longitude double, timeStamp long, type string ,speed float, heading float, eventId string); - -@Export('org.wso2.geo.ProcessedSpatialEvents:1.0.0') -define stream dataOut (id string, latitude double, longitude double, timeStamp long, type string ,speed float, heading float, eventId string, state string, information string); - -from dataIn[geo:within(longitude,latitude,"$geoFenceGeoJSON")==true and id == "$deviceId"]#geodashboard:subscribe() -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "ALERTED" as state, "This device is in $areaName restricted area!!!" as information -insert into dataOut; -from dataIn[geo:within(longitude,latitude,"$geoFenceGeoJSON")!=true and id == "$deviceId"] -select id , latitude, longitude,timeStamp, type, speed, heading ,eventId , "NORMAL" as state, "" as information -insert into dataOut; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/css/d3/c3.css b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/css/d3/c3.css deleted file mode 100644 index 568648f5e7..0000000000 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-devices/public/css/d3/c3.css +++ /dev/null @@ -1,203 +0,0 @@ -/*-- Chart --*/ - -.c3 svg { - font: 10px sans-serif; -} -.c3 path, .c3 line { - fill: none; - stroke: #000; -} -.c3 text { - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; -} - -.c3-legend-item-tile, -.c3-xgrid-focus, -.c3-ygrid, -.c3-event-rect, -.c3-bars path { - shape-rendering: crispEdges; -} - -.c3-chart-arc path { - stroke: #fff; - -} -.c3-chart-arc text { - fill: #fff; - font-size: 13px; -} - -/*-- Axis --*/ - -.c3-axis-x .tick { -} -.c3-axis-x-label { -} - -.c3-axis-y .tick { -} -.c3-axis-y-label { -} - -.c3-axis-y2 .tick { -} -.c3-axis-y2-label { -} - -/*-- Grid --*/ - -.c3-grid line { - stroke: #aaa; -} -.c3-grid text { - fill: #aaa; -} -.c3-xgrid, .c3-ygrid { - stroke-dasharray: 3 3; -} -.c3-xgrid-focus { -} - -/*-- Text on Chart --*/ - -.c3-text { -} - -.c3-text.c3-empty { - fill: #808080; - font-size: 2em; -} - -/*-- Line --*/ - -.c3-line { - stroke-width: 1px; -} -/*-- Point --*/ - -.c3-circle._expanded_ { - stroke-width: 1px; - stroke: white; -} -.c3-selected-circle { - fill: white; - stroke-width: 2px; -} - -/*-- Bar --*/ - -.c3-bar { - stroke-width: 0; -} -.c3-bar._expanded_ { - fill-opacity: 0.75; -} - -/*-- Arc --*/ - -.c3-chart-arcs-title { - font-size: 1.3em; -} - -/*-- Focus --*/ - -.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step { - stroke-width: 2px; -} - -/*-- Region --*/ - -.c3-region { - fill: steelblue; - fill-opacity: .1; -} - -/*-- Brush --*/ - -.c3-brush .extent { - fill-opacity: .1; -} - -/*-- Select - Drag --*/ - -.c3-dragarea { -} - -/*-- Legend --*/ - -.c3-legend-item { - font-size: 12px; -} - -.c3-legend-background { - opacity: 0.75; - fill: white; - stroke: lightgray; - stroke-width: 1 -} - -/*-- Tooltip --*/ - -.c3-tooltip { - border-collapse:collapse; - border-spacing:0; - background-color:#fff; - empty-cells:show; - -webkit-box-shadow: 7px 7px 12px -9px rgb(119,119,119); - -moz-box-shadow: 7px 7px 12px -9px rgb(119,119,119); - box-shadow: 7px 7px 12px -9px rgb(119,119,119); - opacity: 0.9; -} -.c3-tooltip tr { - border:1px solid #CCC; -} -.c3-tooltip th { - background-color: #aaa; - font-size:14px; - padding:2px 5px; - text-align:left; - color:#FFF; -} -.c3-tooltip td { - font-size:13px; - padding: 3px 6px; - background-color:#fff; - border-left:1px dotted #999; -} -.c3-tooltip td > span { - display: inline-block; - width: 10px; - height: 10px; - margin-right: 6px; -} -.c3-tooltip td.value{ - text-align: right; -} - -.c3-area { - stroke-width: 0; - opacity: 0.2; -} - -.c3-chart-arcs .c3-chart-arcs-background { - fill: #e0e0e0; - stroke: none; -} -.c3-chart-arcs .c3-chart-arcs-gauge-unit { - fill: #000; - font-size: 16px; -} -.c3-chart-arcs .c3-chart-arcs-gauge-max { - fill: #777; -} -.c3-chart-arcs .c3-chart-arcs-gauge-min { - fill: #777; -} - -.c3-chart-arc .c3-gauge-value { - fill: #000; - font-size: 28px; -}