|
|||||||||
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.NslInt1
Field Summary | |
int[] |
_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 | |
NslInt1()
Constructor - initialize the reference of the number to be null |
|
NslInt1(int size)
Constructor, initialize the number to be size size 1-D array |
|
NslInt1(int[] d)
Constructor, copy the contain of array d to the new number |
|
NslInt1(NslNumeric1 n)
Constructor, initialize the value to the same as another NslNumeric1 |
|
NslInt1(java.lang.String name)
This constructs a number with specified name |
|
NslInt1(java.lang.String name,
int size)
This constructs a number with specified name |
|
NslInt1(java.lang.String name,
int[] d)
Constructor, copy the contain of array d to the new number |
|
NslInt1(java.lang.String name,
NslHierarchy curParent)
|
|
NslInt1(java.lang.String name,
NslHierarchy curParent,
int size)
|
|
NslInt1(java.lang.String name,
NslHierarchy curParent,
NslNumeric1 n)
|
|
NslInt1(java.lang.String name,
NslNumeric1 n)
This constructs a number with specified name |
Method Summary | |
void |
duplicateData(NslData n)
Duplicating data from _new data of double buffered port to _old data object |
NslData |
duplicateThis()
Copy itself |
int[] |
get()
Get the contain of 1D array in integer |
int |
get(int pos1)
|
double |
getdouble(int pos)
Get the posth element of this one-dimensional array |
double[] |
getdouble1()
Get the array in double precision floating point |
float |
getfloat(int pos)
Get the posth element of this one-dimensional array |
float[] |
getfloat1()
Get the array in single precision floating point |
int |
getint(int pos)
Get the posth element of this one-dimensional array |
int[] |
getint1()
Get the array in single precision floating point |
NslDouble1 |
getNslDouble1()
Create 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()
Get 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 |
int[] |
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()
|
int |
getSize1()
get the size of this array at the rightmost 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 value of posth element of this object 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(int[] 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 int[] _data
Constructor Detail |
public NslInt1(int[] d)
d
- - the value of new numberpublic NslInt1(NslNumeric1 n)
n
- - a 1-D arraypublic NslInt1(int size)
size
- - size of the new arraypublic NslInt1()
public NslInt1(java.lang.String name)
name
- - name of the variablepublic NslInt1(java.lang.String name, NslHierarchy curParent)
public NslInt1(java.lang.String name, int size)
name
- - name of the variablesize
- - size of the arraypublic NslInt1(java.lang.String name, NslHierarchy curParent, int size)
public NslInt1(java.lang.String name, NslNumeric1 n)
name
- - name of the variablen
- - initialized valuespublic NslInt1(java.lang.String name, NslHierarchy curParent, NslNumeric1 n)
public NslInt1(java.lang.String name, int[] d)
name
- - name of the variabled
- - the value of new numberMethod Detail |
public void nslMemAlloc(int size)
public int[] get()
public int get(int pos1)
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
public float getfloat(int pos)
getfloat
in class NslNumeric1
public int getint(int pos)
getint
in class NslNumeric1
public NslInt1 getNslInt1()
getNslInt1
in class NslNumeric1
public NslDouble1 getNslDouble1()
getNslDouble1
in class NslNumeric1
public NslFloat1 getNslFloat1()
getNslFloat1
in class NslNumeric1
public int[] 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)
NslNumeric1
set
in class NslNumeric1
nslj.src.lang.NslNumeric1
pos
- - position of the element to be definedvalue
- - value to be defined.public void setSector(int[] 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 |