Download - Event Use Cases: Location-based Services
![Page 1: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/1.jpg)
Event Use Cases:Location-based ServicesLogistics, Airspace Management and Consumer Telecoms
Dr John BatesFounder & Vice President, Apama
Mark PalmerGeneral Manager & Vice President, Apama
David SwanDirector of Engineering, Apama
![Page 2: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/2.jpg)
2
Spatial Event-based Systems
Events with spatial properties becoming more prevalent due to increasing sensor capture:• GPS + wireless• Specialized location devices• Fine-grained RFID• Sensing external systems, e.g. radar
Principles of spatial event applications• Track multiple (moving) objects• Monitor “zones” around each object• Take actions when specific zones intersect
![Page 3: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/3.jpg)
3
Apama Use Cases
Military/Government• Digital Battlespace
• Airspace Monitoring Logistics
• Truck and Cargo Monitoring
Transportation• Train network monitoring
• Airline baggage tracking
Telecommunications• Location-based services, e.g. Dating, Couponing
![Page 4: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/4.jpg)
4
• Warn any squad commander if any of his men come within ½ km of a mine field
Apama
time
Men Locations
Minefield
Locations
Digital Battlespace
![Page 5: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/5.jpg)
5
Anticipitory Flight OperationsMonitor, analyze air space conflicts and detect course anomalies
Act: 1. Suggest plane re-route2. Alert the authorities as a
precaution
Monitor: Check vertical & horizontal separation by constantly monitoring flight position event streams
Analyze:1. Analyze alternative flight paths2. Is plane deviating from its specified course?3. Is plane’s trajectory changing towards a listed high
risk zone?
![Page 6: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/6.jpg)
6
Event System Enhancements
Support Cartesian coordinate system Add Location type
• Encapsulate spatial container (X1,Y1,X2,Y2) or (X1,Y1,Z1,X2,Y2,Z2)
• Provide operations and behaviour, e.g.– Intersection– Within
event MovingObject {
string name;
location loc;
}MovingObject (‘Plane 1’,
30.12,23.67,41.96,
32.23,25.45,43.34);
![Page 7: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/7.jpg)
7
Example Event Language Snippet
event MovingObject { // The event definition
string name;
location loc;
}
Monitor CollisionDetector { // The main monitor
MovingObject mo, co; // Store the latest events for
// “Plane 1” and any nearby objects
action onload {
// Look for all updates of “Plane 1” followed by an update from an // an object that is within 2.0 Meters and take an action. However, // if an update is from “Plane 1” do not take an action and stop // using “Plane 1’s” old position. Restart with the new location.
on all MovingObject (name = ‘Plane 1’):mo {
on all MovingObject (loc = mo.loc.expand(2.0)):co and not MovingObject (name = ‘Plane 1’) {
// Take whatever action necessary
print co.name + “ is near “ + mo.name;
}
}
![Page 8: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/8.jpg)
8
Example 2 – Monitor ALL objects
event MovingObject { // The event definition
string name;
location loc;
}
Monitor CollisionDetector { // The main monitor
MovingObject mo, co; // Store the latest events for
action onload {
// Look for all updates of any object followed by a second update of // an object that is within 2.0 Meters and take an action. However, // if the second update is from the same object do not take an // action and stop using the old position of the first object; // instead restart with the new location.
on all MovingObject ():mo {
on all MovingObject (loc = mo.loc.expand(2.0)):co and not MovingObject (name = mo.name) {
// Take whatever action necessary
print co.name + “ is near “ + mo.name;
}
}
![Page 9: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/9.jpg)
9
Logistics
Show me the locations of all trucks
Show me any trucks behind schedule by greater than 15 minutes
Show me any trucks that have perishable cargo that are > 1 hour behind schedule and temperature is > 30 degrees
![Page 10: Event Use Cases: Location-based Services](https://reader035.vdocument.in/reader035/viewer/2022081519/56813d5e550346895da72886/html5/thumbnails/10.jpg)
10
Telco – Location Aware Services
Location Aware Couponing
• match participants with the location & services offered by retail outlets Location Aware Matching (“Buddy Finder”, “Dating”)
• match the location and profiles of all participants