nslj.src.lang
Class NslString0

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.NslString
                                |
                                +--nslj.src.lang.NslString0
Direct Known Subclasses:
NslDinString0, NslDoutString0

public class NslString0
extends NslString


Field Summary
 java.lang.String _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
NslString0()
          Constructor with default value null
NslString0(NslString0 value)
          Constructor, initialize the value to value
NslString0(java.lang.String value)
          Constructor, initialize the value to value
NslString0(java.lang.String label, NslHierarchy parent)
           
NslString0(java.lang.String label, NslHierarchy parent, NslString0 value)
           
NslString0(java.lang.String label, NslHierarchy parent, java.lang.String value)
           
 
Method Summary
 void duplicateData(NslData string)
          Copy all data from n to this number object.
 NslData duplicateThis()
          This method is equivalent to clone() method in java.lang.Object.
 java.lang.String get()
          Get the value of this number
 boolean getboolean()
          Get the value of this number in boolean
 int getDimensions()
          Get number of dimensions of the Nsl Type
 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
 NslString0 getNslString0()
          Get the value of this number in integer
 int getSize1()
          Get the left most index (2st axis) in this array
 java.lang.String getstring()
          Get the value of this number in string
 boolean isDataSet()
          Check if the string is well-defined and the corresponding string data is set.
 void resetData()
          Reset the reference pointer to null
 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(float 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 set(NslString0 num)
          Set the value of this number to num
 void set(java.lang.String value)
          Set the value of this number to value
 void setReference(NslData string)
          Set the reference pointer of this string object to the data value of n.
 java.lang.String toString()
          Print the value of the string
 
Methods inherited from class nslj.src.lang.NslData
getDataType, getInport, getNslSizes, getOutport, getSize2, getSize3, getSize4, getSizes, 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 java.lang.String _data
Constructor Detail

NslString0

public NslString0()
Constructor with default value null

NslString0

public NslString0(java.lang.String value)
Constructor, initialize the value to value
Parameters:
value - - the init value

NslString0

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

NslString0

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

NslString0

public NslString0(java.lang.String label,
                  NslHierarchy parent,
                  NslString0 value)

NslString0

public NslString0(java.lang.String label,
                  NslHierarchy parent,
                  java.lang.String value)
Method Detail

get

public java.lang.String get()
Get the value of this number
Returns:
value, in default type

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 boolean
Returns:
value - in integer

getstring

public java.lang.String getstring()
Get the value of this number in string
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

getNslString0

public NslString0 getNslString0()
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(java.lang.String 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(NslBoolean0 num)
Set the value of this number to num
Parameters:
num, - a scalar NslBoolean

set

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

duplicateData

public void duplicateData(NslData string)
Copy all data from n to this number object. It is used in NslPort and relevant classes only.
Overrides:
duplicateData in class NslData
Parameters:
n - - number to be copied
See Also:

duplicateThis

public NslData duplicateThis()
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
See Also:

setReference

public void setReference(NslData string)
Set the reference pointer of this string 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
Parameters:
n - - number that the reference pointer to the "true" numerical data is copied.
See Also:

isDataSet

public boolean isDataSet()
Check if the string is well-defined and the corresponding string data is set.
Overrides:
isDataSet in class 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

toString

public java.lang.String toString()
Print the value of the string
Overrides:
toString in class NslData

getDimensions

public int getDimensions()
Description copied from class: NslData
Get number of dimensions of the Nsl Type
Overrides:
getDimensions in class NslData

getSize1

public int getSize1()
Description copied from class: NslData
Get the left most index (2st axis) in this array
Overrides:
getSize1 in class NslData