JSR 363 
The Answer to Life Science and the 
Internet of Everything 
Based on Images
Overview 
• Introduction 
• Prior Efforts 
• OSGi Measurement 
• JCP (JSR-108, JSR-256, JSR-275) 
• Eclipse UOMo 
• Units 
• Other Bundles (UCUM, Business) 
• JSR-363 
• IoT 
• Smart Home 
• QS, Wearable 
• Demo 
•Q&A 
2 © 2007-2014 Creative Arts & Technologies
Who am I? 
Werner Keil 
• Consultant – Coach 
• Creative Cosmopolitan 
• Open Source Evangelist 
• Software Architect 
• JCP EC Member 
• Eclipse UOMo Project Lead 
• JSR-363 Co Spec Lead 
• DevOps Guy … 
Email werner@catmedia.us 
3 © 2012-2014 Creative Arts & Technologies 
Twitter @wernerkeil
Type-Safety 
• Java does not have strongly typed base types 
(like e.g. Ada or Smalltalk). 
• This could change around Java 9 to 11 
(based on Oracle Road Map so far, e.g. Project Valhalla) 
• For performance reasons most developer prefer 
primitive types over objects in their interface. 
• Primitive type arguments can more easily lead to 
name clashes (methods with the same signature) 
or other problems (“Auto-Boxing”,…) 
4 © 2007-2014 Creative Arts & Technologies
What do these disasters have in 
common? 
• Patriot Missile 
The cause was an inaccurate calculation of the time since boot due to a 
computer arithmetic error. 
• Ariane 5 Explosion 
Floating point number which a value was converted from had a value 
greater than what would be represented by a 16 bit signed integer. 
• Gimli Glider (near disaster) 
Fuel loading was miscalculated through misunderstanding of the recently 
adopted Metric System, replacing the Imperial System in Canada 
5 © 2007-2014 Creative Arts & Technologies
1983 | Gimli Glider 
6 © 2007-2014 Creative Arts & Technologies Fotos: Wayne Glowacki | Wikia „Herr der Ringe“
NASA “Star Wars” Initiative, 1983 
23rd March 1983. Ronald Reagan 
announces SDI (or “Star Wars”): ground-based 
and space-based systems to 
protect the US from attack by strategic 
nuclear ballistic missiles. 
7 © 2007-2014 Creative Arts & Technologies
1985 
Mirror on underside of 
shuttle 
SDI Experiment: 
The Plan 
Big mountain in Hawaii 
8 © 2007-2014 Creative Arts & Technologies
1985 
SDI Experiment: 
What really 
happened 
9 © 2007-2014 Creative Arts & Technologies
1985 | Why it happened? 
10 © 2007-2014 Creative Arts & Technologies
1999 | Mars Climate Orbiter 
11 © 2007-2014 Creative Arts & Technologies
1999 | Mars Climate Orbiter (2) 
• Mars Orbiter 
Preliminary findings indicate that one team used US/English units 
(e.g. inches, feet and pounds) while the other used metric units for 
a key spacecraft operation. 
• NASA lost a $125 million Mars orbiter because a Lockheed Martin engineering team 
used English units of measurement while the agency's team used the more 
conventional metric system for a key spacecraft operation 
• A credible source disclosed, there was a manual step with an outsourced person to 
convert these calculations between the different teams, and NASA budget cuts caused 
them to fire him and have the wrong, unpatched data transmitted!!! 
• This also underlines the added risk when 3rd party contractors are involved or projects 
are developed Offshore 
12 © 2007-2014 Creative Arts & Technologies
Unit Tests wouldn‘t find these… 
Despite their name 
• All previous examples illustrate three categories of 
errors difficult to find through Unit Testing: 
• Interface Errors (e.g. millisecond/second, radian/degree, meters/feet). 
• Arithmetic Errors (e.g. overflow). 
• Conversion Errors. 
13 © 2007-2014 Creative Arts & Technologies Images based on © Copyright 2005, Touchstone Pictures
Causes of Conversion Errors 
• Ambiguity on the unit 
• Gallon Dry / Gallon Liquid - Gallon US / Gallon UK 
• Day Sidereal / Day Calendar 
• Foot in various regions, at least historically, see: 
http://en.wikipedia.org/wiki/German_obsolete_units_of_measurement#Fu.C3. 
9F_.28foot.29 
• Degree Celsius / Degree Fahrenheit 
• … 
• Wrong conversion factors: 
static final double PIXEL_TO_INCH = 1 / 72; 
double pixels = inches * PIXEL_TO_INCH 
14 © 2007-2013 Creative Arts & Technologies
What else do they have in common? 
ALL OF THEM HAPPENED IN 
MOBILE, REAL TIME OR EMBEDDED 
SYSTEMS! 
15 © 2007-2014 Creative Arts & Technologies
OSGi 
Measurement Package 
• Namespace: org.osgi.util.measurement 
• SI only Unit API “in the closet” 
• Unit 
Essentially an SI singleton holding relevant unit constants, too. 
• Measurement 
Represents a value with an error, a unit and a time-stamp. 
• State 
Groups a state name, value and timestamp. 
• Some usage, e.g. by Automotive 
► no further development by OSGi 
16 © 2007-2013 Creative Arts & Technologies
JSR-108 
Units Specification 
• Namespace: javax.units.* 
• Only one interface and one abstract class 
• public class Dimension 
• public class Quantity 
• public class Unit<Q extends Quantity> 
• Withdrawn by the Expert Group 
17 © 2007-2012 Creative Arts & Technologies
JSR-256 
Mobile Sensor API 
• Namespace: javax.microediton.sensor* 
• Focusing on Sensors, but it got a minimalistic Unit API “in the 
closet” 
• Unit 
Essentially an SI singleton holding relevant unit constants, too. 
JavaDoc: http://pandora.la/java/javadocs/sensor/javax/microedition/sensor/Unit.html 
• MeasurementRange 
Range of possible values from minimum to maximum 
• ChannelInfo 
Holding name, accuracy, data type,measurement ranges, scale and unit 
► Dead Meat (few actual handsets and no vendors 
except Nokia still use it, nor does Java ME Embedded) 
18 © 2007-2013 Creative Arts & Technologies
JSR-275 
Units Specification 
• Namespace: javax.measure.* 
• Only one interface and one abstract class 
• public interface Measurable<Q extends Quantity> 
• public abstract class Measure<V, Q extends Quantity> 
• Three sub-packages 
• quantity (holds dimensions mass, length) 
• unit (holds SI and NonSI units) 
• converter (holds unit converters) 
19 © 2007-2014 Creative Arts & Technologies
JSR-275 
Users and popular Downstream Projects 
• JScience 
• Groovy/Grails (DSLs e.g. for Healthcare, Unit Conversion,…) 
• GeoAPI (OGC standard) and implementations, e.g. uDig 
• Orbitz/Ebookers.com 
• IEM (Emergency Management, Homeland Security) 
• OpenEHR 
• Parfait (Java Monitoring, part of Performance Co-Pilot - PCP) 
► Rejected only by EC not Community 
20 © 2007-2014 Creative Arts & Technologies, V2COM
JSR-275 | LocationTech 
• uDig is a desktop 
application 
framework, 
built with Eclipse 
Rich Client (RCP) 
• Internet: supporting 
standards (WMS, WFS, 
WCS, KML) … 
• GIS: framework for 
spatial data exploration 
and analysis 
• Based on JSR-275 
http://locationtech.org/projects/technology.udig 
21 © 2007-2014 Creative Arts & Technologies, Eclipse Foundation, Inc. Made available under the Eclipse Public License 1.0
The King is Dead… 
Units of Measurement API 
• Namespace: org.unitsofmeasurement.* 
• Only interfaces (and exception classes) 
• public interface Quantity<Q extends Quantity<Q>> 
• public interface Unit<Q extends Quantity<Q>> 
• Three sub-packages 
• quantity (holds dimensions mass, length,...) 
• unit (holds units) 
• service (holds services) 
22 © 2007-2014 Creative Arts & Technologies 
Walking
Eclipse UOMo 
One Small Step…
Eclipse UOMo 
One Unit Framework to Measure them All 
• Namespace: org.eclipse.uomo.* 
•Two main areas 
• Static Type Safe Units of Measure Support 
• Based on Units of Measurement API 
• On top of ICU4J, the Globalization standard at Eclipse and 
others (Android, GWT, Google Financial, etc.) 
• Prime UCUM Implementation 
• Successor to Eclipse OHF UCUM Bundle 
24 © 2007-2014 Creative Arts & Technologies
UOMo UCUM 
Unified Code for Units of Measure 
The Unified Code for Units of Measure is inspired by 
and heavily based on 
• ISO 2955-1983 
• ANSI X3.50-1986 
• HL7's extensions called ISO+ 
25 © 2007-2014 Creative Arts & Technologies
UOMo Business 
JSR 354 Implementation 
“Sisu” equivalent for 354 if you want 
• ICU4J based implementation 
of types like 
• CurrencyUnit 
• MonetaryAmount 
• CurrencyConversion 
• ExchangeRate 
• … 
• Bridge to Unit-API where possible for cross-quantity arithmetic 
(e.g. “$ per gram CO² per mile”) 
26 © 2007-2014 Creative Arts & Technologies
JSR-363 
Units of Measurement API (1.0) 
• Namespace: javax.measure.* 
• Only Interfaces and Base Exceptions 
• public interface Dimension 
• public interface Measurement<Q extends Quantity<Q>, V> 
• public interface Quantity<Q extends Quantity<Q>> extends 
Measurement<Q, Number> 
• public interface Unit<Q extends Quantity<Q>> 
• A “functional” Sub-package 
• function (contains functional interfaces, especially for Java 8 Lambdas) 
27 © 2007-2014 Creative Arts & Technologies
JSR-363 
Units of Measurement API (1.0) 
• All other packages are OPTIONAL 
• format (contains Formatters und Parser) 
• quantity (contains dimensions like Mass, Length,...) 
• spi (contains Service Provider Interface) 
28 © 2007-2014 Creative Arts & Technologies
Internet of Things 
Transportation & Logistics 
29 © 2007-2014 Creative Arts & Technologies | Eclipse Foundation, Inc. Made available under the Eclipse Public License 1.0, 
Logistics 
Medical & 
Healthcare 
Industrial & 
Energy 
Communication 
Infrastructure 
Security & Surveillance 
Internet 
of Things 
Some IoT Use Cases
IoT | Health Use Cases 
Medical Services Gateway 
Internet 
of Things 
Communication 
Infrastructure 
Smart 
Pill 
Boxes 
Near field 
Heartbeat 
Sensor 
Weight 
Scales 
Blood 
Pressure 
Medical 
Smart 
Services 
Gateway 
Blood 
Sugar 
30 © 2007-2014 Creative Arts & Technologies | Eclipse Foundation, Inc. Made available under the Eclipse Public License 1.0,
IoT | Smart Home 
31 © 2012-2014 Creative Arts & Technologies Foto: ARD Degeto/NDR/Marc Meyerbroeker
IoT | Smart Home Actual Showcase 
32 © 2012-2014 Creative Arts & Technologies
IoT | Quantified Self 
33 © 2012-2014 Creative Arts & Technologies
Quantified Self 
Smart Watch, Health and Fitness Apps 
34 © 2012-2014 Creative Arts & Technologies Bild: L'Atelier
Quantified Self 
Wearables 
35 © 2012-2014 Creative Arts & Technologies Image: HDWallpaperImages.com
Quantified Self | Heart of Glass 
JavaOne 2013 
•A Heart Monitor remotely 
accessible from devices 
like Google Glass or your 
favorite Mobile Browser 
• Part of Java Embedded 
Challenge at JavaOne 
36 © 2013-2014 Creative Arts & Technologies, V2COM
Quantified Self | Heart of Glass 
Technologies we used 
•Raspberry Pi | Things API 
•RXTX (gnu.io) 
• Polar Heart Sensor 
• Java EE | HTML 5 (Tomcat/Glassfish) 
•Google Glass (preferred) or other Web-enabled 
Mobile devices 
37 © 2013-2014 Creative Arts & Technologies, V2COM 
| Unit-API
Demo
Q & A
Links 
JSR-363 
https://jcp.org/en/jsr/detail?id=363 
Units of Measurement Project 
http://unitsofmeasurement.github.io 
Eclipse – Project UOMo 
http://www.eclipse.org/uomo/ 
My GitHub account 
http://www.github.com/keilw/

