02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Units<br />

Invariant unit system. Likewise the <strong>Ocean</strong> API will return data from storage in the<br />

Invariant unit system.<br />

data stored in Joules<br />

user prefers to see<br />

data in Btu<br />

Gallon of Ice Cream<br />

360 Joule<br />

convert<br />

Fig. 4-14 Unit Conversion for Domain Objects<br />

Converting to the user interface representation requires that we have the units for the<br />

user interface and also for the stored representation of our data. We use the measurement<br />

for our data and the units systems to find the associated units. For the user interface units<br />

we use the CurrentUISystem and for the storage units we use the Invariant unit<br />

4-212 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!