com.haley.haleyrules.eclipsefunction
Class EclipseFunctionWithNoArguments

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

public abstract class EclipseFunctionWithNoArguments
extends EclipseFunction

The EclipseFunctionWithNoArguments abstract class provides the necessary public definitions needed to extend the Inference Engine with a function with no arguments.

See Also:
EclipseFunction

Field Summary
 
Fields inherited from class com.haley.haleyrules.eclipsefunction.EclipseFunction
JULIAN_RETURN_TYPE, UTC_RETURN_TYPE, VARIABLE
 
Constructor Summary
EclipseFunctionWithNoArguments()
           
 
Method Summary
abstract  java.lang.Object evaluate(WorkingMemory wm)
          Returns the object for this function given a working memory.
 int getArity()
          Implements EclipseFunction.getArity() to return 0
 
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

EclipseFunctionWithNoArguments

public EclipseFunctionWithNoArguments()
Method Detail

getArity

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

Specified by:
getArity in class EclipseFunction
Returns:
0

evaluate

public abstract java.lang.Object evaluate(WorkingMemory wm)
                                   throws java.lang.Exception
Returns the object for this function given a working memory.

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


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