|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UtilityFunctionInt
Interface for the utility functions invoked by MADeMAgArch agents. The code of every utility function must implement this interface.
Method Summary | |
---|---|
float |
computeUtility(java.lang.String auctioneer,
Allocation alloc,
MADeMAgArch agArch)
Computes the normalized utility value given to an allocation. |
java.lang.String |
getId()
Returns the name of the utility function IMPORTANT NOTE: All utility function names must start in lowercase due to Jason's interpretation of uppercase as variable terms when launching MADeM. |
Method Detail |
---|
java.lang.String getId()
IMPORTANT NOTE: All utility function names must start in lowercase due to Jason's interpretation of uppercase as variable terms when launching MADeM.
float computeUtility(java.lang.String auctioneer, Allocation alloc, MADeMAgArch agArch) throws UtilityFunctionException
auctioneer
- agent asking for preferencealloc
- allocation being evaluatedagArch
- architecture of the MADeM agent
UtilityFunctionException
- when any error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |