org.openi.stat.r
Class RFunctionList

java.lang.Object
  extended by org.openi.stat.r.RFunctionList

public class RFunctionList
extends java.lang.Object

Version:
$Revision: 1.3 $ $Date: 2006/04/12 00:39:12 $
This class contains R function list and helper methods.
Author:
Uddhab Pant

Constructor Summary
RFunctionList()
          Default contructor
RFunctionList(java.util.List rFunctions)
          Contructor to initialize RFunctionList with R Functions
 
Method Summary
 void addFunction(RFunction rFunction)
          Adds a RFunction object to function list
 RFunction getFunction(java.lang.String functionName)
          Returns RFunction instance for a function name
 RFunction getFunctionByFile(java.lang.String rfile)
          returns R function releated with specified file
 java.util.List getRFunctions()
           
 void removeFunction(java.lang.String functionName)
          Removes functionName from the function list
 void setRFunctions(java.util.List RFunctions)
           
 void updateFunction(RFunction rFunction)
          Updates RFunction in the function list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFunctionList

public RFunctionList()
Default contructor


RFunctionList

public RFunctionList(java.util.List rFunctions)
Contructor to initialize RFunctionList with R Functions

Parameters:
rFunctions - List
Method Detail

getFunction

public RFunction getFunction(java.lang.String functionName)
Returns RFunction instance for a function name

Parameters:
functionName - String
Returns:
RFunction returns RFunction if found, otherwise null

getFunctionByFile

public RFunction getFunctionByFile(java.lang.String rfile)
returns R function releated with specified file

Parameters:
rfile - String
Returns:
RFunction

removeFunction

public void removeFunction(java.lang.String functionName)
Removes functionName from the function list

Parameters:
functionName - String

addFunction

public void addFunction(RFunction rFunction)
Adds a RFunction object to function list

Parameters:
rFunction - RFunction

updateFunction

public void updateFunction(RFunction rFunction)
Updates RFunction in the function list

Parameters:
rFunction - RFunction

getRFunctions

public java.util.List getRFunctions()
Returns:
List

setRFunctions

public void setRFunctions(java.util.List RFunctions)
Parameters:
RFunctions - List