de.skrueger.xulu.plugin.gnur
Class RVarAdapter

java.lang.Object
  extended by de.skrueger.xulu.plugin.gnur.RVarAdapter
Direct Known Subclasses:
RVarMatrix, RVarScalar, RVarSingleGrid

public abstract class RVarAdapter
extends Object

Link between datapool and R-Engine

Author:
stefan

Field Summary
protected  Property prop
           
 
Constructor Summary
protected RVarAdapter(Property prop)
           
 
Method Summary
static RVarAdapter createFrom(Property obj, boolean testOnly)
           
abstract  void fromR(Rengine re)
           
 String getName()
           
 String getRName()
           
 Boolean isExport()
           
 Boolean isImport()
           
 void setRName(String rname)
          Set the name that will reference the R-variable inside the RVar.
abstract  void toR(Rengine re)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prop

protected Property prop
Constructor Detail

RVarAdapter

protected RVarAdapter(Property prop)
Method Detail

createFrom

public static RVarAdapter createFrom(Property obj,
                                     boolean testOnly)
                              throws PropertytypeNotConvertableToRVar
Parameters:
obj -
testOnly - if true, than only check if Property is compatible-.. otherwise throw PropertytypeNotConvertableToRVarException
Throws:
PropertytypeNotConvertableToRVar

isExport

public Boolean isExport()

isImport

public Boolean isImport()

getRName

public String getRName()
Returns:
the name of the variabl ein the R environment

setRName

public void setRName(String rname)
Set the name that will reference the R-variable inside the RVar. TODO: Check for doubles, name validity

Parameters:
rname -

getName

public String getName()
Returns:
the name of the object in the datapool

toR

public abstract void toR(Rengine re)

fromR

public abstract void fromR(Rengine re)