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.

Basics<br />

Basics<br />

The Slb.<strong>Ocean</strong>.Basics namespace provides basic object types that represent concepts<br />

such as indexes, extents, and ranges. It also provides simple algorithms. The classes<br />

defined in this namespace are simple classes that are used to represent a wide variety of<br />

data throughout <strong>Ocean</strong>.<br />

Index Classes<br />

Index classes are integer vectors with arithmetic. The classes are Index2, Index3, and<br />

Index4. They have the same operators and methods but differ in their properties.<br />

Index2, as its name implies, represents a 2D integer vector, Index3 a 3D integer vector,<br />

and Index4 a 4D integer vector. These classes are commonly used for non-geometric<br />

position parameters or another way to think of them is logical position. For example, you<br />

can represent cells in a three dimensional grid with Index3 objects whose I, J, and K<br />

properties indicate the logical cell location in the grid.<br />

The Index2 class definitions are:<br />

public sealed class Index2 : ICloneable<br />

{<br />

public Index2 ();<br />

public Index2 (Index2 rhs);<br />

public Index2 (Index3 arg);<br />

public Index2 (Index4 arg);<br />

public Index2 (int i, int j);<br />

public Index2 (int[ ] arg);<br />

public int this[ int pos ];<br />

public int I { get; set; }<br />

public int J { get; set; }<br />

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