org.datamixer.functions
Class FunctionStrategy

java.lang.Object
  extended by org.datamixer.functions.FunctionStrategy
Direct Known Subclasses:
AddStrategy, ConcatStrategy, ConvertStrategy, DivideStrategy, LineStrategy, MultiplyStrategy, SubtractStrategy

public abstract class FunctionStrategy
extends java.lang.Object


Field Summary
protected  FunctionIterator functionIterator_
          the associated function
protected  StrategyResult result_
          the result
 
Constructor Summary
FunctionStrategy()
           
 
Method Summary
protected  void doInitialize()
           
 int getDataType()
          Get the datatype.
 FunctionIterator getFunctionIterator()
          Returns the current function iterator.
 void initialize()
           
abstract  Value operator()
          Applies an operator to the children of a Function node.
 void setDataType(int type)
          Set the datatype.
 void setFunctionIterator(FunctionIterator value)
          Sets the current function iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

functionIterator_

protected FunctionIterator functionIterator_
the associated function


result_

protected StrategyResult result_
the result

Constructor Detail

FunctionStrategy

public FunctionStrategy()
Method Detail

getDataType

public int getDataType()
Get the datatype.


setDataType

public void setDataType(int type)
Set the datatype.


getFunctionIterator

public FunctionIterator getFunctionIterator()
Returns the current function iterator.

Returns:
the current function iterator.

setFunctionIterator

public void setFunctionIterator(FunctionIterator value)
Sets the current function iterator.

Parameters:
value - the current function iterator.

operator

public abstract Value operator()
                        throws DatamixerException
Applies an operator to the children of a Function node.

Throws:
DatamixerException

initialize

public void initialize()

doInitialize

protected void doInitialize()


Copyright © 2004-2009 datamixer.org. All Rights Reserved.