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

You can have <strong>Ocean</strong> automatically fill in these initial values so the user does not have to<br />

enter them repeatedly. You give any initial argument values in the declaration of the<br />

corresponding field.<br />

class MySWLogArgs : DescribedArgumentsByReflection<br />

{<br />

// input arguments with initial values<br />

private double rw = 0.05;<br />

private double argaArchie = 1;<br />

private double argmArchie = 2;<br />

private double argnArchie = 2;<br />

public double Rw<br />

{<br />

get { return this.rw; }<br />

set { this.rw = value; }<br />

}<br />

public double aArchie<br />

{<br />

get { return this.argaArchie; }<br />

set { this.argaArchie = value; }<br />

}<br />

...<br />

}<br />

<strong>Ocean</strong> will populate the UI’s with each argument’s initial value:<br />

Fig. 6-32 Line UI with Initial Argument Values<br />

Fig. 6-33 Default Dialog UI with Initial Argument Values<br />

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

Workflow 6-291

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

Saved successfully!

Ooh no, something went wrong!