|
|||||||||
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.NslDouble1
Field Summary | |
double[] |
_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 | |
NslDouble1()
Constructor - initialize the reference of the number to be null |
|
NslDouble1(double[] d)
Constructor, copy the contain of array d to the new number |
|
NslDouble1(int size)
Constructor, initialize the number to be size size 1-D array |
|
NslDouble1(NslNumeric1 n)
Constructor, initialize the value to the same as another NslNumeric1 |
|
NslDouble1(java.lang.String name)
This constructs a number with specified name |
|
NslDouble1(java.lang.String name,
double[] d)
This constructs a number with specified name |
|
NslDouble1(java.lang.String name,
int size)
This constructs a number with specified name |
|
NslDouble1(java.lang.String name,
NslHierarchy curParent)
|
|
NslDouble1(java.lang.String name,
NslHierarchy curParent,
int size)
|
|
NslDouble1(java.lang.String name,
NslHierarchy curParent,
NslNumeric1 n)
This constructs a number with specified name |
|
NslDouble1(java.lang.String name,
NslNumeric1 n)
|
Method Summary | |
void |
duplicateData(NslData n)
Duplicating data from _new data of double buffered port to _old data object |
NslData |
duplicateThis()
Copy itself |
double[] |
get()
Get the contain of 1D array in double precision floating point |
double |
get(int pos)
|
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()
Get a NslDouble1 array with the same value as this array |
NslFloat1 |
getNslFloat1()
Create a NslFloat1 array with the same value as this array |
NslInt1 |
getNslInt1()
Create a NslInt1 array with the same value as this array |
NslNumeric1 |
getNslNumeric1()
Get a NslNumeric1 array with the same value as this array |
void |
getNslSize(NslInt0 size)
get the size of this array and put it into size |
double[] |
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 |
int |
getSize1()
get the size of this array at the first dimension |
int[] |
getSizes()
get the size of this array and put it into size |
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(double[] 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 double[] _data
Constructor Detail |
public NslDouble1(double[] d)
d
- - the value of new numberpublic NslDouble1(NslNumeric1 n)
n
- - a 1-D arraypublic NslDouble1(int size)
size
- - size of the new arraypublic NslDouble1()
public NslDouble1(java.lang.String name)
name
- - name of the variablepublic NslDouble1(java.lang.String name, NslHierarchy curParent)
public NslDouble1(java.lang.String name, int size)
name
- - name of the variablesize
- - size of the arraypublic NslDouble1(java.lang.String name, NslHierarchy curParent, int size)
public NslDouble1(java.lang.String name, NslHierarchy curParent, NslNumeric1 n)
name
- - name of the variablen
- - initialized valuespublic NslDouble1(java.lang.String name, NslNumeric1 n)
public NslDouble1(java.lang.String name, double[] d)
name
- - name of the variablen
- - initialized valuesMethod Detail |
public void nslMemAlloc(int size)
public double[] get()
public double get(int pos)
public double[] getdouble1()
getdouble1
in class NslNumeric1
public float[] getfloat1()
getfloat1
in class NslNumeric1
public int[] getint1()
getint1
in class NslNumeric1
public double getdouble(int pos)
getdouble
in class NslNumeric1
pos
- - position of the arraypublic float getfloat(int pos)
getfloat
in class NslNumeric1
pos
- - position of the arraypublic int getint(int pos)
getint
in class NslNumeric1
pos
- - position of the arraypublic NslNumeric1 getNslNumeric1()
public NslDouble1 getNslDouble1()
getNslDouble1
in class NslNumeric1
public NslFloat1 getNslFloat1()
getNslFloat1
in class NslNumeric1
public NslInt1 getNslInt1()
getNslInt1
in class NslNumeric1
public double[] 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 NslNumeric1
value
- public void set(float[] value)
set
in class NslNumeric1
value
- public void set(int[] value)
set
in class NslNumeric1
value
- public void set(int pos, double value)
set
in class NslNumeric1
pos
- value
- public void set(int pos, float value)
set
in class NslNumeric1
pos
- value
- public void set(int pos, int value)
set
in class NslNumeric1
pos
- value
- public void set(double value)
set
in class NslNumeric1
value
- public void set(float value)
set
in class NslNumeric1
value
- public void set(int value)
set
in class NslNumeric1
value
- public void set(NslNumeric1 value)
set
in class NslNumeric1
value
- public void set(NslNumeric0 value)
set
in class NslNumeric1
value
- public void set(int pos, NslNumeric0 value)
set
in class NslNumeric1
pos
- value
- public void setSector(double[] d, int startpos)
d
- - object 1-D arraypublic int getSize()
getSize
in class NslNumeric1
public void getNslSize(NslInt0 size)
getNslSize
in class NslNumeric1
size
- public int[] getSizes()
getSizes
in class NslNumeric1
public int getSize1()
getSize1
in class NslNumeric1
public void duplicateData(NslData n)
duplicateData
in class NslData
n
- - number with new valueNslOutPort#nslUpdateBuffers
public NslData duplicateThis()
duplicateThis
in class NslData
NslOutport
public void setReference(NslData n)
setReference
in class NslData
n
- number to be referencepublic boolean isDataSet()
isDataSet
in class NslData
public void resetData()
resetData
in class NslData
public void print()
public java.lang.String toString()
NslData
toString
in class NslData
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |