nslj.src.lang
Class NslBoolean0

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.NslBoolean0
Direct Known Subclasses:
NslDinBoolean0, NslDoutBoolean0

public class NslBoolean0
extends NslBoolean


Field Summary
 NslBooleanObj _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
NslBoolean0()
          Constructor with default value null
NslBoolean0(boolean value)
          Constructor, initialize the value to value
NslBoolean0(NslBoolean0 n)
          Constructor, initialize the value to the same as another NslNumeric0
NslBoolean0(NslNumeric0 n)
          Constructor, initialize the value to the same as another NslNumeric0
NslBoolean0(java.lang.String name)
          This constructs a number with specified name
NslBoolean0(java.lang.String name, boolean value)
          Constructor, initialize the value to value
NslBoolean0(java.lang.String name, int value)
          Constructor, initialize the value to value
NslBoolean0(java.lang.String name, NslBoolean0 value)
          This constructs a number with specified name
NslBoolean0(java.lang.String name, NslHierarchy curParent)
           
NslBoolean0(java.lang.String name, NslHierarchy curParent, boolean value)
           
NslBoolean0(java.lang.String name, NslHierarchy curParent, int value)
           
NslBoolean0(java.lang.String name, NslHierarchy curParent, NslBoolean0 value)
           
NslBoolean0(java.lang.String name, NslHierarchy curParent, NslNumeric0 value)
           
NslBoolean0(java.lang.String name, NslNumeric0 value)
          This constructs a number with specified name
 
Method Summary
 NslBooleanObj _getboolean()
          Get the value of this number in double precision floating point number
 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 getbolean0()
          Get the value of this number in integer
 boolean getboolean()
          Get the value of this number in integer
 int getDimensions()
          get the dimensions of this object
 double getdouble()
          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
 NslBoolean0 getNslBoolean0()
          Get the value of this number in integer
 NslDouble0 getNslDouble0()
          Get the value of this number in double precision floating point NslNumeric
 NslFloat0 getNslFloat0()
          Get the value of this number in single precision floating point NslNumeric
 NslInt0 getNslInteger0()
          Get the value of this number in integer
 void getNslSize(NslInt0 size)
          get the size of this array and put it into size
 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 resetData()
          Reset the reference pointer to null
 void set(boolean value)
          Set the value of this number to value
 void set(boolean[] value)
          Set the value of this number to value
 void set(boolean[][] value)
          Set the value of this number to value
 void set(boolean[][][] value)
          Set the value of this number to value
 void set(boolean[][][][] 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(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(NslBoolean0 num)
          Set the value of this number to num
 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.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 NslBooleanObj _data
Constructor Detail

NslBoolean0

public NslBoolean0()
Constructor with default value null

NslBoolean0

public NslBoolean0(boolean value)
Constructor, initialize the value to value
Parameters:
value - - the init value

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

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

NslBoolean0

public NslBoolean0(java.lang.String name,
                   NslHierarchy curParent,
                   boolean 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()
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

_getboolean

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

getbolean0

public boolean getbolean0()
Get the value of this number in integer
Returns:
value - in integer

getdouble

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

getfloat

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

getint

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

getboolean

public boolean getboolean()
Get the value of this number in integer
Returns:
value - in integer

getNslDouble0

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

getNslFloat0

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

getNslInteger0

public NslInt0 getNslInteger0()
Get the value of this number in integer
Returns:
NslNumeric - in integer

getNslBoolean0

public NslBoolean0 getNslBoolean0()
Get the value of this number in integer
Returns:
NslNumeric - in integer

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(boolean 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
Parameters:
num, - a scalar NslNumeric

set

public void set(boolean[] 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(boolean[][] 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(boolean[][][] 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(boolean[][][][] value)
Set the value of this number to value
Parameters:
value -  

set

public void set(NslBoolean0 num)
Set the value of this number to num
Parameters:
num, - a scalar NslBoolean

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 size)
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