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 |
float |
computeUtility(java.lang.String auctioneer,
Term alloc,
MADeMAgArch agArch)
Computes the utility value given to an allocation. |
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 preferencealloc
- allocation being evaluatedagArch
- architecture of the MADeM agent
- Returns:
- the utility value assigned to the allocation.
- Throws:
UtilityFunctionException
- when any error occurs