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.

Custom Worksteps<br />

Our example showing the argument roles would now be:<br />

class Args : DescribedArgumentsByReflection<br />

{<br />

// input arguments<br />

private WellLog log;<br />

private Grid grid;<br />

// output arguments<br />

private int numberOfCells;<br />

private Property property;<br />

public Slb.<strong>Ocean</strong>.Petrel.DomainObject.Well.WellLog Welllog<br />

{<br />

internal get { return log; }<br />

set { log = value; }<br />

}<br />

public Slb.<strong>Ocean</strong>.Petrel.DomainObject.PillarGrid.Grid Grid<br />

{<br />

internal get { return grid; }<br />

set { grid = value; }<br />

}<br />

public int NumCells<br />

{<br />

get { return numberOfCells; }<br />

internal set { numberOfCells = value; }<br />

}<br />

public Slb.<strong>Ocean</strong>.Petrel.DomainObject.PillarGrid.Property Prop<br />

{<br />

get { return property; }<br />

}<br />

}<br />

internal set { property = value; }<br />

For an argument that is used for both input and output, both the get and the set would<br />

be public.<br />

<strong>Schlumberger</strong> Private<br />

Workflow 6-289

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

Saved successfully!

Ooh no, something went wrong!