|
|||||||||
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.NslNumeric4 | +--nslj.src.lang.NslFloat4
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 | |
NslFloat4()
|
|
NslFloat4(float[][][][] d)
|
|
NslFloat4(int size1,
int size2,
int size3,
int size4)
|
|
NslFloat4(NslNumeric4 n)
|
|
NslFloat4(java.lang.String name)
This constructs a number with specified name |
|
NslFloat4(java.lang.String name,
float[][][][] d)
This constructs a number with specified name |
|
NslFloat4(java.lang.String name,
int size1,
int size2,
int size3,
int size4)
This constructs a number with specified name |
|
NslFloat4(java.lang.String name,
NslHierarchy curParent)
|
|
NslFloat4(java.lang.String name,
NslHierarchy curParent,
int size1,
int size2,
int size3,
int size4)
|
|
NslFloat4(java.lang.String name,
NslHierarchy curParent,
NslNumeric4 n)
|
|
NslFloat4(java.lang.String name,
NslNumeric4 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. |
float[][][][] |
get()
|
float[][][] |
get(int pos1)
|
float[][] |
get(int pos1,
int pos2)
|
float[] |
get(int pos1,
int pos2,
int pos3)
|
float |
get(int pos1,
int pos2,
int pos3,
int pos4)
|
float |
get(NslInt0 pos1,
NslInt0 pos2,
NslInt0 pos3,
NslInt0 pos4)
|
double |
getdouble(int pos1,
int pos2,
int pos3,
int pos4)
|
double[] |
getdouble1(int pos1,
int pos2,
int pos3)
1--------------------------------------------*---- /** |
double[][] |
getdouble2(int pos1,
int pos2)
2--------------------------------------------*---- /** |
double[][][] |
getdouble3(int pos1)
|
double[][][][] |
getdouble4()
|
float |
getfloat(int pos1,
int pos2,
int pos3,
int pos4)
|
float[] |
getfloat1(int pos1,
int pos2,
int pos3)
|
float[][] |
getfloat2(int pos1,
int pos2)
|
float[][][] |
getfloat3(int pos1)
|
float[][][][] |
getfloat4()
|
int |
getint(int pos1,
int pos2,
int pos3,
int pos4)
|
int[] |
getint1(int pos1,
int pos2,
int pos3)
|
int[][] |
getint2(int pos1,
int pos2)
|
int[][][] |
getint3(int pos1)
|
int[][][][] |
getint4()
|
NslDouble4 |
getNslDouble4()
get the value of this object in NslDouble4 form. |
NslFloat4 |
getNslFloat4()
get the value of this object in NslFloat4 form. |
NslInt4 |
getNslInt4()
get the value of this object in NslInt4 form. |
void |
getNslSizes(NslInt0 size1,
NslInt0 size2,
NslInt0 size3,
NslInt0 size4)
|
float[][][][] |
getSector(int start1,
int start2,
int start3,
int start4,
int end1,
int end2,
int end3,
int end4)
|
int |
getSize1()
Get the left most index |
int |
getSize2()
Get the second to the left most index |
int |
getSize3()
Get the third to the left most index |
int |
getSize4()
Get the fourth to the left most index |
int[] |
getSizes()
|
boolean |
isDataSet()
Check if the number is well-defined and the corresponding numerical data is set. |
void |
nslMemAlloc(int size1,
int size2,
int size3,
int size4)
|
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)
set the value of this object to 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,
int pos3,
int pos4,
double value)
set the value of an element in this object to value |
void |
set(int pos1,
int pos2,
int pos3,
int pos4,
float value)
set the value of an element in this object to value |
void |
set(int pos1,
int pos2,
int pos3,
int pos4,
int value)
set the value of an element in this object to value |
void |
set(int pos1,
int pos2,
int pos3,
int pos4,
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(NslNumeric4 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(float[][][][] d,
int startpos1,
int startpos2,
int startpos3,
int startpos4)
|
java.lang.String |
toString()
Print the value of the numberic |
Methods inherited from class nslj.src.lang.NslNumeric4 |
getDimensions |
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 float[][][][] _data
Constructor Detail |
public NslFloat4(float[][][][] d)
public NslFloat4(NslNumeric4 n)
public NslFloat4(int size1, int size2, int size3, int size4)
public NslFloat4()
public NslFloat4(java.lang.String name)
name
- - name of the variablepublic NslFloat4(java.lang.String name, NslHierarchy curParent)
public NslFloat4(java.lang.String name, int size1, int size2, int size3, int size4)
name
- - name of the variablesize1
- - size of the array 1st-Dimensionsize2
- - size of the array 2nd-Dimensionsize3
- - size of the array 3rd-Dimensionsize4
- - size of the array 4th-Dimensionpublic NslFloat4(java.lang.String name, NslHierarchy curParent, int size1, int size2, int size3, int size4)
public NslFloat4(java.lang.String name, NslNumeric4 n)
name
- - name of the variablen
- - initialized valuespublic NslFloat4(java.lang.String name, NslHierarchy curParent, NslNumeric4 n)
public NslFloat4(java.lang.String name, float[][][][] d)
name
- - name of the variablen
- - initialized valuesMethod Detail |
public void nslMemAlloc(int size1, int size2, int size3, int size4)
public float[][][][] get()
public float[][][] get(int pos1)
public float[][] get(int pos1, int pos2)
public float[] get(int pos1, int pos2, int pos3)
public float get(int pos1, int pos2, int pos3, int pos4)
public float get(NslInt0 pos1, NslInt0 pos2, NslInt0 pos3, NslInt0 pos4)
public float[][][][] getfloat4()
getfloat4
in class NslNumeric4
nslj.src.lang.NslNumeric4
public double[][][][] getdouble4()
getdouble4
in class NslNumeric4
nslj.src.lang.NslNumeric4
public int[][][][] getint4()
getint4
in class NslNumeric4
nslj.src.lang.NslNumeric4
public double[][][] getdouble3(int pos1)
getdouble3
in class NslNumeric4
pos1
- - left most numberpublic float[][][] getfloat3(int pos1)
getfloat3
in class NslNumeric4
pos1
- - left most indexpos2
- - second to the left most indexpos3
- - third from left most indexpublic int[][][] getint3(int pos1)
getint3
in class NslNumeric4
pos1
- - left most indexpublic double[][] getdouble2(int pos1, int pos2)
getdouble2
in class NslNumeric4
pos1
- - left most indexpos2
- - second to the left most indexpublic float[][] getfloat2(int pos1, int pos2)
getfloat2
in class NslNumeric4
pos1
- - left most indexpos2
- - second to the left most indexpos3
- - third from left most indexpublic int[][] getint2(int pos1, int pos2)
getint2
in class NslNumeric4
pos1
- - left most indexpos2
- - second to the left most indexpublic double[] getdouble1(int pos1, int pos2, int pos3)
getdouble1
in class NslNumeric4
pos1
- - left most indexpos2
- - second to the left most indexpos3
- - third to the left most indexpublic float[] getfloat1(int pos1, int pos2, int pos3)
getfloat1
in class NslNumeric4
pos1
- - left most indexpos2
- - second to the left most indexpos3
- - third from left most indexpublic int[] getint1(int pos1, int pos2, int pos3)
getint1
in class NslNumeric4
pos1
- - left most indexpos2
- - second to the left most indexpos3
- - third from left most indexpublic double getdouble(int pos1, int pos2, int pos3, int pos4)
getdouble
in class NslNumeric4
nslj.src.lang.NslNumeric4
pos1
- - left mostpos2
- - second from leftpos3
- - third from leftpos4
- - fourth from leftpublic float getfloat(int pos1, int pos2, int pos3, int pos4)
getfloat
in class NslNumeric4
nslj.src.lang.NslNumeric4
pos1
- - left mostpos2
- - second from leftpos3
- - third from leftpos4
- - fourth from leftpublic int getint(int pos1, int pos2, int pos3, int pos4)
getint
in class NslNumeric4
nslj.src.lang.NslNumeric4
pos1
- - left mostpos2
- - second from leftpos3
- - third from leftpos4
- - fourth from leftpublic NslFloat4 getNslFloat4()
NslNumeric4
getNslFloat4
in class NslNumeric4
public NslDouble4 getNslDouble4()
NslNumeric4
getNslDouble4
in class NslNumeric4
public NslInt4 getNslInt4()
NslNumeric4
getNslInt4
in class NslNumeric4
public float[][][][] getSector(int start1, int start2, int start3, int start4, int end1, int end2, int end3, int end4)
public void set(float[][][][] value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
value
- - four dimension arraypublic void set(double[][][][] value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
value
- - four dimension arraypublic void set(int[][][][] value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
value
- - four dimension arraypublic void set(int pos1, int pos2, int pos3, int pos4, double value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
pos1
- - the left most index of the elementpos2
- - the second to the left most index of the elementpos3
- - the third from left most index of the elementpos4
- - the 4th axis number of the elementvalue
- - scalar in doublepublic void set(int pos1, int pos2, int pos3, int pos4, float value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
pos1
- - the left most index of the elementpos2
- - the second to the left most index of the elementpos3
- - the third from left most index of the elementpos4
- - the 4th axis number of the elementvalue
- - scalar in floatpublic void set(int pos1, int pos2, int pos3, int pos4, int value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
pos1
- - the left most index of the elementpos2
- - the second to the left most index of the elementpos3
- - the third from left most index of the elementpos4
- - the 4th axis number of the elementvalue
- - scalar in intpublic void set(float value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
value
- - value to be defined.public void set(double value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
value
- - value to be defined.public void set(int value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
value
- - value to be defined.public void set(NslNumeric4 n)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
value
- - in any of NslNumeric4 type.public void set(NslNumeric0 n)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
value
- - value to be defined.public void set(int pos1, int pos2, int pos3, int pos4, NslNumeric0 value)
NslNumeric4
set
in class NslNumeric4
nslj.src.lang.NslNumeric4
pos1
- - the left most index of the elementpos2
- - the second to the left most index of the elementpos3
- - the third from left most index of the elementpos4
- - the 4th axis number of the elementvalue
- - scalar in NslNumeric0public void setSector(float[][][][] d, int startpos1, int startpos2, int startpos3, int startpos4)
public void getNslSizes(NslInt0 size1, NslInt0 size2, NslInt0 size3, NslInt0 size4)
getNslSizes
in class NslNumeric4
public int[] getSizes()
getSizes
in class NslNumeric4
public int getSize1()
NslNumeric4
getSize1
in class NslNumeric4
public int getSize2()
NslNumeric4
getSize2
in class NslNumeric4
public int getSize3()
NslNumeric4
getSize3
in class NslNumeric4
public int getSize4()
NslNumeric4
getSize4
in class NslNumeric4
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 |