|
|||||||||
| 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.NslNumeric1
|
+--nslj.src.lang.NslFloat1
| 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 | |
NslFloat1()
Constructor - initialize the reference of the number to be null |
|
NslFloat1(float[] d)
Constructor, copy the contain of array d to the new number |
|
NslFloat1(int size)
Constructor, initialize the number to be size size 1-D array |
|
NslFloat1(NslNumeric1 n)
Constructor, initialize the value to the same as another NslNumeric1 |
|
NslFloat1(java.lang.String name)
This constructs a number with specified name |
|
NslFloat1(java.lang.String name,
float[] d)
Constructor, copy the contain of array d to the new number |
|
NslFloat1(java.lang.String name,
int size)
This constructs a number with specified name |
|
NslFloat1(java.lang.String name,
NslHierarchy curParent)
|
|
NslFloat1(java.lang.String name,
NslHierarchy curParent,
int size)
|
|
NslFloat1(java.lang.String name,
NslHierarchy curParent,
NslNumeric1 n)
|
|
NslFloat1(java.lang.String name,
NslNumeric1 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()
Copy itself |
float[] |
get()
Get the contain of 1D array in single precision floating point |
float |
get(int pos1)
|
double |
getdouble(int pos)
Get the value of posth element in this number in double precision floating point |
double[] |
getdouble1()
Get the array in double precision floating point |
float |
getfloat(int pos)
Get the value of posth element in this number in single precision floating point |
float[] |
getfloat1()
Get the array in single precision floating point |
int |
getint(int pos)
Get the value of posth element in this number in integer |
int[] |
getint1()
Get the array in integer |
NslDouble1 |
getNslDouble1()
Create a NslDouble1 array with the same value as this array |
NslFloat1 |
getNslFloat1()
Get a NslFloat1 array with the same value as this array |
NslInt1 |
getNslInt1()
Create a NslInt1 array with the same value as this array |
void |
getNslSize(NslInt0 size)
get the size of this array and put it into size |
float[] |
getSector(int start,
int end)
Create an array that captures element start to end if start is smaller than 0, start is default as 0; if end is greater than the length of the array, end is default as the length of the array |
int |
getSize()
get the size of this array at the first dimension |
int |
getSize1()
get the size of this array at the first dimension |
int[] |
getSizes()
get the size of this array |
boolean |
isDataSet()
Check if the reference is well-defined |
void |
nslMemAlloc(int size)
|
void |
print()
|
void |
resetData()
Reset the reference pointer to null |
void |
set(double value)
Set all elements of this array to value |
void |
set(double[] value)
Set the value of this array to value |
void |
set(float value)
Set all elements of this array to value |
void |
set(float[] value)
Set the value of this array to value |
void |
set(int value)
Set all elements of this array to value |
void |
set(int[] value)
Set the value of this array to value |
void |
set(int pos,
double value)
Set the posth element of this array to value |
void |
set(int pos,
float value)
Set the posth element of this array to value |
void |
set(int pos,
int value)
Set the posth element of this array to value |
void |
set(int pos,
NslNumeric0 value)
Set the posth element of this array to value |
void |
set(NslNumeric0 value)
Set all elements of this array to value |
void |
set(NslNumeric1 value)
Set the value of this array to value |
void |
setReference(NslData n)
Reset the reference of _data to a number object |
void |
setSector(float[] d,
int startpos)
Set the value of the array from startpos to d If the array d longer than this array, those out of array scope elements are ignored. |
java.lang.String |
toString()
Print the value of the numberic |
| Methods inherited from class nslj.src.lang.NslNumeric1 |
getDimensions |
| Methods inherited from class nslj.src.lang.NslData |
getDataType, getInport, getNslSizes, getOutport, getSize2, getSize3, getSize4, 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 float[] _data
| Constructor Detail |
public NslFloat1(float[] d)
d - - the value of new numberpublic NslFloat1(NslNumeric1 n)
n - - a 1-D arraypublic NslFloat1(int size)
size - - size of the new arraypublic NslFloat1()
public NslFloat1(java.lang.String name)
name - - name of the variable
public NslFloat1(java.lang.String name,
NslHierarchy curParent)
public NslFloat1(java.lang.String name,
NslNumeric1 n)
name - - name of the variablen - - initialized values
public NslFloat1(java.lang.String name,
NslHierarchy curParent,
NslNumeric1 n)
public NslFloat1(java.lang.String name,
int size)
name - - name of the variablesize - - size of the array
public NslFloat1(java.lang.String name,
NslHierarchy curParent,
int size)
public NslFloat1(java.lang.String name,
float[] d)
name - - name of the variabled - - the value of new number| Method Detail |
public void nslMemAlloc(int size)
public float[] get()
public float get(int pos1)
public double[] getdouble1()
getdouble1 in class NslNumeric1public float[] getfloat1()
getfloat1 in class NslNumeric1public int[] getint1()
getint1 in class NslNumeric1public double getdouble(int pos)
getdouble in class NslNumeric1pos - - position of the arraypublic float getfloat(int pos)
getfloat in class NslNumeric1pos - - position of the arraypublic int getint(int pos)
getint in class NslNumeric1pos - - position of the arraypublic NslDouble1 getNslDouble1()
getNslDouble1 in class NslNumeric1public NslFloat1 getNslFloat1()
getNslFloat1 in class NslNumeric1public NslInt1 getNslInt1()
getNslInt1 in class NslNumeric1
public float[] getSector(int start,
int end)
start - - the element number start the captureend - - the element number ends the capturepublic void set(double[] value)
set in class NslNumeric1value - public void set(float[] value)
set in class NslNumeric1value - public void set(int[] value)
set in class NslNumeric1value -
public void set(int pos,
double value)
set in class NslNumeric1pos - value -
public void set(int pos,
float value)
set in class NslNumeric1pos - value -
public void set(int pos,
int value)
set in class NslNumeric1pos - value - public void set(double value)
set in class NslNumeric1value - public void set(float value)
set in class NslNumeric1value - public void set(int value)
set in class NslNumeric1value - public void set(NslNumeric1 value)
set in class NslNumeric1value - public void set(NslNumeric0 value)
set in class NslNumeric1value -
public void set(int pos,
NslNumeric0 value)
set in class NslNumeric1pos - value -
public void setSector(float[] d,
int startpos)
d - - object 1-D arraypublic int[] getSizes()
getSizes in class NslNumeric1public void getNslSize(NslInt0 size)
NslNumeric1getNslSize in class NslNumeric1nslj.src.lang.NslNumeric1size - public int getSize()
getSize in class NslNumeric1public int getSize1()
getSize1 in class NslNumeric1public void duplicateData(NslData n)
NslDataduplicateData in class NslDatanslj.src.lang.NslDatan - - number to be copiedpublic NslData duplicateThis()
duplicateThis in class NslDataNslOutportpublic void setReference(NslData n)
setReference in class NslDatan - number to be referencepublic boolean isDataSet()
isDataSet in class NslDatapublic void resetData()
resetData in class NslDatapublic void print()
public java.lang.String toString()
NslDatatoString in class NslData
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||