nslj.src.lang
Class NslBoolean4

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.NslBoolean
                                |
                                +--nslj.src.lang.NslBoolean4
Direct Known Subclasses:
NslDinBoolean4, NslDoutBoolean4

public class NslBoolean4
extends NslBoolean


Field Summary
 boolean[][][][] _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
NslBoolean4()
          Constructor with default value null
NslBoolean4(boolean[][][][] value)
          Constructor, initialize the value to value
NslBoolean4(int size1, int size2, int size3, int size4)
          Constructor, initialize the number to be size size 1-D array
NslBoolean4(NslBoolean4 n)
          Constructor, initialize the value to the same as another NslNumeric0
NslBoolean4(NslNumeric4 n)
          Constructor, initialize the value to the same as another NslNumeric0
NslBoolean4(java.lang.String name)
          This constructs a number with specified name
NslBoolean4(java.lang.String name, int size1, int size2, int size3, int size4)
          This constructs a number with specified name
NslBoolean4(java.lang.String name, NslBoolean4 value)
          This constructs a number with specified name
NslBoolean4(java.lang.String name, NslHierarchy curParent)
           
NslBoolean4(java.lang.String name, NslHierarchy curParent, boolean[][][][] value)
           
NslBoolean4(java.lang.String name, NslHierarchy curParent, int size1, int size2, int size3, int size4)
           
NslBoolean4(java.lang.String name, NslHierarchy curParent, NslBoolean4 value)
           
NslBoolean4(java.lang.String name, NslHierarchy curParent, NslNumeric4 value)
           
NslBoolean4(java.lang.String name, NslNumeric4 value)
          This constructs a number with specified name
 
Method Summary
 void duplicateData(NslData n)
          Copy all data from n to this number object.
 NslData duplicateThis()
          Clone this number
 boolean[][][][] get()
          Get the value of this number
 boolean[][][] get(int pos)
           
 boolean[][] get(int pos1, int pos2)
           
 boolean[] get(int pos1, int pos2, int pos3)
           
 boolean get(int pos1, int pos2, int pos3, int pos4)
           
 boolean getboolean(int pos1, int pos2, int pos3, int pos4)
          Get the posth element of this one-dimensional array
 boolean[] getboolean1(int pos1, int pos2, int pos3)
          Get the value of this number in integer
 boolean[][] getboolean2(int pos1, int pos2)
          Get the value of this number in integer
 boolean[][][] getboolean3(int pos)
          Get the value of this number in integer
 boolean[][][][] getboolean4()
          Get the value of this number in integer
 int getDimensions()
          get the dimensions of this object
 double getdouble(int pos1, int pos2, int pos3, int pos4)
          Get the posth element of this one-dimensional array
 double[] getdouble1(int pos1, int pos2, int pos3)
          Get the value of this number in double precision floating point number
 double[][] getdouble2(int pos1, int pos2)
          Get the value of this number in double precision floating point number
 double[][][] getdouble3(int pos)
          Get the value of this number in double precision floating point number
 double[][][][] getdouble4()
          Get the value of this number in double precision floating point number
 float getfloat(int pos1, int pos2, int pos3, int pos4)
          Get the posth element of this one-dimensional array
 float[] getfloat1(int pos1, int pos2, int pos3)
          Get the value of this number in single precision floating point number
 float[][] getfloat2(int pos1, int pos2)
          Get the value of this number in single precision floating point number
 float[][][] getfloat3(int pos)
          Get the value of this number in single precision floating point number
 float[][][][] getfloat4()
          Get the value of this number in single precision floating point number
 int getint(int pos1, int pos2, int pos3, int pos4)
          Get the posth element of this one-dimensional array
 int[] getint1(int pos1, int pos2, int pos3)
          Get the value of this number in integer
 int[][] getint2(int pos1, int pos2)
          Get the value of this number in integer
 int[][][] getint3(int pos)
          Get the value of this number in integer
 int[][][][] getint4()
          Get the value of this number in integer
 NslBoolean4 getNslBoolean4()
          Get the value of this number in integer
 NslDouble4 getNslDouble4()
          Get the value of this number in double precision floating point NslNumeric
 NslFloat4 getNslFloat4()
          Get the value of this number in single precision floating point NslNumeric
 NslInt4 getNslInteger4()
          Get the value of this number in integer
 void getNslSize(NslInt0 size1, NslInt0 size2, NslInt0 size3, NslInt0 size4)
          get the size of this array and put it into size
 boolean[][][][] getSector(int start1, int start2, int start3, int start4, int end1, int end2, int end3, int end4)
           
 int getSize()
          get the size of this array
 int getSize1()
          get the size of this array at the rightmost dimension
 int getSize2()
          get the size of this array at the second to right dimension
 int getSize3()
          get the size of this array at the third to right dimension
 int getSize4()
          get the size of this array at the fourth to right dimension
 int[] getSizes()
          get the size of this array and put it into size
 boolean isDataSet()
          Check if the internal number data is null
 void nslMemAlloc(int size1, int size2, int size3, int size4)
          allocate memory dynamically
 void resetData()
          Reset the reference pointer to null
 void set(boolean value)
          Set all elements of this array to value
 void set(boolean[][][][] value)
           
 void set(double value)
          Set all elements of this array to value
 void set(double[][][][] value)
           
 void set(float value)
          Set all elements of this array to value
 void set(float[][][][] value)
           
 void set(int value)
          Set all elements of this array to value
 void set(int[][][][] value)
          Set the value of this number to value
 void set(int pos, boolean[][][] value)
           
 void set(int pos, double[][][] value)
           
 void set(int pos, float[][][] value)
           
 void set(int pos, int[][][] value)
           
 void set(int pos1, int pos2, boolean[][] value)
           
 void set(int pos1, int pos2, double[][] value)
           
 void set(int pos1, int pos2, float[][] value)
           
 void set(int pos1, int pos2, int[][] value)
           
 void set(int pos1, int pos2, int pos3, boolean[] value)
          Set the value of this number to value
 void set(int pos1, int pos2, int pos3, double[] value)
           
 void set(int pos1, int pos2, int pos3, float[] value)
          Set the value of this number to value
 void set(int pos1, int pos2, int pos3, int[] value)
          Set the value of this number to value
 void set(int pos1, int pos2, int pos3, int pos4, boolean value)
          Set the posth element of this array to value
 void set(int pos1, int pos2, int pos3, int pos4, double value)
          Set the posth element of this array to value
 void set(int pos1, int pos2, int pos3, int pos4, float value)
          Set the posth element of this array to value
 void set(int pos1, int pos2, int pos3, int pos4, int value)
          Set the posth element of this array to value
 void set(int pos1, int pos2, int pos3, int pos4, NslBoolean0 value)
           
 void set(int pos1, int pos2, int pos3, int pos4, NslNumeric0 value)
           
 void set(int pos1, int pos2, int pos3, NslBoolean1 value)
           
 void set(int pos1, int pos2, int pos3, NslNumeric1 value)
           
 void set(int pos1, int pos2, NslBoolean2 value)
           
 void set(int pos1, int pos2, NslNumeric2 value)
           
 void set(int pos, NslBoolean3 value)
           
 void set(int pos, NslNumeric3 value)
           
 void set(NslBoolean0 value)
          Set all elements of this array to value
 void set(NslBoolean4 n)
          Set the value of this array to value
 void set(NslNumeric0 value)
          Set all elements of this array to value
 void set(NslNumeric4 n)
          Set the value of this array to value
 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.
 void setSector(boolean[][][][] 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.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 boolean[][][][] _data
Constructor Detail

NslBoolean4

public NslBoolean4()
Constructor with default value null

NslBoolean4

public NslBoolean4(boolean[][][][] value)
Constructor, initialize the value to value
Parameters:
value - - the init value

NslBoolean4

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

NslBoolean4

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

NslBoolean4

public NslBoolean4(int size1,
                   int size2,
                   int size3,
                   int size4)
Constructor, initialize the number to be size size 1-D array
Parameters:
size - - size of the new array

NslBoolean4

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

NslBoolean4

public NslBoolean4(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
size - - size of the array

NslBoolean4

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

NslBoolean4

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

NslBoolean4

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

NslBoolean4

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

NslBoolean4

public NslBoolean4(java.lang.String name,
                   NslHierarchy curParent,
                   NslNumeric4 value)

NslBoolean4

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

NslBoolean4

public NslBoolean4(java.lang.String name,
                   NslHierarchy curParent,
                   boolean[][][][] value)
Method Detail

nslMemAlloc

public void nslMemAlloc(int size1,
                        int size2,
                        int size3,
                        int size4)
allocate memory dynamically

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()
Check if the internal number data is null
Overrides:
isDataSet in class NslData
Returns:
- true if it is defined, false if the reference 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 boolean[][][][] get()
Get the value of this number
Returns:
value, in default type

get

public boolean[][][] get(int pos)

get

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

get

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

get

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

getdouble4

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

getfloat4

public float[][][][] getfloat4()
Get the value of this number in single precision floating point number
Returns:
value - in single precision pointing point

getint4

public int[][][][] getint4()
Get the value of this number in integer
Returns:
value - in integer

getboolean4

public boolean[][][][] getboolean4()
Get the value of this number in integer
Returns:
value - in integer

getdouble3

public double[][][] getdouble3(int pos)
Get the value of this number in double precision floating point number
Returns:
value - in double precision pointing point

getfloat3

public float[][][] getfloat3(int pos)
Get the value of this number in single precision floating point number
Returns:
value - in single precision pointing point

getint3

public int[][][] getint3(int pos)
Get the value of this number in integer
Returns:
value - in integer

getboolean3

public boolean[][][] getboolean3(int pos)
Get the value of this number in integer
Returns:
value - in integer

getdouble2

public double[][] getdouble2(int pos1,
                             int pos2)
Get the value of this number in double precision floating point number
Returns:
value - in double precision pointing point

getfloat2

public float[][] getfloat2(int pos1,
                           int pos2)
Get the value of this number in single precision floating point number
Returns:
value - in single precision pointing point

getint2

public int[][] getint2(int pos1,
                       int pos2)
Get the value of this number in integer
Returns:
value - in integer

getboolean2

public boolean[][] getboolean2(int pos1,
                               int pos2)
Get the value of this number in integer
Returns:
value - in integer

getdouble1

public double[] getdouble1(int pos1,
                           int pos2,
                           int pos3)
Get the value of this number in double precision floating point number
Returns:
value - in double precision pointing point

getfloat1

public float[] getfloat1(int pos1,
                         int pos2,
                         int pos3)
Get the value of this number in single precision floating point number
Returns:
value - in single precision pointing point

getint1

public int[] getint1(int pos1,
                     int pos2,
                     int pos3)
Get the value of this number in integer
Returns:
value - in integer

getboolean1

public boolean[] getboolean1(int pos1,
                             int pos2,
                             int pos3)
Get the value of this number in integer
Returns:
value - in integer

getdouble

public double getdouble(int pos1,
                        int pos2,
                        int pos3,
                        int pos4)
Get the posth element of this one-dimensional array
Returns:
- value in java numerical type double.

getfloat

public float getfloat(int pos1,
                      int pos2,
                      int pos3,
                      int pos4)
Get the posth element of this one-dimensional array
Returns:
- value in java numerical type float.

getint

public int getint(int pos1,
                  int pos2,
                  int pos3,
                  int pos4)
Get the posth element of this one-dimensional array
Returns:
- value in java numerical type int.

getboolean

public boolean getboolean(int pos1,
                          int pos2,
                          int pos3,
                          int pos4)
Get the posth element of this one-dimensional array
Returns:
- value in java numerical type int.

getNslDouble4

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

getNslFloat4

public NslFloat4 getNslFloat4()
Get the value of this number in single precision floating point NslNumeric
Returns:
NslNumeric - in single precision pointing point

getNslInteger4

public NslInt4 getNslInteger4()
Get the value of this number in integer
Returns:
NslNumeric - in integer

getNslBoolean4

public NslBoolean4 getNslBoolean4()
Get the value of this number in integer
Returns:
NslNumeric - in integer

getSector

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

set

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

set

public void set(float[][][][] value)

set

public void set(double[][][][] value)

set

public void set(boolean[][][][] value)

set

public void set(int pos,
                int[][][] value)

set

public void set(int pos,
                float[][][] value)

set

public void set(int pos,
                double[][][] value)

set

public void set(int pos,
                boolean[][][] value)

set

public void set(int pos1,
                int pos2,
                int[][] value)

set

public void set(int pos1,
                int pos2,
                float[][] value)

set

public void set(int pos1,
                int pos2,
                double[][] value)

set

public void set(int pos1,
                int pos2,
                boolean[][] value)

set

public void set(int pos1,
                int pos2,
                int pos3,
                double[] value)

set

public void set(int pos1,
                int pos2,
                int pos3,
                float[] value)
Set the value of this number to value
Parameters:
value -  

set

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

set

public void set(int pos1,
                int pos2,
                int pos3,
                boolean[] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                double value)
Set the posth element of this array to value
Parameters:
pos -  
value -  

set

public void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                float value)
Set the posth element of this array to value
Parameters:
pos -  
value -  

set

public void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                int value)
Set the posth element of this array to value
Parameters:
pos -  
value -  

