| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjadex.runtime.AbstractPlan
jadex.runtime.MobilePlan
public abstract class MobilePlan
A plan (in our context more a plan body) contains actions for accomplishing a target state. Additionally to plan belongs (stored in plan info): - filters (waitqueuefilter, planfilter) Subclasses of plan have to implement the action method.
| Constructor Summary | |
|---|---|
| MobilePlan() | |
| Method Summary | |
|---|---|
|  void | aborted()Deprecated. Replaced by aborted(event). | 
|  void | aborted(IEvent event)The plan was aborted (because of conditional goal success or termination from outside). | 
| abstract  void | action(IEvent event)The action methods is called on the instatiated plan instance from the scheduler. | 
|  IFilter | dispatchSubgoalAndWait(IGoal subgoal)A shortcut for dispatching a subgoal, and waiting for the subgoal to be finished (without timout). | 
|  IFilter | dispatchSubgoalAndWait(IGoal subgoal,
                       long timeout)A shortcut for dispatching a subgoal, and waiting for the subgoal to be finished (with timout). | 
|  void | exception(Exception exception)The exception method is called when an exception occurred during plan processing. | 
|  void | failed()Deprecated. Replaced by failed(event). | 
|  void | failed(IEvent event)The failed method is called on plan failure/abort. | 
|  void | passed()Deprecated. Replaced by passed(event). | 
|  void | passed(IEvent event)The passed method is called on plan success. | 
|  IFilter | sendMessageAndWait(IMessageEvent me)Send a message and wait for the answer. | 
|  IFilter | sendMessageAndWait(IMessageEvent me,
                   long timeout)Send a message and wait for the answer. | 
|  IFilter | waitFor(IFilter filter)Deprecated. | 
|  IFilter | waitFor(IFilter filter,
        long timeout)Deprecated. | 
|  IFilter | waitFor(long duration)Wait for a some time. | 
|  IFilter | waitForBeliefChange(String type)Wait for a belief change. | 
|  IFilter | waitForBeliefChange(String type,
                    long timeout)Wait for a belief change. | 
|  IFilter | waitForBeliefSetChange(String type)Wait for a belief set change. | 
|  IFilter | waitForBeliefSetChange(String type,
                       long timeout)Wait for a belief set change. | 
|  IFilter | waitForCondition(ICondition condition)Wait for a condition to be satisfied. | 
|  IFilter | waitForCondition(ICondition condition,
                 long timeout)Wait for a condition or until the timeout occurs. | 
|  IFilter | waitForCondition(String condition)Wait for a condition to be satisfied. | 
|  IFilter | waitForCondition(String condition,
                 long timeout)Wait for a condition to be satisfied. | 
|  IFilter | waitForFactAdded(String type)Wait for a belief set change. | 
|  IFilter | waitForFactAdded(String type,
                 long timeout)Wait for a belief set change. | 
|  IFilter | waitForFactAddedOrRemoved(String type)Wait for a belief set change. | 
|  IFilter | waitForFactAddedOrRemoved(String type,
                          long timeout)Wait for a belief set change. | 
|  IFilter | waitForFactRemoved(String type)Wait for a belief set change. | 
|  IFilter | waitForFactRemoved(String type,
                   long timeout)Wait for a belief set change. | 
|  IFilter | waitForGoal(String type)Wait for a goal. | 
|  IFilter | waitForGoal(String type,
            long timeout)Wait for a goal. | 
|  IFilter | waitForInternalEvent(String type)Wait for an internal event. | 
|  IFilter | waitForInternalEvent(String type,
                     long timeout)Wait for an internal event. | 
|  IFilter | waitForMessageEvent(String type)Wait for a message event. | 
|  IFilter | waitForMessageEvent(String type,
                    long timeout)Wait for a message event. | 
|  IFilter | waitForReply(IMessageEvent msgevent)Wait for a message. | 
|  IFilter | waitForReply(IMessageEvent msgevent,
             long timeout)Wait for a message. | 
