nslj.src.lang
Class NslDouble0

java.lang.Object
  |
  +--EDU.gatech.cc.is.abstractrobot.ControlSystemS
        |
        +--EDU.gatech.cc.is.abstractrobot.ControlSystemMFN150
              |
              +--nslj.src.lang.NslBase
                    |
                    +--nslj.src.lang.NslData
                          |
                          +--nslj.src.lang.NslNumeric
                                |
                                +--nslj.src.lang.NslNumeric0
                                      |
                                      +--nslj.src.lang.NslDouble0
Direct Known Subclasses:
NslDinDouble0, NslDoutDouble0

public class NslDouble0
extends NslNumeric0


Field Summary
 NslDoubleObj _data
           
 
Fields inherited from class nslj.src.lang.NslBase
_accessChar, _name, _parent
 
Fields inherited from class EDU.gatech.cc.is.abstractrobot.ControlSystemMFN150
abstract_robot
 
Fields inherited from class EDU.gatech.cc.is.abstractrobot.ControlSystemS
CSSTAT_DONE, CSSTAT_ERROR, CSSTAT_OK, seed
 
Constructor Summary
NslDouble0()
          Constructor with default value 0
NslDouble0(double value)
          Constructor, initialize the value to value
NslDouble0(NslNumeric0 n)
          Constructor, initialize the value to the same as another NslNumeric0
NslDouble0(java.lang.String name)
          This constructs a number with specified name
NslDouble0(java.lang.String name, double value)
          Constructor, initialize the value to value
NslDouble0(java.lang.String name, NslHierarchy curParent)
           
NslDouble0(java.lang.String name, NslHierarchy curParent, double value)
           
NslDouble0(java.lang.String name, NslHierarchy curParent, NslNumeric0 value)
           
NslDouble0(java.lang.String name, NslNumeric0 value)
          This constructs a number with specified name
 
Method Summary
 NslDoubleObj _getdouble()
          Get the value of this number in double precision floating point NslNumeric
 void duplicateData(NslData n)
          Copy all data from n to this number object.
 NslData duplicateThis()
          Clone this number
 double get()
          Get the value of this number
 double getdouble()
          Get the value of this number in double precision floating point number
 double getdouble0()
          Get the value of this number in double precision floating point number
 float getfloat()
          Get the value of this number in single precision floating point number
 int getint()
          Get the value of this number in integer
 NslDouble0 getNslDouble0()
          Get the value of this number in single precision floating point NslNumeric
 NslFloat0 getNslFloat0()
          Get the value of this number in floating point NslNumeric override for NslFloat0 for efficency
 NslInt0 getNslInt0()
          Get the value of this number in integer
 boolean isDataSet()
          Check if the number is well-defined and the corresponding numerical data is set.
 void resetData()
          Reset the reference pointer to null
 void set(double value)
          Set the value of this number to value
 void set(double[] value)
          Set the value of this number to value
 void set(double[][] value)
          Set the value of this number to value
 void set(double[][][] value)
          Set the value of this number to value
 void set(double[][][][] value)
          Set the value of this number to value
 void set(float value)
          Set the value of this number to value
 void set(float[] value)
          Set the value of this number to value
 void set(float[][] value)
          Set the value of this number to value
 void set(float[][][] value)
          Set the value of this number to value
 void set(float[][][][] value)
          Set the value of this number to value
 void set(int value)
          Set the value of this number to value
 void set(int[] value)
          Set the value of this number to value
 void set(int[][] value)
          Set the value of this number to value
 void set(int[][][] value)
          Set the value of this number to value
 void set(int[][][][] value)
          Set the value of this number to value
 void set(NslNumeric0 num)
          Set the value of this number to num
 void setReference(NslData n)
          Set the reference to the wrapped data of n It is used in double buffered ports, to make the the ports reference different number object at different time.
 java.lang.String toString()
          Print the value of the numberic
 
Methods inherited from class nslj.src.lang.NslNumeric0
getDimensions, getNslSize, getSize, getSize1, getSize2, getSize3, getSize4, getSizes
 
Methods inherited from class nslj.src.lang.NslData
getDataType, getInport, getNslSizes, getOutport, nslGetPort
 
Methods inherited from class nslj.src.lang.NslBase
nslGetAccess, nslGetName, nslGetParent, nslGetParentClass, nslGetParentModule, nslGetRealName, nslNullifyParent, nslSetAccess, nslSetName, nslSetParent
 
Methods inherited from class EDU.gatech.cc.is.abstractrobot.ControlSystemMFN150
init
 
Methods inherited from class EDU.gatech.cc.is.abstractrobot.ControlSystemS
configure, Configure, getAbstractRobot, Init, quit, takeStep, TakeStep, trialEnd, TrialEnd, trialInit, TrialInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_data