set

public void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                boolean value)
Set the posth element of this array to value
Parameters:
pos -  
value -  

set

public void set(double value)
Set all elements of this array to value
Parameters:
value -  

set

public void set(float value)
Set all elements of this array to value
Parameters:
value -  

set

public void set(int value)
Set all elements of this array to value
Parameters:
value -  

set

public void set(boolean value)
Set all elements of this array to value
Parameters:
value -  

set

public void set(NslNumeric4 n)
Set the value of this array to value
Parameters:
value -  

set

public void set(int pos,
                NslNumeric3 value)

set

public void set(int pos1,
                int pos2,
                NslNumeric2 value)

set

public void set(int pos1,
                int pos2,
                int pos3,
                NslNumeric1 value)

set

public void set(NslNumeric0 value)
Set all elements of this array to value
Parameters:
value -  

set

public void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                NslNumeric0 value)

set

public void set(NslBoolean4 n)
Set the value of this array to value
Parameters:
value -  

set

public void set(int pos,
                NslBoolean3 value)

set

public void set(int pos1,
                int pos2,
                NslBoolean2 value)

set

public void set(int pos1,
                int pos2,
                int pos3,
                NslBoolean1 value)

set

public void set(NslBoolean0 value)
Set all elements of this array to value
Parameters:
value -  

set

public void set(int pos1,
                int pos2,
                int pos3,
                int pos4,
                NslBoolean0 value)

setSector

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

getDimensions

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

getSize

public int getSize()
get the size of this array
Returns:
always zero

getNslSize

public void getNslSize(NslInt0 size1,
                       NslInt0 size2,
                       NslInt0 size3,
                       NslInt0 size4)
get the size of this array and put it into size
Parameters:
size -  

getSizes

public 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 int getSize1()
get the size of this array at the rightmost dimension
Overrides:
getSize1 in class NslData
Returns:
always zero

getSize2

public int getSize2()
get the size of this array at the second to right dimension
Overrides:
getSize2 in class NslData
Returns:
always zero

getSize3

public int getSize3()
get the size of this array at the third to right dimension
Overrides:
getSize3 in class NslData
Returns:
always zero

getSize4

public int getSize4()
get the size of this array at the fourth to right dimension
Overrides:
getSize4 in class NslData
Returns:
always zero