com.softwareag.ino.sxs
Class DoubleRef

java.lang.Object
  extended by com.softwareag.ino.sxs.DoubleRef

public class DoubleRef
extends java.lang.Object

Auxiliary class to represent references to double numbers. It is used for doubles as output parameters.


Constructor Summary
DoubleRef()
          Default constructor initializes the DoubleRef with 0.
DoubleRef(double initVal)
          Constructor to initialize the DoubleRef with the given value.
 
Method Summary
 double getVal()
          Gets the current value of the DoubleRef.
 void setVal(double newVal)
          Sets the value of the DoubleRef to a given value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleRef

public DoubleRef()
Default constructor initializes the DoubleRef with 0.


DoubleRef

public DoubleRef(double initVal)
Constructor to initialize the DoubleRef with the given value.

Parameters:
initVal - the initial value
Method Detail

getVal

public double getVal()
Gets the current value of the DoubleRef.

Returns:
the current value

setVal

public void setVal(double newVal)
Sets the value of the DoubleRef to a given value.

Parameters:
newVal - the new value