More Related Content

PPTX
Physikal - Using Kotlin for Clean Energy - KUG Munich
PPTX
The First IoT JSR: Units of Measurement - DevoXX BE 2015
PPTX
Eclipse Science F2F 2016 - JSR 363
PPTX
Social Media Week 2015 - Quantified Self and the Social Internet of Things
PPTX
Quantified Social und das Internet der Dinge
PPTX
JSR363 - Devoxx US
PPTX
The First IoT JSR: Units of Measurement JSR-363 [BOF5981]
PPTX
How JSR 385 could have Saved the Mars Climate Orbiter - Adopt-a-JSR Day
Physikal - Using Kotlin for Clean Energy - KUG Munich
The First IoT JSR: Units of Measurement - DevoXX BE 2015
Eclipse Science F2F 2016 - JSR 363
Social Media Week 2015 - Quantified Self and the Social Internet of Things
Quantified Social und das Internet der Dinge
JSR363 - Devoxx US
The First IoT JSR: Units of Measurement JSR-363 [BOF5981]
How JSR 385 could have Saved the Mars Climate Orbiter - Adopt-a-JSR Day

Viewers also liked (15)

PPTX
Using Java and Standards for Fast IoT Development [CON5513]
PPTX
The OHF Legacy
PPTX
M4M 2 the Rescue of M2M - Eclipse DemoCamps Kepler 2013
PPTX
M2M, Sensor Web, Observations and Measurements
PPTX
Bitte ein Maß - JSR-363 - Units of Measurement API - IoTDay 2014
PPTX
Standards for the Future of Java Embedded
PDF
Kasauli Trip
PPTX
Potensiometer
PDF
Unleashing the Economic Power of Family Child Care Providers
PPT
Powers Of Ten
PDF
MAKALAH IDE PENGEMBANGAN ELECTRIC METER APP
PPTX
Eclipse DemoCamp Vienna: IoT, M2M für Fitness, Gesundheit und Wissenschaft
ZIP
Unit 3 - Astronomical Numbers
PPTX
IoT Security: Cases and Methods
ODP
M4M 2 the Rescue of M2M (Eclipse DemoCamp Trondheim)
Using Java and Standards for Fast IoT Development [CON5513]
The OHF Legacy
M4M 2 the Rescue of M2M - Eclipse DemoCamps Kepler 2013
M2M, Sensor Web, Observations and Measurements
Bitte ein Maß - JSR-363 - Units of Measurement API - IoTDay 2014
Standards for the Future of Java Embedded
Kasauli Trip
Potensiometer
Unleashing the Economic Power of Family Child Care Providers
Powers Of Ten
MAKALAH IDE PENGEMBANGAN ELECTRIC METER APP
Eclipse DemoCamp Vienna: IoT, M2M für Fitness, Gesundheit und Wissenschaft
Unit 3 - Astronomical Numbers
IoT Security: Cases and Methods
M4M 2 the Rescue of M2M (Eclipse DemoCamp Trondheim)
Ad

