|
|||||||||
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.NslNumeric2 | +--nslj.src.lang.NslInt2
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 | |
NslInt2()
|
|
NslInt2(int[][] d)
|
|
NslInt2(int size1,
int size2)
|
|
NslInt2(NslNumeric2 n)
|
|
NslInt2(java.lang.String name)
This constructs a number with specified name |
|
NslInt2(java.lang.String name,
int[][] d)
|
|
NslInt2(java.lang.String name,
int size1,
int size2)
This constructs a number with specified name |
|
NslInt2(java.lang.String name,
NslHierarchy curParent)
|
|
NslInt2(java.lang.String name,
NslHierarchy curParent,
int size1,
int size2)
|
|
NslInt2(java.lang.String name,
NslHierarchy curParent,
NslNumeric2 n)
|
|
NslInt2(java.lang.String name,
NslNumeric2 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()
This method is equivalent to clone() method in java.lang.Object. |
int[][] |
get()
|
int[] |
get(int pos1)
|
int |
get(int pos1,
int pos2)
|
double |
getdouble(int pos1,
int pos2)
|
double[] |
getdouble1(int pos)
|
double[][] |
getdouble2()
|
float |
getfloat(int pos1,
int pos2)
|
float[] |
getfloat1(int pos)
|
float[][] |
getfloat2()
|
int |
getint(int pos1,
int pos2)
set the value of this object to value |
int[] |
getint1(int pos)
|
int[][] |
getint2()
|
NslDouble2 |
getNslDouble2()
get the value of this object in NslDouble2 form. |
NslFloat2 |
getNslFloat2()
|
NslInt2 |
getNslInt2()
|
void |
getNslSizes(NslInt0 size1,
NslInt0 size2)
|
int[][] |
getSector(int start1,
int start2,
int end1,
int end2)
|
int |
getSize1()
Get the left most index (2st axis) in this array |
int |
getSize2()
Get the second left most index (2st axis) in this array |
int[] |
getSizes()
|
boolean |
isDataSet()
Check if the number is well-defined and the corresponding numerical data is set. |
void |
nslMemAlloc(int size1,
int size2)
|
void |
print()
|
void |
resetData()
Reset the reference pointer to null |
void |
set(double value)
set the value of all elements of this object to value |
void |
set(double[][] value)
|
void |
set(float value)
set the value of all elements of this object to value |
void |
set(float[][] value)
set the value of this object to value |
void |
set(int value)
set the value of all elements of this object to value |
void |
set(int[][] value)
set the value of this object to value |
void |
set(int pos1,
int pos2,
double value)
set the value of an element in this object to value |
void |
set(int pos1,
int pos2,
float value)
set the value of an element in this object to value |
void |
set(int pos1,
int pos2,
int value)
set the value of an element in this object to value |
void |
set(int pos1,
int pos2,
NslNumeric0 value)
set the value of an element in this object to value |
void |
set(NslNumeric0 n)
set the value of all elements of this object to value |
void |
set(NslNumeric2 n)
Set the value of this object to be value |
void |
setReference(NslData n)
Set the reference pointer of this number object to the data value of n. |
void |
setSector(int[][] d,
int startpos1,
int startpos2)
|
java.lang.String |
toString()
Print the value of the numberic |
Methods inherited from class nslj.src.lang.NslNumeric2 |
getDimensions |
Methods inherited from class nslj.src.lang.NslData |
getDataType, getInport, getNslSizes, getOutport, 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 NslInt2(int[][] d)
public NslInt2(NslNumeric2 n)
public NslInt2(int size1, int size2)
public NslInt2()
public NslInt2(java.lang.String name)
name
- - name of the variablepublic NslInt2(java.lang.String name, NslHierarchy curParent)
public NslInt2(java.lang.String name, int size1, int size2)
name
- - name of the variablesize1
- - size of the array 1st-Dimensionsize2
- - size of the array 2nd-Dimensionpublic NslInt2(java.lang.String name, NslHierarchy curParent, int size1, int size2)
public NslInt2(java.lang.String name, NslNumeric2 n)
name
- - name of the variablen
- - initialized valuespublic NslInt2(java.lang.String name, NslHierarchy curParent, NslNumeric2 n)
public NslInt2(java.lang.String name, int[][] d)
Method Detail |
public void nslMemAlloc(int size1, int size2)
public int[][] get()
public int[] get(int pos1)
public int get(int pos1, int pos2)
public double[][] getdouble2()
getdouble2
in class NslNumeric2
nslj.src.lang.NslNumeric2
public float[][] getfloat2()
getfloat2
in class NslNumeric2
nslj.src.lang.NslNumeric2
public int[][] getint2()
getint2
in class NslNumeric2
nslj.src.lang.NslNumeric2
public double[] getdouble1(int pos)
getdouble1
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos
- - row number to be addressed.public float[] getfloat1(int pos)
getfloat1
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos
- - row number to be addressed.public int[] getint1(int pos)
getint1
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos
- - row number to be addressed.public double getdouble(int pos1, int pos2)
getdouble
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos1
- - row numberpos2
- - column numberpublic float getfloat(int pos1, int pos2)
getfloat
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos1
- - row numberpos2
- - column numberpublic int getint(int pos1, int pos2)
NslNumeric2
getint
in class NslNumeric2
nslj.src.lang.NslNumeric2
value
- - two dimension arraypublic int[][] getSector(int start1, int start2, int end1, int end2)
public void set(int[][] value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
value
- - two dimension arraypublic void set(float[][] value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
value
- - two dimension arraypublic void set(double[][] value)
set
in class NslNumeric2
public void set(int pos1, int pos2, double value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos1
- - the row number of the elementpos2
- - the column number of the elementvalue
- - scalar in doublepublic void set(int pos1, int pos2, float value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos1
- - the row number of the elementpos2
- - the column number of the elementvalue
- - scalar in floatpublic void set(int pos1, int pos2, int value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos1
- - the row number of the elementpos2
- - the column number of the elementvalue
- - scalar in intpublic void set(int value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
value
- - value to be defined.public void set(float value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
value
- - value to be defined.public void set(double value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
value
- - value to be defined.public void set(NslNumeric2 n)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
value
- - in any of NslNumeric2 type.public void set(NslNumeric0 n)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
value
- - value to be defined.public void set(int pos1, int pos2, NslNumeric0 value)
NslNumeric2
set
in class NslNumeric2
nslj.src.lang.NslNumeric2
pos1
- - the row number of the elementpos2
- - the column number of the elementvalue
- - scalar in NslNumeric0public void setSector(int[][] d, int startpos1, int startpos2)
public NslInt2 getNslInt2()
getNslInt2
in class NslNumeric2
public NslFloat2 getNslFloat2()
getNslFloat2
in class NslNumeric2
public NslDouble2 getNslDouble2()
NslNumeric2
getNslDouble2
in class NslNumeric2
public int[] getSizes()
getSizes
in class NslNumeric2
public void getNslSizes(NslInt0 size1, NslInt0 size2)
getNslSizes
in class NslNumeric2
public int getSize1()
getSize1
in class NslNumeric2
public int getSize2()
getSize2
in class NslNumeric2
public void duplicateData(NslData n)
NslData
duplicateData
in class NslData
nslj.src.lang.NslData
n
- - number to be copiedpublic NslData duplicateThis()
NslData
duplicateThis
in class NslData
nslj.src.lang.NslData
public void setReference(NslData n)
NslData
setReference
in class NslData
nslj.src.lang.NslData
n
- - number that the reference pointer to the "true"
numerical data is copied.public boolean isDataSet()
NslData
isDataSet
in class NslData
nslj.src.lang.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 |