Interface Policy

All Known Implementing Classes:
CheckCallerRunsPolicy, CheckForAbsenceOfRED

public interface Policy
A policy implementation checks that a condition is met or throws an exception if not. A condition could be for example the check if a given protocol is present, an attribute is within a given range etc.

Policies are called after Protocol.init(), so the protocol is full initialized (all attrs and components are set).

Since:
5.2.14
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Checks that a condition is met in a given protocol
  • Method Details

    • check

      void check(Protocol prot) throws Exception
      Checks that a condition is met in a given protocol
      Parameters:
      prot - The protocol in which the policy is run
      Throws:
      Exception - Thrown if the condition is not met