public NslDoubleObj _data
Constructor Detail

NslDouble0

public NslDouble0()
Constructor with default value 0

NslDouble0

public NslDouble0(double value)
Constructor, initialize the value to value
Parameters:
value - - the init value

NslDouble0

public NslDouble0(NslNumeric0 n)
Constructor, initialize the value to the same as another NslNumeric0
Parameters:
n - - a scalar number

NslDouble0

public NslDouble0(java.lang.String name)
This constructs a number with specified name
Parameters:
name - - name of the variable

NslDouble0

public NslDouble0(java.lang.String name,
                  NslHierarchy curParent)

NslDouble0

public NslDouble0(java.lang.String name,
                  NslNumeric0 value)
This constructs a number with specified name
Parameters:
name - - name of the variable
value - - initialized values

NslDouble0

public NslDouble0(java.lang.String name,
                  NslHierarchy curParent,
                  NslNumeric0 value)

NslDouble0

public NslDouble0(java.lang.String name,
                  double value)
Constructor, initialize the value to value
Parameters:
value - - the init value
name - - name of the variable

NslDouble0

public NslDouble0(java.lang.String name,
                  NslHierarchy curParent,
                  double value)
Method Detail

duplicateData

public void duplicateData(NslData n)
Description copied from class: NslData
Copy all data from n to this number object. It is used in NslPort and relevant classes only.
Overrides:
duplicateData in class NslData
Following copied from class: nslj.src.lang.NslData
Parameters:
n - - number to be copied
See Also:

duplicateThis

public NslData duplicateThis()
Clone this number
Overrides:
duplicateThis in class NslData
Returns:
- a copy of this number

setReference

public void setReference(NslData n)
Set the reference to the wrapped data of n It is used in double buffered ports, to make the the ports reference different number object at different time.
Overrides:
setReference in class NslData
Parameters:
n - - number concerned

isDataSet

public boolean isDataSet()
Description copied from class: NslData
Check if the number is well-defined and the corresponding numerical data is set.
Overrides:
isDataSet in class NslData
Following copied from class: nslj.src.lang.NslData
Returns:
true - if the data is well-defined. false - if the data is null.

resetData

public void resetData()
Reset the reference pointer to null
Overrides:
resetData in class NslData

toString

public java.lang.String toString()
Description copied from class: NslData
Print the value of the numberic
Overrides:
toString in class NslData

get

public double get()
Get the value of this number
Returns:
value, in default type

_getdouble

public NslDoubleObj _getdouble()
Get the value of this number in double precision floating point NslNumeric
Returns:
NslNumeric - in double precision pointing point

getdouble0

public double getdouble0()
Get the value of this number in double precision floating point number
Returns:
value - in double precision pointing point

getdouble

public double getdouble()
Get the value of this number in double precision floating point number
Overrides:
getdouble in class NslNumeric0
Returns:
value - in double precision pointing point

getfloat

public float getfloat()
Get the value of this number in single precision floating point number
Overrides:
getfloat in class NslNumeric0
Returns:
value - in single precision pointing point

getint

public int getint()
Get the value of this number in integer
Overrides:
getint in class NslNumeric0
Returns:
value - in integer

getNslDouble0

public NslDouble0 getNslDouble0()
Get the value of this number in single precision floating point NslNumeric
Overrides:
getNslDouble0 in class NslNumeric0
Returns:
NslNumeric - in single precision pointing point

getNslFloat0

public NslFloat0 getNslFloat0()
Description copied from class: NslNumeric0
Get the value of this number in floating point NslNumeric override for NslFloat0 for efficency
Overrides:
getNslFloat0 in class NslNumeric0
Following copied from class: nslj.src.lang.NslNumeric0
Returns:
NslNumeric - in single precision pointing point

getNslInt0

public NslInt0 getNslInt0()
Get the value of this number in integer
Overrides:
getNslInt0 in class NslNumeric0
Returns:
NslNumeric - in integer

set

public void set(double value)
Set the value of this number to value
Overrides:
set in class NslNumeric0
Parameters:
value -  

set

public void set(float value)
Set the value of this number to value
Overrides:
set in class NslNumeric0
Parameters:
value -  

set

public void set(int value)
Set the value of this number to value
Overrides:
set in class NslNumeric0
Parameters:
value -  

set

public void set(double[] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(float[] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(int[] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(double[][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(float[][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(int[][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(double[][][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(float[][][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(int[][][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(double[][][][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(float[][][][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(int[][][][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(NslNumeric0 num)
Set the value of this number to num
Overrides:
set in class NslNumeric0
Parameters:
num, - a scalar NslNumeric