br.pucrio.inf.les.bdijade.reasoning
Class DefaultOptionGenerationFunction

java.lang.Object
  extended by br.pucrio.inf.les.bdijade.reasoning.DefaultOptionGenerationFunction
All Implemented Interfaces:
OptionGenerationFunction

public class DefaultOptionGenerationFunction
extends java.lang.Object
implements OptionGenerationFunction

The default implementation of the OptionGenerationFunction. It selects all goals, therefore none is dropped or created.

Author:
ingrid

Constructor Summary
DefaultOptionGenerationFunction()
           
 
Method Summary
 java.util.Set<Goal> generateGoals(java.util.Map<Goal,GoalStatus> goals)
          The goals parameter is a map of all goals of the agent (that might be intentions) with their corresponding status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOptionGenerationFunction

public DefaultOptionGenerationFunction()
Method Detail

generateGoals

public java.util.Set<Goal> generateGoals(java.util.Map<Goal,GoalStatus> goals)
Description copied from interface: OptionGenerationFunction
The goals parameter is a map of all goals of the agent (that might be intentions) with their corresponding status. A set is returned of this function indicating the creating of new goals and the ones that continue to be goals. The non-selected goals will be no longer desired.

Specified by:
generateGoals in interface OptionGenerationFunction
Parameters:
goals - the current goals with their status.
Returns:
the list of selected goals.
See Also:
OptionGenerationFunction.generateGoals(java.util.Map)