Similar to JSR 363 - The Answer to Life Science and the Internet of Everything (20)

PPTX
geecon 2013 - Standards for the Future of Java Embedded
PPTX
M4M 2 the Rescue of M2M - Eclipse DemoCamps Fall 2013
PPTX
The Eclipse M2M IWG and Standards for the Internet of Things
PPTX
Eclipse UOMo
PPTX
Standards for the Future of Java Embedded (16:9)
PPTX
Werner Weil: UCUM - epicenter 2010
PPTX
Mr. Keil Werner - UOMO 2011
PPTX
The Quantified UOMo - Eclipse DemoCamp Trondheim 2015
PPTX
The First IoT JSR: Units of Measurement - JUG Berlin-Brandenburg
PPTX
Data Quality on Mars - ISO 80000 and other Standards - Apache Big Data Europe...
PDF
Java ME API Next
PDF
OSGi: Don't let me be Misunderstood
PDF
Unit testing (eng)
PPTX
Unifi
PDF
OpenJDK Penrose Presentation (JavaOne 2012)
KEY
Tools For Software Engineering
PDF
How JSR-385 Could Have Saved the Mars Climate Orbiter
PDF
OpenStack Extensions
PDF
Free / Open Source EDA Tools
PDF
Geospatial for Java
geecon 2013 - Standards for the Future of Java Embedded
M4M 2 the Rescue of M2M - Eclipse DemoCamps Fall 2013
The Eclipse M2M IWG and Standards for the Internet of Things
Eclipse UOMo
Standards for the Future of Java Embedded (16:9)
Werner Weil: UCUM - epicenter 2010
Mr. Keil Werner - UOMO 2011
The Quantified UOMo - Eclipse DemoCamp Trondheim 2015
The First IoT JSR: Units of Measurement - JUG Berlin-Brandenburg
Data Quality on Mars - ISO 80000 and other Standards - Apache Big Data Europe...
Java ME API Next
OSGi: Don't let me be Misunderstood
Unit testing (eng)
Unifi
OpenJDK Penrose Presentation (JavaOne 2012)
Tools For Software Engineering
How JSR-385 Could Have Saved the Mars Climate Orbiter
OpenStack Extensions
Free / Open Source EDA Tools
Geospatial for Java
Ad

