jmadem

## Interface UtilityFunctionInt

-     public interface UtilityFunctionInt

  Interface for the utility functions invoked by MADeM agents. The code of every utility function must implement this interface.
  Author:
    Francisco Grimaldo

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `computeUtility(java.lang.String auctioneer, Term alloc, MADeMAgArch agArch)` Computes the utility value given to an allocation.

- - ### Method Detail

    - #### computeUtility

          float computeUtility(java.lang.String auctioneer,
                             Term alloc,
                             MADeMAgArch agArch)
                               throws UtilityFunctionException

      Computes the utility value given to an allocation.
      Parameters:
        `auctioneer` - agent asking for preference
        `alloc` - allocation being evaluated
        `agArch` - architecture of the MADeM agent
      Returns:
        the utility value assigned to the allocation.
      Throws:
        `UtilityFunctionException` - when any error occurs