com.clarkparsia.pellet.rules
Class UsableRuleFilter

java.lang.Object
  extended by com.clarkparsia.pellet.rules.UsableRuleFilter

public class UsableRuleFilter
extends java.lang.Object

Title: Usable Rule Filter

Description: An iterable returning only rules that can be used by pellet, discarding and warning about all others.

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Ron Alford, Evren Sirin

Constructor Summary
UsableRuleFilter()
           
 
Method Summary
static java.lang.String explainNotUsable(Rule rule)
          Returns a string explaining why a rule cannot be used for reasoning, or null if the rule can be used for reasoning
static boolean isUsable(Rule rule)
          Checks if a rule can be used for reasoning.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsableRuleFilter

public UsableRuleFilter()
Method Detail

isUsable

public static boolean isUsable(Rule rule)
Checks if a rule can be used for reasoning.

Parameters:
rule - rule to check
Returns:
true if rule can be used for reasoning

explainNotUsable

public static java.lang.String explainNotUsable(Rule rule)
Returns a string explaining why a rule cannot be used for reasoning, or null if the rule can be used for reasoning

Parameters:
rule - rule to check
Returns:
a string explaining why a rule cannot be used for reasoning, or null if the rule can be used for reasoning


Copyright © 2004 Evren Sirin. All Rights Reserved.