org.ogf.graap.wsag.server.monitoring
Class SimpleGuaranteeEvaluator

java.lang.Object
  extended by org.ogf.graap.wsag.server.monitoring.SimpleGuaranteeEvaluator
All Implemented Interfaces:
IGuaranteeEvaluator

public class SimpleGuaranteeEvaluator
extends Object
implements IGuaranteeEvaluator

Default implementation of a guarantee evaluator. The guarantee evaluator evaluates the qualifying condition and service level objective of a given guarantee and returns the guarantee term state based on the evaluation result.

Author:
Oliver Waeldrich

Constructor Summary
SimpleGuaranteeEvaluator()
          Default constructor
 
Method Summary
 GuaranteeEvaluationResultType evaluate(GuaranteeTermType guarantee, Map<String,Object> variables)
          Evaluates a given guarantee.
 IAccountingSystem getAccountingSystem()
          Deprecated.  
 GuaranteeTermType[] selectGuaranteeTerms(AgreementPropertiesType properties)
          Selects all guarantees in an agreement properties document.
 void setAccountingSystem(IAccountingSystem accountingSystem)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGuaranteeEvaluator

public SimpleGuaranteeEvaluator()
Default constructor

Method Detail

getAccountingSystem

public IAccountingSystem getAccountingSystem()
Deprecated. 

Specified by:
getAccountingSystem in interface IGuaranteeEvaluator
Returns:
the accountingSystem

setAccountingSystem

public void setAccountingSystem(IAccountingSystem accountingSystem)
Deprecated. 

Specified by:
setAccountingSystem in interface IGuaranteeEvaluator
Parameters:
accountingSystem - the accountingSystem to set

evaluate

public GuaranteeEvaluationResultType evaluate(GuaranteeTermType guarantee,
                                              Map<String,Object> variables)
                                       throws Exception
Evaluates a given guarantee. The variables used in the qualifying condition and service level objective of the guarantee are passes a a map.

Specified by:
evaluate in interface IGuaranteeEvaluator
Parameters:
guarantee - the guarantee to evaluate
variables - a name/value map containing the variables
Returns:
the evaluated guarantee term state
Throws:
Exception - indicates an error while evaluating the guarantee term

selectGuaranteeTerms

public GuaranteeTermType[] selectGuaranteeTerms(AgreementPropertiesType properties)
Selects all guarantees in an agreement properties document.

Parameters:
properties - the agreement properties document
Returns:
the selected guarantees


Copyright © 2008-2012. All Rights Reserved.