nslj.src.lang
Class NslNumeric1

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.NslNumeric1
Direct Known Subclasses:
NslDouble1, NslFloat1, NslInt1

public abstract class NslNumeric1
extends NslNumeric


Field Summary
protected  double[] _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
NslNumeric1()
           
NslNumeric1(java.lang.String label)
           
NslNumeric1(java.lang.String label, NslHierarchy parent)
           
NslNumeric1(java.lang.String label, NslHierarchy parent, char desiredAccess)
           
 
Method Summary
 int getDimensions()
          get the dimensions of this object
abstract  double getdouble(int pos)
          Get the posth element of this one-dimensional array
abstract  double[] getdouble1()
          Get the array in double precision floating point
abstract  float getfloat(int pos)
          Get the posth element of this one-dimensional array
abstract  float[] getfloat1()
          Get the array in single precision floating point
abstract  int getint(int pos)
          Get the posth element of this one-dimensional array
abstract  int[] getint1()
          Get the array in single precision floating point
abstract  NslDouble1 getNslDouble1()
          Create a NslDouble1 array with the same value as this array
abstract  NslFloat1 getNslFloat1()
          Create a NslFloat1 array with the same value as this array
abstract  NslInt1 getNslInt1()
          Create a NslInt1 array with the same value as this array
abstract  void getNslSize(NslInt0 size)
          get the size of this array and put it into size
abstract  int getSize()
           
abstract  int getSize1()
          get the size of this array at the rightmost dimension
abstract  int[] getSizes()
          get the size of this array and put it into size
abstract  void set(double value)
          set the value of all elements of this object to value
abstract  void set(double[] value)
          set the value of this object to one-dimensional array value
abstract  void set(float value)
          set the value of all elements of this object to value
abstract  void set(float[] value)
          set the value of this object to one-dimensional array value
abstract  void set(int value)
          set the value of all elements of this object to value
abstract  void set(int[] value)
          set the value of this object to one-dimensional array value
abstract  void set(int pos, double value)
          set the value of posth element of this object to value
abstract  void set(int pos, float value)
          set the value of posth element of this object to value
abstract  void set(int pos, int value)
          set the value of posth element of this object to value
abstract  void set(int pos, NslNumeric0 value)
          set the value of posth element of this object to value
abstract  void set(NslNumeric0 value)
          Set the value of all elements of this object to be value
abstract  void set(NslNumeric1 value)
          Set the value of this object to be value
 
Methods inherited from class nslj.src.lang.NslData
duplicateData, duplicateThis, getDataType, getInport, getNslSizes, getOutport, getSize2, getSize3, getSize4, isDataSet, nslGetPort, resetData, setReference, toString
 
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

protected double[] _data
Constructor Detail

NslNumeric1

public NslNumeric1()

NslNumeric1

public NslNumeric1(java.lang.String label)

NslNumeric1

public NslNumeric1(java.lang.String label,
                   NslHierarchy parent)

NslNumeric1

public NslNumeric1(java.lang.String label,
                   NslHierarchy parent,
                   char desiredAccess)
Method Detail

getdouble1

public abstract double[] getdouble1()
Get the array in double precision floating point
Returns:
array - in double precision pointing point

getfloat1

public abstract float[] getfloat1()
Get the array in single precision floating point
Returns:
array - in single precision pointing point

getint1

public abstract int[] getint1()
Get the array in single precision floating point
Returns:
array - in int

getdouble

public abstract double getdouble(int pos)
Get the posth element of this one-dimensional array
Returns:
- value in java numerical type double.

getfloat

public abstract float getfloat(int pos)
Get the posth element of this one-dimensional array
Returns:
- value in java numerical type float.

getint

public abstract int getint(int pos)
Get the posth element of this one-dimensional array
Returns:
- value in java numerical type int.

getNslDouble1

public abstract NslDouble1 getNslDouble1()
Create a NslDouble1 array with the same value as this array
Returns:
array - in NslDouble1

getNslFloat1

public abstract NslFloat1 getNslFloat1()
Create a NslFloat1 array with the same value as this array
Returns:
array - in NslFloat1

getNslInt1

public abstract NslInt1 getNslInt1()
Create a NslInt1 array with the same value as this array
Returns:
array - in NslInt1

set

public abstract void set(double[] value)
set the value of this object to one-dimensional array value
Parameters:
value - - value to be defined.

set

public abstract void set(float[] value)
set the value of this object to one-dimensional array value
Parameters:
value - - value to be defined.

set

public abstract void set(int[] value)
set the value of this object to one-dimensional array value
Parameters:
value - - value to be defined.

set

public abstract void set(int pos,
                         double value)
set the value of posth element of this object to value
Parameters:
pos - - position of the element to be defined
value - - value to be defined.

set

public abstract void set(int pos,
                         float value)
set the value of posth element of this object to value
Parameters:
pos - - position of the element to be defined
value - - value to be defined.

set

public abstract void set(int pos,
                         int value)
set the value of posth element of this object to value
Parameters:
pos - - position of the element to be defined
value - - value to be defined.

set

public abstract void set(double value)
set the value of all elements of this object to value
Parameters:
value - - value to be defined.

set

public abstract void set(float value)
set the value of all elements of this object to value
Parameters:
value - - value to be defined.

set

public abstract void set(int value)
set the value of all elements of this object to value
Parameters:
value - - value to be defined.

set

public abstract void set(NslNumeric1 value)
Set the value of this object to be value
Parameters:
value - - in any of NslNumeric1 type.

set

public abstract void set(NslNumeric0 value)
Set the value of all elements of this object to be value

set

public abstract void set(int pos,
                         NslNumeric0 value)
set the value of posth element of this object to value
Parameters:
pos - - position of the element to be defined
value - - value to be defined.

getDimensions

public int getDimensions()
get the dimensions of this object
Overrides:
getDimensions in class NslData
Returns:
always 1

getSize

public abstract int getSize()

getNslSize

public abstract void getNslSize(NslInt0 size)
get the size of this array and put it into size
Parameters:
size -  

getSizes

public abstract int[] getSizes()
get the size of this array and put it into size
Overrides:
getSizes in class NslData
Returns:
size - always a vector of 4 elements

getSize1

public abstract int getSize1()
get the size of this array at the rightmost dimension
Overrides:
getSize1 in class NslData
Returns:
always zero