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 />

// Get metric system from catalog and a list of all systems<br />

IUnitSystem metricSystem = catalog.GetSystem(“Metric”);<br />

IEnumerable allSystems = catalog.Systems;<br />

// Get unit for meters and a list of all catalog units.<br />

IUnit unit = catalog.GetUnit(“m”);<br />

IEnumerable allUnits = catalog.GetUnits();<br />

Unit System<br />

// Get the Length measurement and a list of all catalog measurements.<br />

IUnitMeasurement measurement = catalog.GetUnitMeasurement(“Length”);<br />

IEnumerable allMeasurements =<br />

catalog.GetUnitMeasurements();<br />

The IUnitSystem interface provides access to properties of a unit system. You can get<br />

descriptive information on the unit system and the mapping between measurements and<br />

units. IUnitSystem is defined as:<br />

public interface IUnitSystem<br />

{<br />

string Description { get; }<br />

string Name { get; }<br />

IUnit GetUnits (IUnitMeasurement measurement);<br />

}<br />

4-206 <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!