cz.cuni.amis.pogamut.udk.agent.module.sensor
Interface IItemUsefulness

Package class diagram package IItemUsefulness

public interface IItemUsefulness

Interface that allows you to define "usefulness of items". Note that the "usefulness" should depend on the current situation of the bot! That is - if the bot is almost dead, any health should be really useful.

Used by AdvancedItems to obtain current level of item's usefulness for the bot.

Note that it might be useful to define different item filters according to their type of usage (e.g., different filter for weapons and health).

Author:
Jimmy

Method Summary
 double getItemUsefulness(AdvancedItems advancedItems, Items items, Item item, double usefulness)
          Tells how much the item is useful to the bot - must return values between 0 and 1 (inclusive).
 

Method Detail

getItemUsefulness

double getItemUsefulness(AdvancedItems advancedItems,
                         Items items,
                         Item item,
                         double usefulness)
Tells how much the item is useful to the bot - must return values between 0 and 1 (inclusive).

Parameters:
advancedItems -
item -
usefulness - degree of usefulness, 0 - return also useless, 1 - return only really truly useful items which are MUST HAVE!
Returns:
usefulness of 'item'


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.