|  IFilter | waitForSubgoal(IGoal goal)Wait for a goal. | 
|  IFilter | waitForSubgoal(IGoal goal,
               long timeout)Wait for a goal. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public MobilePlan()
| Method Detail | 
|---|
public abstract void action(IEvent event)
public void exception(Exception exception)
               throws Exception
Exceptionpublic final void passed()
public final void failed()
public final void aborted()
public void passed(IEvent event)
event - The event (for subsequent calls, initially null).public void failed(IEvent event)
event - The event (for subsequent calls, initially null).public void aborted(IEvent event)
event - The event (for subsequent calls, initially null).public IFilter waitFor(long duration)
duration - The duration.public IFilter waitForCondition(ICondition condition)
condition - The condition.
public IFilter waitForCondition(ICondition condition,
                                long timeout)
condition - The condition.timeout - The timeout.public IFilter waitForCondition(String condition)
condition - The condition.
public IFilter waitForCondition(String condition,
                                long timeout)
condition - The condition.public IFilter dispatchSubgoalAndWait(IGoal subgoal)
subgoal - The new subgoal.
public IFilter dispatchSubgoalAndWait(IGoal subgoal,
                                      long timeout)
subgoal - The new subgoal.timeout - The timeout.
public IFilter waitForInternalEvent(String type)
type - The internal event type.
public IFilter waitForInternalEvent(String type,
                                    long timeout)
type - The internal event type.timeout - The timeout.public IFilter sendMessageAndWait(IMessageEvent me)
me - The message event.
public IFilter sendMessageAndWait(IMessageEvent me,
                                  long timeout)
me - The message event.timeout - The timeout.
public IFilter waitForMessageEvent(String type)
type - The message event type.
public IFilter waitForMessageEvent(String type,
                                   long timeout)
type - The message event type.timeout - The timeout.public IFilter waitForReply(IMessageEvent msgevent)
msgevent - The message event.
public IFilter waitForReply(IMessageEvent msgevent,
                            long timeout)
msgevent - The message event.public IFilter waitForGoal(String type)
type - The goal type.
public IFilter waitForGoal(String type,
                           long timeout)
type - The goal type.timeout - The timeout.public IFilter waitForSubgoal(IGoal goal)
goal - The goal.
public IFilter waitForSubgoal(IGoal goal,
                              long timeout)
goal - The goal.timeout - The timeout.public IFilter waitForBeliefChange(String type)
type - The internal event type.
  todo: returns a condition triggered event? or new BeliefChanged event?
public IFilter waitForBeliefChange(String type,
                                   long timeout)
type - The belief type.timeout - The
  todo: returns a condition triggered event? or new BeliefChanged event?public IFilter waitForBeliefSetChange(String type)
type - The belief set type.
  todo: returns a condition triggered event? or new BeliefChanged event?
public IFilter waitForBeliefSetChange(String type,
                                      long timeout)
type - The belief set type.timeout - The timeout.
  todo: returns a condition triggered event? or new BeliefChanged event?public IFilter waitForFactAddedOrRemoved(String type)
type - The belief set type.
  todo: returns a condition triggered event? or new BeliefChanged event?
public IFilter waitForFactAddedOrRemoved(String type,
                                         long timeout)
type - The belief set type.timeout - The timeout.
  todo: returns a condition triggered event? or new BeliefChanged event?public IFilter waitForFactAdded(String type)
type - The belief set type.
public IFilter waitForFactAdded(String type,
                                long timeout)
type - The belief set type.timeout - The timeout.
public IFilter waitForFactRemoved(String type)
type - The belief set type.
public IFilter waitForFactRemoved(String type,
                                  long timeout)
type - The belief set type.timeout - The timeout.
public IFilter waitFor(IFilter filter)
filter - The event filter.
public IFilter waitFor(IFilter filter,
                       long timeout)
filter - The event filter.timeout - The 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.