galatea.glorias
Class Goal

java.lang.Object
  extended bygalatea.glorias.Goal

public class Goal
extends java.lang.Object

This class represents an structure to implement the goals that an agent must perform.
-----
Esta clase representa una estructura para implementar las metas del agente.

Version:
Juguete toytwo_1.
Author:
Jacinto Dávila y Niandry Moreno.

Constructor Summary
Goal(java.lang.String uncondHead)
          Constructor.
Goal(java.lang.String conclusion, ListAg conditions)
          Constructor.
 
Method Summary
 boolean fired(ListAg obs)
          This method is used to check agent's observations against the list of required observations to execute a determined goal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Goal

public Goal(java.lang.String uncondHead)
Constructor. This constructor assigns a determined head to the list (Goal).
-----
Este constructor asigna una determinada meta a la lista.

Parameters:
uncondHead - String. It's a determined head that will be assigned to the new list.
-----
uncondHead - String. Variable que contiene el nombre de la meta que será añadido a la lista.

Goal

public Goal(java.lang.String conclusion,
            ListAg conditions)
Constructor. In this case, there will be a head and a body to be aasigned to the new list.
-----
Este constructor asigna una meta y sus respectivas observaciones a la lista de metas.

Parameters:
conclusion - String. It is used as the name of the Goal to be executed by the agent.
-----
conclusion - String. Nombre de la meta que se está agregando a la lista.

conditions - ListAg. It's the list used to store the required conditions to execute a determined goal (stored at the "conclusion" parameter).
-----
conditions - ListAg. Lista que contiene las observaciones requeridas para agregar la meta a la lista.
Method Detail

fired

public boolean fired(ListAg obs)
This method is used to check agent's observations against the list of required observations to execute a determined goal.
-----
Este método se usa para chequear las observaciones del agente contra la lista de observaciones requeridas para ejecutar una determinada meta.

Parameters:
obs - ListAg. It's the list of agent observations.
-----
obs - ListAg. Lista de observaciones del agente en un tiempo determinado.
Returns:
Boolean Value.