kaos.core.csi.policy
Class ObligationViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by kaos.core.csi.policy.ObligationViolationException
All Implemented Interfaces:
java.io.Serializable

public class ObligationViolationException
extends java.lang.Exception

ObligationViolationException defines an exception, which is thrown when the evaluation of a trigger against applicable obligation policy determines that some part of obligation constraint has been violated, or that for some reason an obligation cannot be fulfilled.

Author:
KAoS Team $Revision: 1.2 $
See Also:
Serialized Form

Constructor Summary
ObligationViolationException()
          Constructs a new ObligationViolationException with no detailed message.
ObligationViolationException(java.lang.String msg)
          Constructs a new ObligationViolationException with a detailed message.
 
Method Summary
 void addUnfulfilledObligation(ActionInstanceDescription violatedObligation)
          Add an ActionInstanceDescription describing an violated obligation.
 java.util.List getViolatedObligations()
           
 void setViolatedObligations(java.util.List violatedObligations)
          Set _violatedObligations to the given List.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObligationViolationException

public ObligationViolationException()
Constructs a new ObligationViolationException with no detailed message.


ObligationViolationException

public ObligationViolationException(java.lang.String msg)
Constructs a new ObligationViolationException with a detailed message. A detail message is a String that describes the exception.

Parameters:
msg - String containning the detailed message.
Method Detail

addUnfulfilledObligation

public void addUnfulfilledObligation(ActionInstanceDescription violatedObligation)
Add an ActionInstanceDescription describing an violated obligation.

Parameters:
violatedObligation - ActionInstanceDescription of the violated obligation to be added to the list.

getViolatedObligations

public java.util.List getViolatedObligations()

setViolatedObligations

public void setViolatedObligations(java.util.List violatedObligations)
Set _violatedObligations to the given List. This operation will replace the existing _violatedObligations.

Parameters:
violatedObligations - List of ActionInstanceDescriptions describing violated obligations.


Copyright © 2005 IHMC All Rights Reserved.