More from Werner Keil (20)

PPTX
Securing eHealth, eGovernment and eBanking with Java - DWX '21
PPTX
OpenDDR and Jakarta MVC - JavaLand 2021
PPTX
How JSR 385 could have Saved the Mars Climate Orbiter - Zurich IoT Day 2021
PPTX
OpenDDR and Jakarta MVC - Java2Days 2020 Virtual
PPTX
NoSQL Endgame - Java2Days 2020 Virtual
PPTX
JCON 2020: Mobile Java Web Applications with MVC and OpenDDR
PPTX
How JSR 385 could have Saved the Mars Climate Orbiter - JFokus 2020
PPTX
Money, Money, Money, can be funny with JSR 354 (Devoxx BE)
PPTX
Money, Money, Money, can be funny with JSR 354 (DWX 2019)
PPTX
NoSQL: The first New Jakarta EE Specification (DWX 2019)
PPTX
JNoSQL: The Definitive Solution for Java and NoSQL Databases
PPTX
Eclipse JNoSQL: The Definitive Solution for Java and NoSQL Databases
PPTX
Physikal - JSR 363 and Kotlin for Clean Energy - Java2Days 2017
PPTX
Performance Monitoring for the Cloud - Java2Days 2017
PPTX
Java2Days - Security for JavaEE and the Cloud
PPTX
Apache DeviceMap - Web-Dev-BBQ Stuttgart
PPTX
JSR 354: Money and Currency API - Short Overview
PPTX
JavaLand: Quantified Social - Fitness-Geräte und -Portale mit Agorava
PPTX
Enterprise 2.0 with Open Source Frameworks like Agorava
PPTX
JSR 375 - Have you seen Java EE Security API lately? - codemotion Tel Aviv 2015
Securing eHealth, eGovernment and eBanking with Java - DWX '21
OpenDDR and Jakarta MVC - JavaLand 2021
How JSR 385 could have Saved the Mars Climate Orbiter - Zurich IoT Day 2021
OpenDDR and Jakarta MVC - Java2Days 2020 Virtual
NoSQL Endgame - Java2Days 2020 Virtual
JCON 2020: Mobile Java Web Applications with MVC and OpenDDR
How JSR 385 could have Saved the Mars Climate Orbiter - JFokus 2020
Money, Money, Money, can be funny with JSR 354 (Devoxx BE)
Money, Money, Money, can be funny with JSR 354 (DWX 2019)
NoSQL: The first New Jakarta EE Specification (DWX 2019)
JNoSQL: The Definitive Solution for Java and NoSQL Databases
Eclipse JNoSQL: The Definitive Solution for Java and NoSQL Databases
Physikal - JSR 363 and Kotlin for Clean Energy - Java2Days 2017
Performance Monitoring for the Cloud - Java2Days 2017
Java2Days - Security for JavaEE and the Cloud
Apache DeviceMap - Web-Dev-BBQ Stuttgart
JSR 354: Money and Currency API - Short Overview
JavaLand: Quantified Social - Fitness-Geräte und -Portale mit Agorava
Enterprise 2.0 with Open Source Frameworks like Agorava
JSR 375 - Have you seen Java EE Security API lately? - codemotion Tel Aviv 2015

