nslj.src.lang
Class NslNumeric4

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.NslNumeric4
Direct Known Subclasses:
NslDouble4, NslFloat4, NslInt4

public abstract class NslNumeric4
extends NslNumeric


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
NslNumeric4()
           
NslNumeric4(java.lang.String label)
           
NslNumeric4(java.lang.String label, NslHierarchy parent)
           
NslNumeric4(java.lang.String label, NslHierarchy parent, char desiredAccess)
           
 
Method Summary
 int getDimensions()
          get the dimensions of this object
abstract  double getdouble(int pos1, int pos2, int pos3, int pos4)
           
abstract  double[] getdouble1(int pos1, int pos2, int pos3)
          1--------------------------------------------*---- /**
abstract  double[][] getdouble2(int pos1, int pos2)
          2--------------------------------------------*---- /**
abstract  double[][][] getdouble3(int pos1)
           
abstract  double[][][][] getdouble4()
           
abstract  float getfloat(int pos1, int pos2, int pos3, int pos4)
           
abstract  float[] getfloat1(int pos1, int pos2, int pos3)
           
abstract  float[][] getfloat2(int pos1, int pos2)
           
abstract  float[][][] getfloat3(int pos1)
           
abstract  float[][][][] getfloat4()
           
abstract  int getint(int pos1, int pos2, int pos3, int pos4)
           
abstract  int[] getint1(int pos1, int pos2, int pos3)
           
abstract  int[][] getint2(int pos1, int pos2)
           
abstract  int[][][] getint3(int pos1)
           
abstract  int[][][][] getint4()
           
abstract  NslDouble4 getNslDouble4()
          get the value of this object in NslDouble4 form.
abstract  NslFloat4 getNslFloat4()
          get the value of this object in NslFloat4 form.
abstract  NslInt4 getNslInt4()
          get the value of this object in NslInt4 form.
abstract  void getNslSizes(NslInt0 size1, NslInt0 size2, NslInt0 size3, NslInt0 size4)
           
abstract  int getSize1()
          Get the left most index
abstract  int getSize2()
          Get the second to the left most index
abstract  int getSize3()
          Get the third to the left most index
abstract  int getSize4()
          Get the fourth to the left most index
abstract  int[] getSizes()
           
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 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 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 value
abstract  void set(int pos1, int pos2, int pos3, int pos4, double value)
          set the value of an element in this object to value
abstract  void set(int pos1, int pos2, int pos3, int pos4, float value)
          set the value of an element in this object to value
abstract  void set(int pos1, int pos2, int pos3, int pos4, int value)
          set the value of an element in this object to value
abstract  void set(int pos1, int pos2, int pos3, int pos4, NslNumeric0 value)
          set the value of an element in this object to value
abstract  void set(NslNumeric0 value)
          set the value of all elements of this object to value
abstract  void set(NslNumeric4 value)
          Set the value of this object to be value
 
Methods inherited from class nslj.src.lang.NslData
duplicateData, duplicateThis, getDataType, getInport, getNslSizes, getOutport, 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
 

Constructor Detail

NslNumeric4

public NslNumeric4()

NslNumeric4

public NslNumeric4(java.lang.String label)

NslNumeric4

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

NslNumeric4

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

getdouble4

public abstract double[][][][] getdouble4()
Returns:
- the value of this object in java numerical array type double[][][][].

getfloat4

public abstract float[][][][] getfloat4()
Returns:
- the value of this object in java numerical array type float[][][][].

getint4

public abstract int[][][][] getint4()
Returns:
- the value of this object in java numerical array type int[][][][].

getdouble3

public abstract double[][][] getdouble3(int pos1)
Parameters:
pos1 - - left most number
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type double[][][].

getfloat3

public abstract float[][][] getfloat3(int pos1)
Parameters:
pos1 - - left most index
pos2 - - second to the left most index
pos3 - - third from left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type float.

getint3

public abstract int[][][] getint3(int pos1)
Parameters:
pos1 - - left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type int.

getdouble2

public abstract double[][] getdouble2(int pos1,
                                      int pos2)
2--------------------------------------------*---- /**
Parameters:
pos1 - - left most index
pos2 - - second to the left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type double[][].

getfloat2

public abstract float[][] getfloat2(int pos1,
                                    int pos2)
Parameters:
pos1 - - left most index
pos2 - - second to the left most index
pos3 - - third from left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type float[][].

getint2

public abstract int[][] getint2(int pos1,
                                int pos2)
Parameters:
pos1 - - left most index
pos2 - - second to the left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type int[][].

getdouble1

public abstract double[] getdouble1(int pos1,
                                    int pos2,
                                    int pos3)
1--------------------------------------------*---- /**
Parameters:
pos1 - - left most index
pos2 - - second to the left most index
pos3 - - third to the left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type double[].

getfloat1

public abstract float[] getfloat1(int pos1,
                                  int pos2,
                                  int pos3)
Parameters:
pos1 - - left most index
pos2 - - second to the left most index
pos3 - - third from left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type float[].

getint1

public abstract int[] getint1(int pos1,
                              int pos2,
                              int pos3)
Parameters:
pos1 - - left most index
pos2 - - second to the left most index
pos3 - - third from left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type int[].

getdouble

public abstract double getdouble(int pos1,
                                 int pos2,
                                 int pos3,
                                 int pos4)
Parameters:
pos1 - - left most
pos2 - - second from left
pos3 - - third from left
pos4 - - fourth from left
Returns:
the value of the element in pos1th and pos2th and pos3th and pos4th in java numerical type double.

getfloat

public abstract float getfloat(int pos1,
                               int pos2,
                               int pos3,
                               int pos4)
Parameters:
pos1 - - left most
pos2 - - second from left
pos3 - - third from left
pos4 - - fourth from left
Returns:
the value of the element in pos1th and pos2th and pos3th and pos4th in java numerical type float.

getint

public abstract int getint(int pos1,
                           int pos2,
                           int pos3,
                           int pos4)
Parameters:
pos1 - - left most
pos2 - - second from left
pos3 - - third from left
pos4 - - fourth from left
Returns:
the value of the element in pos1th and pos2th and pos3th and pos4th in java numerical type int.

getNslDouble4

public abstract NslDouble4 getNslDouble4()
get the value of this object in NslDouble4 form.

getNslFloat4

public abstract NslFloat4 getNslFloat4()
get the value of this object in NslFloat4 form.

getNslInt4

public abstract NslInt4 getNslInt4()
get the value of this object in NslInt4 form.

set

public abstract void set(double[][][][] value)
set the value of this object to value
Parameters:
value - - four dimension array

set

public abstract void set(float[][][][] value)
set the value of this object to value
Parameters:
value - - four dimension array

set

public abstract void set(int[][][][] value)
set the value of this object to value
Parameters:
value - - four dimension array

set

public abstract void set(int pos1,
                         int pos2,
                         int pos3,
                         int pos4,
                         double value)
set the value of an element in this object to value
Parameters:
pos1 - - the left most index of the element
pos2 - - the second to the left most index of the element
pos3 - - the third from left most index of the element
pos4 - - the 4th axis number of the element
value - - scalar in double

set

public abstract void set(int pos1,
                         int pos2,
                         int pos3,
                         int pos4,
                         float value)
set the value of an element in this object to value
Parameters:
pos1 - - the left most index of the element
pos2 - - the second to the left most index of the element
pos3 - - the third from left most index of the element
pos4 - - the 4th axis number of the element
value - - scalar in float

set

public abstract void set(int pos1,
                         int pos2,
                         int pos3,
                         int pos4,
                         int value)
set the value of an element in this object to value
Parameters:
pos1 - - the left most index of the element
pos2 - - the second to the left most index of the element
pos3 - - the third from left most index of the element
pos4 - - the 4th axis number of the element
value - - scalar in int

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(NslNumeric4 value)
Set the value of this object to be value
Parameters:
value - - in any of NslNumeric4 type.

set

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

set

public abstract void set(int pos1,
                         int pos2,
                         int pos3,
                         int pos4,
                         NslNumeric0 value)
set the value of an element in this object to value
Parameters:
pos1 - - the left most index of the element
pos2 - - the second to the left most index of the element
pos3 - - the third from left most index of the element
pos4 - - the 4th axis number of the element
value - - scalar in NslNumeric0

getDimensions

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

getNslSizes

public abstract void getNslSizes(NslInt0 size1,
                                 NslInt0 size2,
                                 NslInt0 size3,
                                 NslInt0 size4)

getSizes

public abstract int[] getSizes()
Overrides:
getSizes in class NslData

getSize1

public abstract int getSize1()
Get the left most index
Overrides:
getSize1 in class NslData

getSize2

public abstract int getSize2()
Get the second to the left most index
Overrides:
getSize2 in class NslData

getSize3

public abstract int getSize3()
Get the third to the left most index
Overrides:
getSize3 in class NslData

getSize4

public abstract int getSize4()
Get the fourth to the left most index
Overrides:
getSize4 in class NslData