|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.NslNumeric0 | +--nslj.src.lang.NslFloat0
Field Summary | |
NslFloatObj |
_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 | |
NslFloat0()
Constructor with default value 0 |
|
NslFloat0(double value)
Constructor, initialize the value to value |
|
NslFloat0(float value)
Constructor, initialize the value to value |
|
NslFloat0(int value)
Constructor, initialize the value to value |
|
NslFloat0(NslNumeric0 n)
Constructor, initialize the value to the same as another NslNumeric0 |
|
NslFloat0(java.lang.String name)
|
|
NslFloat0(java.lang.String name,
float value)
|
|
NslFloat0(java.lang.String name,
NslHierarchy curParent)
|
|
NslFloat0(java.lang.String name,
NslHierarchy curParent,
float value)
Constructor, initialize the value to value |
|
NslFloat0(java.lang.String name,
NslHierarchy curParent,
NslNumeric0 value)
|
|
NslFloat0(java.lang.String name,
NslNumeric0 value)
This constructs a number with specified name |
Method Summary | |
NslFloatObj |
_getfloat()
Get the value of this number |
void |
duplicateData(NslData n)
Copy all data from n to this number object. |
NslData |
duplicateThis()
Clone this number |
float |
get()
Get the value of this number |
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 |
float |
getfloat0()
Get the value of this number |
int |
getint()
Get the value of this number in integer |
NslDouble0 |
getNslDouble0()
Get the value of this number in single precision floating point NslNumeric |
NslFloat0 |
getNslFloat0()
Get the value of this number in single precision floating point NslNumeric |
NslInt0 |
getNslInt0()
Get the value of this number in single precision floating point NslNumeric |
boolean |
isDataSet()
Check if the internal number data is null |
void |
resetData()
Reset the reference pointer to null |
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(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.NslNumeric0 |
getDimensions, getNslSize, getSize, getSize1, getSize2, getSize3, getSize4, getSizes |
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 |
public NslFloatObj _data
Constructor Detail |
public NslFloat0()
public NslFloat0(float value)
value
- - the init valuepublic NslFloat0(int value)
value
- - the init valuepublic NslFloat0(double value)
value
- - the init valuepublic NslFloat0(NslNumeric0 n)
n
- - a scalar numberpublic NslFloat0(java.lang.String name)
public NslFloat0(java.lang.String name, NslHierarchy curParent)
public NslFloat0(java.lang.String name, NslNumeric0 value)
name
- - name of the variablevalue
- - initialized valuespublic NslFloat0(java.lang.String name, NslHierarchy curParent, NslNumeric0 value)
public NslFloat0(java.lang.String name, NslHierarchy curParent, float value)
name
- - name of the variablevalue
- - the init valuepublic NslFloat0(java.lang.String name, float value)
Method Detail |
public void duplicateData(NslData n)
NslData
duplicateData
in class NslData
nslj.src.lang.NslData
n
- - number to be copiedpublic NslData duplicateThis()
duplicateThis
in class NslData
public void setReference(NslData n)
setReference
in class NslData
n
- - number concernedpublic boolean isDataSet()
isDataSet
in class NslData
public void resetData()
resetData
in class NslData
public java.lang.String toString()
NslData
toString
in class NslData
public float get()
public NslFloatObj _getfloat()
public float getfloat0()
public double getdouble()
getdouble
in class NslNumeric0
public float getfloat()
getfloat
in class NslNumeric0
public int getint()
getint
in class NslNumeric0
public NslDouble0 getNslDouble0()
getNslDouble0
in class NslNumeric0
public NslFloat0 getNslFloat0()
getNslFloat0
in class NslNumeric0
public NslInt0 getNslInt0()
getNslInt0
in class NslNumeric0
public void set(double value)
set
in class NslNumeric0
value
- public void set(float value)
set
in class NslNumeric0
value
- public void set(int value)
set
in class NslNumeric0
value
- public void set(double[] value)
value
- public void set(float[] value)
value
- public void set(int[] value)
value
- public void set(double[][] value)
value
- public void set(float[][] value)
value
- public void set(int[][] value)
value
- public void set(double[][][] value)
value
- public void set(float[][][] value)
value
- public void set(int[][][] value)
value
- public void set(double[][][][] value)
value
- public void set(float[][][][] value)
value
- public void set(int[][][][] value)
value
- public void set(NslNumeric0 num)
set
in class NslNumeric0
num,
- a scalar NslNumeric
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |