Jadex 0.941

jadex.runtime
Interface IWaitqueue


public interface IWaitqueue

Interface for the waitqueue of plans. The waitqueue makes a plan plan responsive to events permanently.


Method Summary
 void addBelief(String type)
          Add a belief.
 void addBeliefSet(String type, String[] eventtype)
          Add a belief set.
 void addCondition(ICondition condition)
          Add a condition.
 void addCondition(String condition)
          Add a condition.
 void addFilter(IFilter filter)
          Add a user filter.
 void addGoal(String type)
          Add a goal.
 void addInternalEvent(String type)
          Add an internal event.
 void addMessageEvent(String type)
          Add a message event.
 void addReply(IMessageEvent me)
          Add a message event reply.
 void addSubgoal(IGoal subgoal)
          Add a subgoal.
 IEvent[] getEvents()
          Get all waitqueue events.
 IEvent[] getEvents(IFilter filter)
          Get all waitqueue events that match the filter.
 void removeBelief(String type)
          Remove a belief.
 void removeBeliefSet(String type)
          Remove a belief set.
 void removeCondition(ICondition condition)
          Remove a condition.
 void removeCondition(String condition)
          Remove a condition.
 void removeFilter(IFilter filter)
          Remove a user filter.
 void removeGoal(IGoal subgoal)
          Remove a subgoal.
 void removeGoal(String type)
          Remove a goal.
 void removeInternalEvent(String type)
          Remove an internal event.
 void removeMessageEvent(String type)
          Remove a message event.
 void removeReply(IMessageEvent me)
          Remove a message event reply.
 

Method Detail

getEvents

public IEvent[] getEvents()
Get all waitqueue events.

Returns:
The suitable events.

getEvents

public IEvent[] getEvents(IFilter filter)
Get all waitqueue events that match the filter. Removes the matching events from the waitqueue.

Parameters:
filter - The filter.
Returns:
The suitable events.

addMessageEvent

public void addMessageEvent(String type)
Add a message event.

Parameters:
type - The type.

addReply

public void addReply(IMessageEvent me)
Add a message event reply.

Parameters:
me - The message event.

addInternalEvent

public void addInternalEvent(String type)
Add an internal event.

Parameters:
type - The type.

addGoal

public void addGoal(String type)
Add a goal.

Parameters:
type - The type.

addSubgoal

public void addSubgoal(IGoal subgoal)
Add a subgoal.

Parameters:
subgoal - The subgoal.

addBelief

public void addBelief(String type)
Add a belief.

Parameters:
type - The type.

addBeliefSet

public void addBeliefSet(String type,
                         String[] eventtype)
Add a belief set.

Parameters:
type - The type.
eventtype - The event type.

addFilter

public void addFilter(IFilter filter)
Add a user filter.

Parameters:
filter - The user filter.

addCondition

public void addCondition(String condition)
Add a condition.

Parameters:
condition - The condition.

addCondition

public void addCondition(ICondition condition)
Add a condition.

Parameters:
condition - The condition.

removeMessageEvent

public void removeMessageEvent(String type)
Remove a message event.

Parameters:
type - The type.

removeReply

public void removeReply(IMessageEvent me)
Remove a message event reply.

Parameters:
me - The message event.

removeInternalEvent

public void removeInternalEvent(String type)
Remove an internal event.

Parameters:
type - The type.

removeGoal

public void removeGoal(String type)
Remove a goal.

Parameters:
type - The type.

removeGoal

public void removeGoal(IGoal subgoal)
Remove a subgoal.

Parameters:
subgoal - The subgoal.

removeBelief

public void removeBelief(String type)
Remove a belief.

Parameters:
type - The type.

removeBeliefSet

public void removeBeliefSet(String type)
Remove a belief set.

Parameters:
type - The type.

removeFilter

public void removeFilter(IFilter filter)
Remove a user filter.

Parameters:
filter - The user filter.

removeCondition

public void removeCondition(String condition)
Remove a condition.

Parameters:
condition - The condition.

removeCondition

public void removeCondition(ICondition condition)
Remove a condition.

Parameters:
condition - The condition.

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.