edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function
Class FunctionImp

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
        |
        +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
              |
              +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
                    |
                    +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function.FunctionImp
Direct Known Subclasses:
FunArith, FunLEXICOGRAPHICALORDER, FunTOKEN, FunUserDefined

public class FunctionImp
extends XATOperatorImp
implements Function

Implementation for the Function calss.

Since:
1.0
See Also:
Serialized Form

Field Summary
protected  java.lang.Object[] oaParams
          Function's parameters.
protected  java.lang.String sName
          Function's name.
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
columnsFiltered, outputColumnName, xnodOwner, xtabOutput
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
stats, statsPresent
 
Constructor Summary
protected FunctionImp()
          Constuctor.
  FunctionImp(XATNode node)
          Assign a node to this operator .
 
Method Summary
 void execute()
          It used to dynamically load an Function implementation, and then, execute the specific function.
 java.lang.String getName()
          Get the name of this function.
 java.lang.Object[] getParams()
          It returns all the parameters in an array.
 XATTable[] getSources()
          Get all the sources of this function.
 void setName(java.lang.String newSName)
          Insert the method's description here.
 java.lang.Object[] setParams(java.lang.Object[] newParams)
          Set the new parameters of this function.
 java.lang.String toString()
          Insert the method's description here.
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
clone, getColumnsFiltered, getNode, getOutput, getOutputColumnName, getOutputDataSource, getOutputDataSources, getPrimaryDataSource, getPrimarySource, setDefaultProperties, setNode, setOutput, setOutputColumnName, setProperty
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
addStatistic, compareTo, getStatistics, isValidStatistic, setDefaultStatistics
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
addProperty, getProperties, getProperty, isValidPropertyName, setNewPropertyValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sName

protected java.lang.String sName
Function's name.

oaParams

protected java.lang.Object[] oaParams
Function's parameters.
Constructor Detail

FunctionImp

protected FunctionImp()
Constuctor.

FunctionImp

public FunctionImp(XATNode node)
Assign a node to this operator .
Parameters:
node - edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNode
Since:
1.0
Method Detail

execute

public void execute()
It used to dynamically load an Function implementation, and then, execute the specific function. We assume the function class will start with "fun".
Specified by:
execute in interface Function
Since:
1.0

getName

public java.lang.String getName()
Get the name of this function.
Specified by:
getName in interface Function
Returns:
the Name of this Function.
Since:
1.0

getParams

public java.lang.Object[] getParams()
It returns all the parameters in an array.
Specified by:
getParams in interface Function
Returns:
The parameters.
Since:
1.0

getSources

public XATTable[] getSources()
Get all the sources of this function.
Specified by:
getSources in interface Function
Returns:
XATTable of all the sources of this function.
Since:
1.0

setName

public void setName(java.lang.String newSName)
Insert the method's description here. Creation date: (1/27/02 10:09:52 PM)
Specified by:
setName in interface Function
Parameters:
newSName - java.lang.String
Since:
1.0

setParams

public java.lang.Object[] setParams(java.lang.Object[] newParams)
Set the new parameters of this function.
Specified by:
setParams in interface Function
Returns:
original parameters.
Since:
1.0

toString

public java.lang.String toString()
Insert the method's description here. Creation date: (8/28/02 3:23:50 PM)
Overrides:
toString in class XATOperatorImp
Returns:
java.lang.String
Since:
1.0