com.haley.haleyrules.eclipsefunction
Class EclipseFunction

java.lang.Object
  extended bycom.haley.haleyrules.eclipsefunction.EclipseFunction
Direct Known Subclasses:
EclipseFunctionWithNoArguments, EclipseFunctionWithOneArgument, EclipseFunctionWithTwoArguments, EclipseFunctionWithVariableArguments

public abstract class EclipseFunction
extends java.lang.Object

The EclipseFunction abstract class provides the necessary public definitions needed to extend the Inference Engine with a user-defined Java function.


Field Summary
static int JULIAN_RETURN_TYPE
          Value returned by getReturnTypeForJavaDate() for functions that return a specific date.
static int UTC_RETURN_TYPE
          Value returned by getReturnTypeForJavaDate() for functions that return a specific point in time.
static int VARIABLE
          Value returned by getArity() for functions that take a variable number of arguments.
 
Constructor Summary
EclipseFunction()
           
 
Method Summary
abstract  int getArity()
          Get the arity of the function
 int getReturnTypeForJavaDate()
          Get the return type when the Java function implementing this EclipseFunction returns Date object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VARIABLE

public static final int VARIABLE
Value returned by getArity() for functions that take a variable number of arguments.

See Also:
Constant Field Values

UTC_RETURN_TYPE

public static final int UTC_RETURN_TYPE
Value returned by getReturnTypeForJavaDate() for functions that return a specific point in time.

See Also:
Constant Field Values

JULIAN_RETURN_TYPE

public static final int JULIAN_RETURN_TYPE
Value returned by getReturnTypeForJavaDate() for functions that return a specific date.

See Also:
Constant Field Values
Constructor Detail

EclipseFunction

public EclipseFunction()
Method Detail

getArity

public abstract int getArity()
Get the arity of the function


getReturnTypeForJavaDate

public int getReturnTypeForJavaDate()
Get the return type when the Java function implementing this EclipseFunction returns Date object



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