com.haley.haleyrules.eclipsefunction
Class EclipseFunctionWithVariableArguments

java.lang.Object
  extended bycom.haley.haleyrules.eclipsefunction.EclipseFunction
      extended bycom.haley.haleyrules.eclipsefunction.EclipseFunctionWithVariableArguments

public abstract class EclipseFunctionWithVariableArguments
extends EclipseFunction

The EclipseFunctionWithVariableArguments abstract class provides the necessary public definitions needed to extend the Inference Engine with a function with a variable number of arguments.

See Also:
EclipseFunction

Field Summary
 
Fields inherited from class com.haley.haleyrules.eclipsefunction.EclipseFunction
JULIAN_RETURN_TYPE, UTC_RETURN_TYPE, VARIABLE
 
Constructor Summary
EclipseFunctionWithVariableArguments()
           
 
Method Summary
abstract  java.lang.Object evaluate(WorkingMemory wm, java.lang.Object[] objects)
          Returns the object for this function given a working memory and an array of objects.
 int getArity()
          Implements EclipseFunction.getArity() to return EclipseFunction.VARIABLE
 
Methods inherited from class com.haley.haleyrules.eclipsefunction.EclipseFunction
getReturnTypeForJavaDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseFunctionWithVariableArguments

public EclipseFunctionWithVariableArguments()
Method Detail

getArity

public final int getArity()
Implements EclipseFunction.getArity() to return EclipseFunction.VARIABLE

Specified by:
getArity in class EclipseFunction
Returns:
EclipseFunction.VARIABLE

evaluate

public abstract java.lang.Object evaluate(WorkingMemory wm,
                                          java.lang.Object[] objects)
                                   throws java.lang.Exception
Returns the object for this function given a working memory and an array of objects.

Parameters:
wm - the working that this function is to be evaluated for.
objects - an array of arguments to this function.
Returns:
the return value of this function.
Throws:
java.lang.Exception - on error.


Copyright © 1998-2006 Haley Systems, Inc. All Rights Reserved.