| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IExternalAccess
The interface for external threads.
| Method Summary | |
|---|---|
|  IGoal | createGoal(String type)Create a goal from a template goal. | 
|  IInternalEvent | createInternalEvent(String type)Create a new intenal event. | 
|  IInternalEvent | createInternalEvent(String type,
                    Object content)Deprecated. Convenience method for easy conversion to new explicit internal events. Will be removed in later releases. | 
|  IMessageEvent | createMessageEvent(String type)Create a new message event. | 
|  void | dispatchInternalEvent(IInternalEvent event)Dispatch an internal event. | 
|  void | dispatchTopLevelGoal(IGoal goal)Dispatch a new top-level goal. | 
|  void | dispatchTopLevelGoalAndWait(IGoal goal)Dispatch a top level goal and wait for the result. | 
|  void | dispatchTopLevelGoalAndWait(IGoal goal,
                            long timeout)Dispatch a top level goal and wait for the result. | 
|  IFilter | sendMessage(IMessageEvent me)Send a message after some delay. | 
|  IMessageEvent | sendMessageAndWait(IMessageEvent me)Send a message and wait for the answer. | 
|  IMessageEvent | sendMessageAndWait(IMessageEvent me,
                   long timeout)Send a message and wait for the answer. | 
|  void | waitFor(long duration)Wait for a some time. | 
|  void | waitForAgentTerminating()Wait for the agent to terminate. | 
|  void | waitForAgentTerminating(long timeout)Wait for the agent to terminate. | 
|  Object | waitForBeliefChange(String type)Wait for a belief change. | 
|  Object | waitForBeliefChange(String type,
                    long timeout)Wait for a belief change. | 
|  void | waitForBeliefSetChange(String type)Wait for a belief set change. | 
|  void | waitForBeliefSetChange(String type,
                       long timeout)Wait for a belief set change. | 
|  void | waitForCondition(ICondition condition)Wait for a condition to be satisfied. | 
|  void | waitForCondition(ICondition condition,
                 long timeout)Wait for a condition or until the timeout occurs. | 
|  void | waitForCondition(String condition)Wait for a condition to be satisfied. | 
|  void | waitForCondition(String condition,
                 long timeout)Wait for a condition to be satisfied. | 
|  Object | waitForFactAdded(String type)Wait for a belief set change. | 
|  Object | waitForFactAdded(String type,
                 long timeout)Wait for a belief set change. | 
|  Object | waitForFactAddedOrRemoved(String type)Wait for a belief set change. | 
|  Object | waitForFactAddedOrRemoved(String type,
                          long timeout)Wait for a belief set change. | 
|  Object | waitForFactRemoved(String type)Wait for a belief set change. | 
|  Object | waitForFactRemoved(String type,
                   long timeout)Wait for a belief set change. | 
|  void | waitForGoal(String type)Wait for a goal. | 
|  void | waitForGoal(String type,
            long timeout)Wait for a goal. | 
|  IInternalEvent | waitForInternalEvent(String type)Wait for an internal event. | 
|  IInternalEvent | waitForInternalEvent(String type,
                     long timeout)Wait for an internal event. | 
|  IMessageEvent | waitForMessageEvent(String type)Wait for a message event. | 
|  IMessageEvent | waitForMessageEvent(String type,
                    long timeout)Wait for a message event. | 
|  IMessageEvent | waitForReply(IMessageEvent msgevent)Wait for a message. | 
|  IMessageEvent | waitForReply(IMessageEvent msgevent,
             long timeout)Wait for a message. | 
| Methods inherited from interface jadex.runtime.ICapability | 
|---|
| addAgentListener, addSubcapability, deregisterSubcapability, getAgentIdentifier, getAgentName, getBeliefbase, getEventbase, getExpressionbase, getExternalAccess, getGoalbase, getInitialStateName, getLogger, getPlanbase, getPlatformAgent, getPlatformType, getPropertybase, killAgent, registerSubcapability, removeAgentListener, removeSubcapability | 
| Methods inherited from interface jadex.runtime.IElement | 
|---|
| getModelElement, getName | 
| Method Detail | 
|---|
void dispatchTopLevelGoal(IGoal goal)
goal - The new goal.
  Note: plan step is interrupted after call.IGoal createGoal(String type)
type - The template goal name as specified in the ADF.
IFilter sendMessage(IMessageEvent me)
me - The message event.
void dispatchInternalEvent(IInternalEvent event)
event - The event.
  Note: plan step is interrupted after call.IMessageEvent createMessageEvent(String type)
IInternalEvent createInternalEvent(String type)
IInternalEvent createInternalEvent(String type,
                                   Object content)
void waitFor(long duration)
duration - The duration.void waitForCondition(ICondition condition)
condition - The condition.
void waitForCondition(ICondition condition,
                      long timeout)
condition - The condition.timeout - The timeout.void waitForCondition(String condition)
condition - The condition.
void waitForCondition(String condition,
                      long timeout)
condition - The condition.IInternalEvent waitForInternalEvent(String type)
type - The internal event type.
IInternalEvent waitForInternalEvent(String type,
                                    long timeout)
type - The internal event type.timeout - The timeout.IMessageEvent sendMessageAndWait(IMessageEvent me)
me - The message event.
IMessageEvent sendMessageAndWait(IMessageEvent me,
                                 long timeout)
me - The message event.timeout - The timeout.
IMessageEvent waitForMessageEvent(String type)
type - The message event type.
IMessageEvent waitForMessageEvent(String type,
                                  long timeout)
type - The message event type.timeout - The timeout.IMessageEvent waitForReply(IMessageEvent msgevent)
msgevent - The message event.
IMessageEvent waitForReply(IMessageEvent msgevent,
                           long timeout)
msgevent - The message event.void waitForGoal(String type)
type - The goal type.
void waitForGoal(String type,
                 long timeout)
type - The goal type.timeout - The timeout.Object waitForBeliefChange(String type)
type - The internal event type.
Object waitForBeliefChange(String type,
                           long timeout)
type - The belief type.timeout - The timeout.void waitForBeliefSetChange(String type)
type - The belief set type.
void waitForBeliefSetChange(String type,
                            long timeout)
type - The belief set type.Object waitForFactAddedOrRemoved(String type)
type - The belief set type.
Object waitForFactAddedOrRemoved(String type,
                                 long timeout)
type - The belief set type.timeout - The timeout.
  todo: returns a condition triggered event? or new BeliefChanged event?Object waitForFactAdded(String type)
type - The belief set type.
Object waitForFactAdded(String type,
                        long timeout)
type - The belief set type.timeout - The timeout.
Object waitForFactRemoved(String type)
type - The belief set type.
Object waitForFactRemoved(String type,
                          long timeout)
type - The belief set type.timeout - The timeout.
void dispatchTopLevelGoalAndWait(IGoal goal)
goal - The goal.
void dispatchTopLevelGoalAndWait(IGoal goal,
                                 long timeout)
goal - The goal.void waitForAgentTerminating()
void waitForAgentTerminating(long timeout)
| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.