nslj.src.lang
Class NslFloat4

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
                                      |
                                      +--nslj.src.lang.NslFloat4
Direct Known Subclasses:
NslDinFloat4, NslDoutFloat4

public class NslFloat4
extends NslNumeric4


Field Summary
 float[][][][] _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
NslFloat4()
           
NslFloat4(float[][][][] d)
           
NslFloat4(int size1, int size2, int size3, int size4)
           
NslFloat4(NslNumeric4 n)
           
NslFloat4(java.lang.String name)
          This constructs a number with specified name
NslFloat4(java.lang.String name, float[][][][] d)
          This constructs a number with specified name
NslFloat4(java.lang.String name, int size1, int size2, int size3, int size4)
          This constructs a number with specified name
NslFloat4(java.lang.String name, NslHierarchy curParent)
           
NslFloat4(java.lang.String name, NslHierarchy curParent, int size1, int size2, int size3, int size4)
           
NslFloat4(java.lang.String name, NslHierarchy curParent, NslNumeric4 n)
           
NslFloat4(java.lang.String name, NslNumeric4 n)
          This constructs a number with specified name
 
Method Summary
 void duplicateData(NslData n)
          Copy all data from n to this number object.
 NslData duplicateThis()
          This method is equivalent to clone() method in java.lang.Object.
 float[][][][] get()
           
 float[][][] get(int pos1)
           
 float[][] get(int pos1, int pos2)
           
 float[] get(int pos1, int pos2, int pos3)
           
 float get(int pos1, int pos2, int pos3, int pos4)
           
 float get(NslInt0 pos1, NslInt0 pos2, NslInt0 pos3, NslInt0 pos4)
           
 double getdouble(int pos1, int pos2, int pos3, int pos4)
           
 double[] getdouble1(int pos1, int pos2, int pos3)
          1--------------------------------------------*---- /**
 double[][] getdouble2(int pos1, int pos2)
          2--------------------------------------------*---- /**
 double[][][] getdouble3(int pos1)
           
 double[][][][] getdouble4()
           
 float getfloat(int pos1, int pos2, int pos3, int pos4)
           
 float[] getfloat1(int pos1, int pos2, int pos3)
           
 float[][] getfloat2(int pos1, int pos2)
           
 float[][][] getfloat3(int pos1)
           
 float[][][][] getfloat4()
           
 int getint(int pos1, int pos2, int pos3, int pos4)
           
 int[] getint1(int pos1, int pos2, int pos3)
           
 int[][] getint2(int pos1, int pos2)
           
 int[][][] getint3(int pos1)
           
 int[][][][] getint4()
           
 NslDouble4 getNslDouble4()
          get the value of this object in NslDouble4 form.
 NslFloat4 getNslFloat4()
          get the value of this object in NslFloat4 form.
 NslInt4 getNslInt4()
          get the value of this object in NslInt4 form.
 void getNslSizes(NslInt0 size1, NslInt0 size2, NslInt0 size3, NslInt0 size4)
           
 float[][][][] getSector(int start1, int start2, int start3, int start4, int end1, int end2, int end3, int end4)
           
 int getSize1()
          Get the left most index
 int getSize2()
          Get the second to the left most index
 int getSize3()
          Get the third to the left most index
 int getSize4()
          Get the fourth to the left most index
 int[] getSizes()
           
 boolean isDataSet()
          Check if the number is well-defined and the corresponding numerical data is set.
 void nslMemAlloc(int size1, int size2, int size3, int size4)
           
 void print()
           
 void resetData()
          Reset the reference pointer to null
 void set(double value)
          set the value of all elements of this object to value
 void set(double[][][][] value)
          set the value of this object to value
 void set(float value)
          set the value of all elements of this object to value
 void set(float[][][][] value)
          set the value of this object to value
 void set(int value)
          set the value of all elements of this object to value
 void set(int[][][][] value)
          set the value of this object to value
 void set(int pos1, int pos2, int pos3, int pos4, double value)
          set the value of an element in this object to value
 void set(int pos1, int pos2, int pos3, int pos4, float value)
          set the value of an element in this object to value
 void set(int pos1, int pos2, int pos3, int pos4, int value)
          set the value of an element in this object to value
 void set(int pos1, int pos2, int pos3, int pos4, NslNumeric0 value)
          set the value of an element in this object to value
 void set(NslNumeric0 n)
          set the value of all elements of this object to value
 void set(NslNumeric4 n)
          Set the value of this object to be value
 void setReference(NslData n)
          Set the reference pointer of this number object to the data value of n.
 void setSector(float[][][][] d, int startpos1, int startpos2, int startpos3, int startpos4)
           
 java.lang.String toString()
          Print the value of the numberic
 
Methods inherited from class nslj.src.lang.NslNumeric4
getDimensions
 
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 float[][][][] _data
Constructor Detail

NslFloat4

public NslFloat4(float[][][][] d)

NslFloat4

public NslFloat4(NslNumeric4 n)

NslFloat4

public NslFloat4(int size1,
                 int size2,
                 int size3,
                 int size4)

NslFloat4

public NslFloat4()

NslFloat4

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

NslFloat4

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

NslFloat4

public NslFloat4(java.lang.String name,
                 int size1,
                 int size2,
                 int size3,
                 int size4)
This constructs a number with specified name
Parameters:
name - - name of the variable
size1 - - size of the array 1st-Dimension
size2 - - size of the array 2nd-Dimension
size3 - - size of the array 3rd-Dimension
size4 - - size of the array 4th-Dimension

NslFloat4

public NslFloat4(java.lang.String name,
                 NslHierarchy curParent,
                 int size1,
                 int size2,
                 int size3,
                 int size4)

NslFloat4

public NslFloat4(java.lang.String name,
                 NslNumeric4 n)
This constructs a number with specified name
Parameters:
name - - name of the variable
n - - initialized values

NslFloat4

public NslFloat4(java.lang.String name,
                 NslHierarchy curParent,
                 NslNumeric4 n)

NslFloat4

public NslFloat4(java.lang.String name,
                 float[][][][] d)
This constructs a number with specified name
Parameters:
name - - name of the variable
n - - initialized values
Method Detail

nslMemAlloc

public void nslMemAlloc(int size1,
                        int size2,
                        int size3,
                        int size4)

get

public float[][][][] get()

get

public float[][][] get(int pos1)

get

public float[][] get(int pos1,
                     int pos2)

get

public float[] get(int pos1,
                   int pos2,
                   int pos3)

get

public float get(int pos1,
                 int pos2,
                 int pos3,
                 int pos4)

get

public float get(NslInt0 pos1,
                 NslInt0 pos2,
                 NslInt0 pos3,
                 NslInt0 pos4)

getfloat4

public float[][][][] getfloat4()
Overrides:
getfloat4 in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Returns:
- the value of this object in java numerical array type float[][][][].

getdouble4

public double[][][][] getdouble4()
Overrides:
getdouble4 in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Returns:
- the value of this object in java numerical array type double[][][][].

getint4

public int[][][][] getint4()
Overrides:
getint4 in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Returns:
- the value of this object in java numerical array type int[][][][].

getdouble3

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

getfloat3

public float[][][] getfloat3(int pos1)
Overrides:
getfloat3 in class NslNumeric4
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 int[][][] getint3(int pos1)
Overrides:
getint3 in class NslNumeric4
Parameters:
pos1 - - left most index
Returns:
the value of the element in pos1th and pos2th and pos3th in java numerical type int.

getdouble2

public double[][] getdouble2(int pos1,
                             int pos2)
2--------------------------------------------*---- /**
Overrides:
getdouble2 in class NslNumeric4
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 float[][] getfloat2(int pos1,
                           int pos2)
Overrides:
getfloat2 in class NslNumeric4
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 int[][] getint2(int pos1,
                       int pos2)
Overrides:
getint2 in class NslNumeric4
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 double[] getdouble1(int pos1,
                           int pos2,
                           int pos3)
1--------------------------------------------*---- /**
Overrides:
getdouble1 in class NslNumeric4
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 float[] getfloat1(int pos1,
                         int pos2,
                         int pos3)
Overrides:
getfloat1 in class NslNumeric4
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 int[] getint1(int pos1,
                     int pos2,
                     int pos3)
Overrides:
getint1 in class NslNumeric4
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 double getdouble(int pos1,
                        int pos2,
                        int pos3,
                        int pos4)
Overrides:
getdouble in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
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 float getfloat(int pos1,
                      int pos2,
                      int pos3,
                      int pos4)
Overrides:
getfloat in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
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 int getint(int pos1,
                  int pos2,
                  int pos3,
                  int pos4)
Overrides:
getint in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
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.

getNslFloat4

public NslFloat4 getNslFloat4()
Description copied from class: NslNumeric4
get the value of this object in NslFloat4 form.
Overrides:
getNslFloat4 in class NslNumeric4

getNslDouble4

public NslDouble4 getNslDouble4()
Description copied from class: NslNumeric4
get the value of this object in NslDouble4 form.
Overrides:
getNslDouble4 in class NslNumeric4

getNslInt4

public NslInt4 getNslInt4()
Description copied from class: NslNumeric4
get the value of this object in NslInt4 form.
Overrides:
getNslInt4 in class NslNumeric4

getSector

public float[][][][] getSector(int start1,
                               int start2,
                               int start3,
                               int start4,
                               int end1,
                               int end2,
                               int end3,
                               int end4)

set

public void set(float[][][][] value)
Description copied from class: NslNumeric4
set the value of this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Parameters:
value - - four dimension array

set

public void set(double[][][][] value)
Description copied from class: NslNumeric4
set the value of this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Parameters:
value - - four dimension array

set

public void set(int[][][][] value)
Description copied from class: NslNumeric4
set the value of this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Parameters:
value - - four dimension array

set

public void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                double value)
Description copied from class: NslNumeric4
set the value of an element in this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
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 void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                float value)
Description copied from class: NslNumeric4
set the value of an element in this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
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 void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                int value)
Description copied from class: NslNumeric4
set the value of an element in this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
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 void set(float value)
Description copied from class: NslNumeric4
set the value of all elements of this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Parameters:
value - - value to be defined.

set

public void set(double value)
Description copied from class: NslNumeric4
set the value of all elements of this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Parameters:
value - - value to be defined.

set

public void set(int value)
Description copied from class: NslNumeric4
set the value of all elements of this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Parameters:
value - - value to be defined.

set

public void set(NslNumeric4 n)
Description copied from class: NslNumeric4
Set the value of this object to be value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Parameters:
value - - in any of NslNumeric4 type.

set

public void set(NslNumeric0 n)
Description copied from class: NslNumeric4
set the value of all elements of this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
Parameters:
value - - value to be defined.

set

public void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                NslNumeric0 value)
Description copied from class: NslNumeric4
set the value of an element in this object to value
Overrides:
set in class NslNumeric4
Following copied from class: nslj.src.lang.NslNumeric4
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

setSector

public void setSector(float[][][][] d,
                      int startpos1,
                      int startpos2,
                      int startpos3,
                      int startpos4)

getNslSizes

public void getNslSizes(NslInt0 size1,
                        NslInt0 size2,
                        NslInt0 size3,
                        NslInt0 size4)
Overrides:
getNslSizes in class NslNumeric4

getSizes

public int[] getSizes()
Overrides:
getSizes in class NslNumeric4

getSize1

public int getSize1()
Description copied from class: NslNumeric4
Get the left most index
Overrides:
getSize1 in class NslNumeric4

getSize2

public int getSize2()
Description copied from class: NslNumeric4
Get the second to the left most index
Overrides:
getSize2 in class NslNumeric4

getSize3

public int getSize3()
Description copied from class: NslNumeric4
Get the third to the left most index
Overrides:
getSize3 in class NslNumeric4

getSize4

public int getSize4()
Description copied from class: NslNumeric4
Get the fourth to the left most index
Overrides:
getSize4 in class NslNumeric4

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()
Description copied from class: NslData
This method is equivalent to clone() method in java.lang.Object. It duplicates a copy of this number object. It is used in double buffered outport only.
Overrides:
duplicateThis in class NslData
Following copied from class: nslj.src.lang.NslData
See Also:

setReference

public void setReference(NslData n)
Description copied from class: NslData
Set the reference pointer of this number object to the data value of n. It is similar to two pointers pointing to a same object in C/C++. Whenenver the data value of one side is changed, the other side is changed as well. It is used only in NslPort
Overrides:
setReference in class NslData
Following copied from class: nslj.src.lang.NslData
Parameters:
n - - number that the reference pointer to the "true" numerical data is copied.
See Also:

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

print

public void print()

toString

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