event use cases: location-based services logistics, airspace management and consumer telecoms dr...

10
Event Use Cases: Location-based Services Logistics, Airspace Management and Consumer Telecoms Dr John Bates Founder & Vice President, Apama Mark Palmer General Manager & Vice President, Apama David Swan Director of Engineering, Apama

Upload: lora-hunt

Post on 03-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

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

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

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

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

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?

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);

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;

}

}

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;

}

}

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

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