com.clarkparsia.pellet.rules.builtins
Class NumericAdapter

java.lang.Object
  extended by com.clarkparsia.pellet.rules.builtins.NumericAdapter
All Implemented Interfaces:
Function

public class NumericAdapter
extends java.lang.Object
implements Function

Title: Numeric Adapter

Description: Adapter from Numeric Functions to built-in Function.

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Ron Alford

Constructor Summary
NumericAdapter(NumericFunction function)
           
 
Method Summary
 Literal apply(ABox abox, Literal expected, Literal... args)
          Apply the function against a set of arguments.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericAdapter

public NumericAdapter(NumericFunction function)
Method Detail

apply

public Literal apply(ABox abox,
                     Literal expected,
                     Literal... args)
Description copied from interface: Function
Apply the function against a set of arguments. Test the expected argument against the result. Return null if the arguments were invalid. If 'expected' was not null and matched the result, return 'expected'. If 'expected' was not null and did not match, return null; Otherwise, return the result.

Specified by:
apply in interface Function


Copyright © 2004 Evren Sirin. All Rights Reserved.