nslj.src.lang
Class NslData

java.lang.Object
  |
  +--EDU.gatech.cc.is.abstractrobot.ControlSystemS
        |
        +--EDU.gatech.cc.is.abstractrobot.ControlSystemMFN150
              |
              +--nslj.src.lang.NslBase
                    |
                    +--nslj.src.lang.NslData
Direct Known Subclasses:
NslBoolean, NslNumeric, NslString

public abstract class NslData
extends NslBase


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
NslData()
           
NslData(java.lang.String label)
           
NslData(java.lang.String label, NslHierarchy parent)
           
NslData(java.lang.String label, NslHierarchy parent, char desiredAccess)
           
 
Method Summary
abstract  void duplicateData(NslData d)
          Copy all data from n to this number object.
abstract  NslData duplicateThis()
          This method is equivalent to clone() method in java.lang.Object.
 java.lang.String getDataType()
           
abstract  int getDimensions()
          Get number of dimensions of the Nsl Type
 NslInport getInport()
          Get the port object
 void getNslSizes(NslInt0 size)
           
 NslOutport getOutport()
          Get the port object
 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 getSize3()
          Get the third left most index (3rd axis) in this array
 int getSize4()
          Get the fourth left most index (4th axis) in this array
 int[] getSizes()
           
abstract  boolean isDataSet()
          Check if the number is well-defined and the corresponding numerical data is set.
 NslPort nslGetPort()
          Get the Port object
abstract  void resetData()
          Reset the reference pointer to null
abstract  void setReference(NslData d)
          Set the reference pointer of this number object to the data value of n.
abstract  java.lang.String toString()
          Print the value of the numberic
 
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

NslData

public NslData()

NslData

public NslData(java.lang.String label)

NslData

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

NslData

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

duplicateData

public abstract void duplicateData(NslData d)
Copy all data from n to this number object. It is used in NslPort and relevant classes only.
Parameters:
n - - number to be copied
See Also:

duplicateThis

public abstract NslData duplicateThis()
This method is equivalent to clone() method in java.lang.Object. It duplicates a copy of this number object. It is used in double buffered outport only.
See Also:

setReference

public abstract void setReference(NslData d)
Set the reference pointer of this number object to the data value of n. It is similar to two pointers pointing to a same object in C/C++. Whenenver the data value of one side is changed, the other side is changed as well. It is used only in NslPort
Parameters:
n - - number that the reference pointer to the "true" numerical data is copied.
See Also:

isDataSet

public abstract boolean isDataSet()
Check if the number is well-defined and the corresponding numerical data is set.
Returns:
true - if the data is well-defined. false - if the data is null.

resetData

public abstract void resetData()
Reset the reference pointer to null

toString

public abstract java.lang.String toString()
Print the value of the numberic
Overrides:
toString in class java.lang.Object

getDimensions

public abstract int getDimensions()
Get number of dimensions of the Nsl Type

nslGetPort

public NslPort nslGetPort()
Get the Port object
Returns:
NslPort port

getOutport

public NslOutport getOutport()
Get the port object
Returns:
NslOutPort

getInport

public NslInport getInport()
Get the port object
Returns:
NslInPort

getSizes

public int[] getSizes()

getNslSizes

public void getNslSizes(NslInt0 size)

getSize1

public int getSize1()
Get the left most index (2st axis) in this array

getSize2

public int getSize2()
Get the second left most index (2st axis) in this array

getSize3

public int getSize3()
Get the third left most index (3rd axis) in this array

getSize4

public int getSize4()
Get the fourth left most index (4th axis) in this array

getDataType

public java.lang.String getDataType()