com.tensegrity.graph.rule
Interface RuleFeedback


public interface RuleFeedback

Feedback specification. Such a class retrieves messages about why rules were accepted or rejected which contain explanatory strings.

One instance of this class can be registered with a RuleRegistry at one point in time.

Version:
$Id: RuleFeedback.java,v 1.3 2003/04/08 11:41:24 sr Exp $
Author:
Stepan Rutz
See Also:
RuleRegistry

Method Summary
 void rulePassed(RuleRegistry ruleregistry, Rule rule, java.lang.String message)
          This callback is invoked when a Rule was accepted.
 void ruleRejected(RuleRegistry ruleregistry, Rule rule, java.lang.String message)
          This callback is invoked when a Rule is rejected.
 

Method Detail

ruleRejected

public void ruleRejected(RuleRegistry ruleregistry,
                         Rule rule,
                         java.lang.String message)
This callback is invoked when a Rule is rejected.

Parameters:
ruleregistry - the RuleRegistry that verified the Rule.
rule - the Rule that was checked and rejected.
message - a message string explaining why the Rule was rejected.

rulePassed

public void rulePassed(RuleRegistry ruleregistry,
                       Rule rule,
                       java.lang.String message)
This callback is invoked when a Rule was accepted.

Parameters:
ruleregistry - the RuleRegistry that verified the Rule.
rule - the Rule that was checked and passed.
message - a message string explaining why the Rule was rejected.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.