|
|||||||||
| 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.NslBoolean
|
+--nslj.src.lang.NslBoolean1
| Field Summary | |
boolean[] |
_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 | |
NslBoolean1()
Constructor with default value null |
|
NslBoolean1(boolean[] value)
Constructor, initialize the value to value |
|
NslBoolean1(int size)
Constructor, initialize the number to be size size 1-D array |
|
NslBoolean1(NslBoolean1 n)
Constructor, initialize the value to the same as another NslNumeric0 |
|
NslBoolean1(NslNumeric1 n)
Constructor, initialize the value to the same as another NslNumeric0 |
|
NslBoolean1(java.lang.String name)
This constructs a number with specified name |
|
NslBoolean1(java.lang.String name,
int size)
This constructs a number with specified name |
|
NslBoolean1(java.lang.String name,
NslBoolean1 value)
This constructs a number with specified name |
|
NslBoolean1(java.lang.String name,
NslHierarchy curParent)
|
|
NslBoolean1(java.lang.String name,
NslHierarchy curParent,
boolean[] value)
|
|
NslBoolean1(java.lang.String name,
NslHierarchy curParent,
int size)
|
|
NslBoolean1(java.lang.String name,
NslHierarchy curParent,
NslBoolean1 value)
|
|
NslBoolean1(java.lang.String name,
NslHierarchy curParent,
NslNumeric1 value)
|
|
NslBoolean1(java.lang.String name,
NslNumeric1 value)
This constructs a number with specified name |
|
| Method Summary | |
void |
duplicateData(NslData n)
Copy all data from n to this number object. |
NslData |
duplicateThis()
Clone this number |
boolean[] |
get()
Get the value of this number |
boolean |
get(int pos)
|
boolean |
getboolean(int pos)
Get the posth element of this one-dimensional array |
boolean[] |
getboolean1()
Get the value of this number in integer |
int |
getDimensions()
get the dimensions of this object |
double |
getdouble(int pos)
Get the posth element of this one-dimensional array |
double[] |
getdouble1()
Get the value of this number in double precision floating point number |
float |
getfloat(int pos)
Get the posth element of this one-dimensional array |
float[] |
getfloat1()
Get the value of this number in single precision floating point number |
int |
getint(int pos)
Get the posth element of this one-dimensional array |
int[] |
getint1()
Get the value of this number in integer |
NslBoolean1 |
getNslBoolean1()
Get the value of this number in integer |
NslDouble1 |
getNslDouble1()
Get the value of this number in double precision floating point NslNumeric |
NslFloat1 |
getNslFloat1()
Get the value of this number in single precision floating point NslNumeric |
NslInt1 |
getNslInteger1()
Get the value of this number in integer |
void |
getNslSize(NslInt0 size)
get the size of this array and put it into size |
boolean[] |
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 rightmost dimension |
int |
getSize2()
get the size of this array at the second to right dimension |
int |
getSize3()
get the size of this array at the third to right dimension |
int |
getSize4()
get the size of this array at the fourth to right dimension |
int[] |
getSizes()
get the size of this array and put it into size |
boolean |
isDataSet()
Check if the internal number data is null |
void |
nslMemAlloc(int size)
allocate memory dynamically |
void |
resetData()
Reset the reference pointer to null |
void |
set(boolean value)
Set all elements of this array to value |
void |
set(boolean[] value)
Set the value of this number to value |
void |
set(double value)
Set all elements of this array to value |
void |
set(double[] value)
Set the value of this number to value |
void |
set(float value)
Set all elements of this array to value |
void |
set(float[] value)
Set the value of this number to value |
void |
set(int value)
Set all elements of this array to value |
void |
set(int[] value)
Set the value of this number to value |
void |
set(int pos,
boolean value)
Set the posth element 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,
NslBoolean0 value)
|
void |
set(int pos,
NslNumeric0 value)
|
void |
set(NslBoolean0 value)
Set all elements of this array to value |
void |
set(NslBoolean1 value)
Set the value 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)
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. |
void |
setSector(boolean[] 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.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 boolean[] _data
| Constructor Detail |
public NslBoolean1()
public NslBoolean1(boolean[] value)
value - - the init valuepublic NslBoolean1(NslNumeric1 n)
n - - a scalar numberpublic NslBoolean1(NslBoolean1 n)
n - - a scalar numberpublic NslBoolean1(int size)
size - - size of the new arraypublic NslBoolean1(java.lang.String name)
name - - name of the variable
public NslBoolean1(java.lang.String name,
int size)
name - - name of the variablesize - - size of the array
public NslBoolean1(java.lang.String name,
NslHierarchy curParent)
public NslBoolean1(java.lang.String name,
NslHierarchy curParent,
int size)
public NslBoolean1(java.lang.String name,
NslNumeric1 value)
name - - name of the variablevalue - - initialized values
public NslBoolean1(java.lang.String name,
NslBoolean1 value)
name - - name of the variablevalue - - initialized values
public NslBoolean1(java.lang.String name,
NslHierarchy curParent,
NslNumeric1 value)
public NslBoolean1(java.lang.String name,
NslHierarchy curParent,
NslBoolean1 value)
public NslBoolean1(java.lang.String name,
NslHierarchy curParent,
boolean[] value)
| Method Detail |
public void nslMemAlloc(int size)
public void duplicateData(NslData n)
NslDataduplicateData in class NslDatanslj.src.lang.NslDatan - - number to be copiedpublic NslData duplicateThis()
duplicateThis in class NslDatapublic void setReference(NslData n)
setReference in class NslDatan - - number concernedpublic boolean isDataSet()
isDataSet in class NslDatapublic void resetData()
resetData in class NslDatapublic java.lang.String toString()
NslDatatoString in class NslDatapublic boolean[] get()
public boolean get(int pos)
public double[] getdouble1()
public float[] getfloat1()
public int[] getint1()
public boolean[] getboolean1()
public double getdouble(int pos)
public float getfloat(int pos)
public int getint(int pos)
public boolean getboolean(int pos)
public NslDouble1 getNslDouble1()
public NslFloat1 getNslFloat1()
public NslInt1 getNslInteger1()
public NslBoolean1 getNslBoolean1()
public boolean[] getSector(int start,
int end)
start - - the element number start the captureend - - the element number ends the capturepublic void set(double[] value)
value - public void set(float[] value)
value - public void set(int[] value)
value - public void set(boolean[] value)
value -
public void set(int pos,
double value)
pos - value -
public void set(int pos,
float value)
pos - value -
public void set(int pos,
int value)
pos - value -
public void set(int pos,
boolean value)
pos - value - public void set(double value)
value - public void set(float value)
value - public void set(int value)
value - public void set(boolean value)
value - public void set(NslNumeric1 value)
value - public void set(NslNumeric0 value)
value -
public void set(int pos,
NslNumeric0 value)
public void set(NslBoolean1 value)
value - public void set(NslBoolean0 value)
value -
public void set(int pos,
NslBoolean0 value)
public void setSector(boolean[] d,
int startpos)
d - - object 1-D arraypublic int getDimensions()
getDimensions in class NslDatapublic int getSize()
public void getNslSize(NslInt0 size)
size - public int[] getSizes()
getSizes in class NslDatapublic int getSize1()
getSize1 in class NslDatapublic int getSize2()
getSize2 in class NslDatapublic int getSize3()
getSize3 in class NslDatapublic int getSize4()
getSize4 in class NslData
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||