nslj.src.lang
Class NslNumeric2

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
Direct Known Subclasses:
NslDouble2, NslFloat2, NslInt2

public abstract class NslNumeric2
extends NslNumeric


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
NslNumeric2()
           
NslNumeric2(java.lang.String label)
           
NslNumeric2(java.lang.String label, NslHierarchy parent)
           
NslNumeric2(java.lang.String label, NslHierarchy parent, char desiredAccess)
           
 
Method Summary
 int getDimensions()
          get the dimensions of this object
abstract  double getdouble(int pos1, int pos2)
           
abstract  double[] getdouble1(int pos)
           
abstract  double[][] getdouble2()
           
abstract  float getfloat(int pos1, int pos2)
           
abstract  float[] getfloat1(int pos)
           
abstract  float[][] getfloat2()
           
abstract  int getint(int pos1, int pos2)
          set the value of this object to value
abstract  int[] getint1(int pos)
           
abstract  int[][] getint2()
           
abstract  NslDouble2 getNslDouble2()
          get the value of this object in NslDouble2 form.
abstract  NslFloat2 getNslFloat2()
           
abstract  NslInt2 getNslInt2()
           
abstract  void getNslSizes(NslInt0 size1, NslInt0 size2)
           
abstract  int getSize1()
          Get the left most index (2st axis) in this array
abstract  int getSize2()
          Get the second left most index (2st axis) in this array
abstract  int[] getSizes()
           
abstract  void set(double value)
          set the value of all elements of this object to value
abstract  void set(double[][] value)
           
abstract  void set(float value)
          set the value of all elements of this object to value
abstract  void set(float[][] value)
          set the value of this object to value
abstract  void set(int value)
          set the value of all elements of this object to value
abstract  void set(int[][] value)
          set the value of this object to value
abstract  void set(int pos1, int pos2, double value)
          set the value of an element in this object to value
abstract  void set(int pos1, int pos2, float value)
          set the value of an element in this object to value
abstract  void set(int pos1, int pos2, int value)
          set the value of an element in this object to value
abstract  void set(int pos1, int pos2, NslNumeric0 value)
          set the value of an element in this object to value
abstract  void set(NslNumeric0 value)
          set the value of all elements of this object to value
abstract  void set(NslNumeric2 value)
          Set the value of this object to be value
 
Methods inherited from class nslj.src.lang.NslData
duplicateData, duplicateThis, getDataType, getInport, getNslSizes, getOutport, getSize3, getSize4, isDataSet, nslGetPort, resetData, setReference, toString
 
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
 

Constructor Detail

NslNumeric2

public NslNumeric2()

NslNumeric2

public NslNumeric2(java.lang.String label)

NslNumeric2

public NslNumeric2(java.lang.String label,
                   NslHierarchy parent)

NslNumeric2

public NslNumeric2(java.lang.String label,
                   NslHierarchy parent,
                   char desiredAccess)
Method Detail

getdouble2

public abstract double[][] getdouble2()
Returns:
- the value of this object in java numerical array type double[][]. Override this method in NslDouble2 with more efficient one.

getfloat2

public abstract float[][] getfloat2()
Returns:
- the value of this object in java numerical array type float[][]. Override this method in NslFloat2 with more efficient one.

getint2

public abstract int[][] getint2()
Returns:
- the value of this object in java numerical array type int[][]. Override this method in NslInt2 with more efficient one.

getdouble1

public abstract double[] getdouble1(int pos)
Parameters:
pos - - row number to be addressed.
Returns:
- the value of posth row of this object in java numerical array type double[].

getfloat1

public abstract float[] getfloat1(int pos)
Parameters:
pos - - row number to be addressed.
Returns:
- the value of posth row of this object in java numerical array type float[].

getint1

public abstract int[] getint1(int pos)
Parameters:
pos - - row number to be addressed.
Returns:
- the value of posth row of this object in java numerical array type int[].

getdouble

public abstract double getdouble(int pos1,
                                 int pos2)
Parameters:
pos1 - - row number
pos2 - - column number
Returns:
the value of the element in pos1th row and pos2th column in java numerical type double.

getfloat

public abstract float getfloat(int pos1,
                               int pos2)
Parameters:
pos1 - - row number
pos2 - - column number
Returns:
the value of the element in pos1th row and pos2th column in java numerical type float.

getint

public abstract int getint(int pos1,
                           int pos2)
set the value of this object to value
Parameters:
value - - two dimension array

getNslDouble2

public abstract NslDouble2 getNslDouble2()
get the value of this object in NslDouble2 form.

getNslFloat2

public abstract NslFloat2 getNslFloat2()

getNslInt2

public abstract NslInt2 getNslInt2()

set

public abstract void set(double[][] value)

set

public abstract void set(float[][] value)
set the value of this object to value
Parameters:
value - - two dimension array

set

public abstract void set(int[][] value)
set the value of this object to value
Parameters:
value - - two dimension array

set

public abstract void set(int pos1,
                         int pos2,
                         double value)
set the value of an element in this object to value
Parameters:
pos1 - - the row number of the element
pos2 - - the column number of the element
value - - scalar in double

set

public abstract void set(int pos1,
                         int pos2,
                         float value)
set the value of an element in this object to value
Parameters:
pos1 - - the row number of the element
pos2 - - the column number of the element
value - - scalar in float

set

public abstract void set(int pos1,
                         int pos2,
                         int value)
set the value of an element in this object to value
Parameters:
pos1 - - the row number of the element
pos2 - - the column number of the element
value - - scalar in int

set

public abstract void set(double value)
set the value of all elements of this object to value
Parameters:
value - - value to be defined.

set

public abstract void set(float value)
set the value of all elements of this object to value
Parameters:
value - - value to be defined.

set

public abstract void set(int value)
set the value of all elements of this object to value
Parameters:
value - - value to be defined.

set

public abstract void set(NslNumeric2 value)
Set the value of this object to be value
Parameters:
value - - in any of NslNumeric2 type.

set

public abstract void set(NslNumeric0 value)
set the value of all elements of this object to value
Parameters:
value - - value to be defined.

set

public abstract void set(int pos1,
                         int pos2,
                         NslNumeric0 value)
set the value of an element in this object to value
Parameters:
pos1 - - the row number of the element
pos2 - - the column number of the element
value - - scalar in NslNumeric0

getDimensions

public int getDimensions()
get the dimensions of this object
Overrides:
getDimensions in class NslData
Returns:
always 2

getSizes

public abstract int[] getSizes()
Overrides:
getSizes in class NslData

getNslSizes

public abstract void getNslSizes(NslInt0 size1,
                                 NslInt0 size2)

getSize1

public abstract int getSize1()
Get the left most index (2st axis) in this array
Overrides:
getSize1 in class NslData

getSize2

public abstract int getSize2()
Get the second left most index (2st axis) in this array
Overrides:
getSize2 in class NslData