Recently uploaded (20)

PDF
Five Habits of High-Impact Board Members
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PPTX
TEXTILE technology diploma scope and career opportunities
PPT
Geologic Time for studying geology for geologist
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
DOCX
search engine optimization ppt fir known well about this
Five Habits of High-Impact Board Members
Custom Battery Pack Design Considerations for Performance and Safety
Chapter 5: Probability Theory and Statistics
Convolutional neural network based encoder-decoder for efficient real-time ob...
sustainability-14-14877-v2.pddhzftheheeeee
A proposed approach for plagiarism detection in Myanmar Unicode text
TEXTILE technology diploma scope and career opportunities
Geologic Time for studying geology for geologist
1 - Historical Antecedents, Social Consideration.pdf
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Flame analysis and combustion estimation using large language and vision assi...
The influence of sentiment analysis in enhancing early warning system model f...
Final SEM Unit 1 for mit wpu at pune .pptx
sbt 2.0: go big (Scala Days 2025 edition)
Zenith AI: Advanced Artificial Intelligence
Getting started with AI Agents and Multi-Agent Systems
NewMind AI Weekly Chronicles – August ’25 Week III
UiPath Agentic Automation session 1: RPA to Agents
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
search engine optimization ppt fir known well about this

JSR 363 - The Answer to Life Science and the Internet of Everything

  • 1. JSR 363 The Answer to Life Science and the Internet of Everything Based on Images
  • 2. Overview • Introduction • Prior Efforts • OSGi Measurement • JCP (JSR-108, JSR-256, JSR-275) • Eclipse UOMo • Units • Other Bundles (UCUM, Business) • JSR-363 • IoT • Smart Home • QS, Wearable • Demo •Q&A 2 © 2007-2014 Creative Arts & Technologies
  • 3. Who am I? Werner Keil • Consultant – Coach • Creative Cosmopolitan • Open Source Evangelist • Software Architect • JCP EC Member • Eclipse UOMo Project Lead • JSR-363 Co Spec Lead • DevOps Guy … Email werner@catmedia.us 3 © 2012-2014 Creative Arts & Technologies Twitter @wernerkeil
  • 4. Type-Safety • Java does not have strongly typed base types (like e.g. Ada or Smalltalk). • This could change around Java 9 to 11 (based on Oracle Road Map so far, e.g. Project Valhalla) • For performance reasons most developer prefer primitive types over objects in their interface. • Primitive type arguments can more easily lead to name clashes (methods with the same signature) or other problems (“Auto-Boxing”,…) 4 © 2007-2014 Creative Arts & Technologies
  • 5. What do these disasters have in common? • Patriot Missile The cause was an inaccurate calculation of the time since boot due to a computer arithmetic error. • Ariane 5 Explosion Floating point number which a value was converted from had a value greater than what would be represented by a 16 bit signed integer. • Gimli Glider (near disaster) Fuel loading was miscalculated through misunderstanding of the recently adopted Metric System, replacing the Imperial System in Canada 5 © 2007-2014 Creative Arts & Technologies
  • 6. 1983 | Gimli Glider 6 © 2007-2014 Creative Arts & Technologies Fotos: Wayne Glowacki | Wikia „Herr der Ringe“
  • 7. NASA “Star Wars” Initiative, 1983 23rd March 1983. Ronald Reagan announces SDI (or “Star Wars”): ground-based and space-based systems to protect the US from attack by strategic nuclear ballistic missiles. 7 © 2007-2014 Creative Arts & Technologies
  • 8. 1985 Mirror on underside of shuttle SDI Experiment: The Plan Big mountain in Hawaii 8 © 2007-2014 Creative Arts & Technologies
  • 9. 1985 SDI Experiment: What really happened 9 © 2007-2014 Creative Arts & Technologies
  • 10. 1985 | Why it happened? 10 © 2007-2014 Creative Arts & Technologies
  • 11. 1999 | Mars Climate Orbiter 11 © 2007-2014 Creative Arts & Technologies
  • 12. 1999 | Mars Climate Orbiter (2) • Mars Orbiter Preliminary findings indicate that one team used US/English units (e.g. inches, feet and pounds) while the other used metric units for a key spacecraft operation. • NASA lost a $125 million Mars orbiter because a Lockheed Martin engineering team used English units of measurement while the agency's team used the more conventional metric system for a key spacecraft operation • A credible source disclosed, there was a manual step with an outsourced person to convert these calculations between the different teams, and NASA budget cuts caused them to fire him and have the wrong, unpatched data transmitted!!! • This also underlines the added risk when 3rd party contractors are involved or projects are developed Offshore 12 © 2007-2014 Creative Arts & Technologies
  • 13. Unit Tests wouldn‘t find these… Despite their name • All previous examples illustrate three categories of errors difficult to find through Unit Testing: • Interface Errors (e.g. millisecond/second, radian/degree, meters/feet). • Arithmetic Errors (e.g. overflow). • Conversion Errors. 13 © 2007-2014 Creative Arts & Technologies Images based on © Copyright 2005, Touchstone Pictures
  • 14. Causes of Conversion Errors • Ambiguity on the unit • Gallon Dry / Gallon Liquid - Gallon US / Gallon UK • Day Sidereal / Day Calendar • Foot in various regions, at least historically, see: http://en.wikipedia.org/wiki/German_obsolete_units_of_measurement#Fu.C3. 9F_.28foot.29 • Degree Celsius / Degree Fahrenheit • … • Wrong conversion factors: static final double PIXEL_TO_INCH = 1 / 72; double pixels = inches * PIXEL_TO_INCH 14 © 2007-2013 Creative Arts & Technologies
  • 15. What else do they have in common? ALL OF THEM HAPPENED IN MOBILE, REAL TIME OR EMBEDDED SYSTEMS! 15 © 2007-2014 Creative Arts & Technologies
  • 16. OSGi Measurement Package • Namespace: org.osgi.util.measurement • SI only Unit API “in the closet” • Unit Essentially an SI singleton holding relevant unit constants, too. • Measurement Represents a value with an error, a unit and a time-stamp. • State Groups a state name, value and timestamp. • Some usage, e.g. by Automotive ► no further development by OSGi 16 © 2007-2013 Creative Arts & Technologies
  • 17. JSR-108 Units Specification • Namespace: javax.units.* • Only one interface and one abstract class • public class Dimension • public class Quantity • public class Unit<Q extends Quantity> • Withdrawn by the Expert Group 17 © 2007-2012 Creative Arts & Technologies
  • 18. JSR-256 Mobile Sensor API • Namespace: javax.microediton.sensor* • Focusing on Sensors, but it got a minimalistic Unit API “in the closet” • Unit Essentially an SI singleton holding relevant unit constants, too. JavaDoc: http://pandora.la/java/javadocs/sensor/javax/microedition/sensor/Unit.html • MeasurementRange Range of possible values from minimum to maximum • ChannelInfo Holding name, accuracy, data type,measurement ranges, scale and unit ► Dead Meat (few actual handsets and no vendors except Nokia still use it, nor does Java ME Embedded) 18 © 2007-2013 Creative Arts & Technologies
  • 19. JSR-275 Units Specification • Namespace: javax.measure.* • Only one interface and one abstract class • public interface Measurable<Q extends Quantity> • public abstract class Measure<V, Q extends Quantity> • Three sub-packages • quantity (holds dimensions mass, length) • unit (holds SI and NonSI units) • converter (holds unit converters) 19 © 2007-2014 Creative Arts & Technologies
  • 20. JSR-275 Users and popular Downstream Projects • JScience • Groovy/Grails (DSLs e.g. for Healthcare, Unit Conversion,…) • GeoAPI (OGC standard) and implementations, e.g. uDig • Orbitz/Ebookers.com • IEM (Emergency Management, Homeland Security) • OpenEHR • Parfait (Java Monitoring, part of Performance Co-Pilot - PCP) ► Rejected only by EC not Community 20 © 2007-2014 Creative Arts & Technologies, V2COM
  • 21. JSR-275 | LocationTech • uDig is a desktop application framework, built with Eclipse Rich Client (RCP) • Internet: supporting standards (WMS, WFS, WCS, KML) … • GIS: framework for spatial data exploration and analysis • Based on JSR-275 http://locationtech.org/projects/technology.udig 21 © 2007-2014 Creative Arts & Technologies, Eclipse Foundation, Inc. Made available under the Eclipse Public License 1.0
  • 22. The King is Dead… Units of Measurement API • Namespace: org.unitsofmeasurement.* • Only interfaces (and exception classes) • public interface Quantity<Q extends Quantity<Q>> • public interface Unit<Q extends Quantity<Q>> • Three sub-packages • quantity (holds dimensions mass, length,...) • unit (holds units) • service (holds services) 22 © 2007-2014 Creative Arts & Technologies Walking
  • 23. Eclipse UOMo One Small Step…
  • 24. Eclipse UOMo One Unit Framework to Measure them All • Namespace: org.eclipse.uomo.* •Two main areas • Static Type Safe Units of Measure Support • Based on Units of Measurement API • On top of ICU4J, the Globalization standard at Eclipse and others (Android, GWT, Google Financial, etc.) • Prime UCUM Implementation • Successor to Eclipse OHF UCUM Bundle 24 © 2007-2014 Creative Arts & Technologies
  • 25. UOMo UCUM Unified Code for Units of Measure The Unified Code for Units of Measure is inspired by and heavily based on • ISO 2955-1983 • ANSI X3.50-1986 • HL7's extensions called ISO+ 25 © 2007-2014 Creative Arts & Technologies
  • 26. UOMo Business JSR 354 Implementation “Sisu” equivalent for 354 if you want • ICU4J based implementation of types like • CurrencyUnit • MonetaryAmount • CurrencyConversion • ExchangeRate • … • Bridge to Unit-API where possible for cross-quantity arithmetic (e.g. “$ per gram CO² per mile”) 26 © 2007-2014 Creative Arts & Technologies
  • 27. JSR-363 Units of Measurement API (1.0) • Namespace: javax.measure.* • Only Interfaces and Base Exceptions • public interface Dimension • public interface Measurement<Q extends Quantity<Q>, V> • public interface Quantity<Q extends Quantity<Q>> extends Measurement<Q, Number> • public interface Unit<Q extends Quantity<Q>> • A “functional” Sub-package • function (contains functional interfaces, especially for Java 8 Lambdas) 27 © 2007-2014 Creative Arts & Technologies
  • 28. JSR-363 Units of Measurement API (1.0) • All other packages are OPTIONAL • format (contains Formatters und Parser) • quantity (contains dimensions like Mass, Length,...) • spi (contains Service Provider Interface) 28 © 2007-2014 Creative Arts & Technologies
  • 29. Internet of Things Transportation & Logistics 29 © 2007-2014 Creative Arts & Technologies | Eclipse Foundation, Inc. Made available under the Eclipse Public License 1.0, Logistics Medical & Healthcare Industrial & Energy Communication Infrastructure Security & Surveillance Internet of Things Some IoT Use Cases
  • 30. IoT | Health Use Cases Medical Services Gateway Internet of Things Communication Infrastructure Smart Pill Boxes Near field Heartbeat Sensor Weight Scales Blood Pressure Medical Smart Services Gateway Blood Sugar 30 © 2007-2014 Creative Arts & Technologies | Eclipse Foundation, Inc. Made available under the Eclipse Public License 1.0,
  • 31. IoT | Smart Home 31 © 2012-2014 Creative Arts & Technologies Foto: ARD Degeto/NDR/Marc Meyerbroeker
  • 32. IoT | Smart Home Actual Showcase 32 © 2012-2014 Creative Arts & Technologies
  • 33. IoT | Quantified Self 33 © 2012-2014 Creative Arts & Technologies
  • 34. Quantified Self Smart Watch, Health and Fitness Apps 34 © 2012-2014 Creative Arts & Technologies Bild: L'Atelier
  • 35. Quantified Self Wearables 35 © 2012-2014 Creative Arts & Technologies Image: HDWallpaperImages.com
  • 36. Quantified Self | Heart of Glass JavaOne 2013 •A Heart Monitor remotely accessible from devices like Google Glass or your favorite Mobile Browser • Part of Java Embedded Challenge at JavaOne 36 © 2013-2014 Creative Arts & Technologies, V2COM
  • 37. Quantified Self | Heart of Glass Technologies we used •Raspberry Pi | Things API •RXTX (gnu.io) • Polar Heart Sensor • Java EE | HTML 5 (Tomcat/Glassfish) •Google Glass (preferred) or other Web-enabled Mobile devices 37 © 2013-2014 Creative Arts & Technologies, V2COM | Unit-API
  • 38. Demo
  • 39. Q & A
  • 40. Links JSR-363 https://jcp.org/en/jsr/detail?id=363 Units of Measurement Project http://unitsofmeasurement.github.io Eclipse – Project UOMo http://www.eclipse.org/uomo/ My GitHub account http://www.github.com/keilw/

Editor's Notes

  • #22: Briefly discuss what a rich client is. This is an opportunity to talk about all the pretty pictures, how making a selection in one view can change the appearance of others, drag and drop, yadda, yadda, yadda…