jmadem
Interface FilterFunctionInt


public interface FilterFunctionInt

Interface for the filter functions invoked by MADeM agents when constructing allocations. The code of every filter function must implement this interface.

Author:
Francisco Grimaldo

Method Summary
 boolean isValid(Allocation alloc, MADeMAgArch agArch)
          Tests whether a certain allocation is valid within a given domain.
 

Method Detail

isValid

boolean isValid(Allocation alloc,
                MADeMAgArch agArch)
                throws FilterFunctionException
Tests whether a certain allocation is valid within a given domain.

Parameters:
alloc - allocation being evaluated
agArch - architecture of the MADeM agent
Returns:
true if the allocation is valid, false otherwise
Throws:
FilterFunctionException - when any error occurs