Package jadex.bdiv3x.runtime
Class Plan.PlanWaitAbstraction
- java.lang.Object
-
- jadex.bdiv3x.runtime.Plan.PlanWaitAbstraction
-
- Enclosing class:
- Plan
public class Plan.PlanWaitAbstraction extends java.lang.Object
The plan wait abstraction extends wait abstraction with convenience methods.
-
-
Constructor Summary
Constructors Constructor Description PlanWaitAbstraction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBeliefChanged(java.lang.String belief)
Add a belief change type.protected void
addChangeEventType(java.lang.String eventtype)
Add a change event type.void
addFactAdded(java.lang.String beliefset)
Add a fact added.void
addFactChanged(java.lang.String beliefset)
Add a fact changed.void
addFactRemoved(java.lang.String beliefset)
Add a fact removed.void
addGoalFinished(IGoal goal)
Add the goal to wait for.void
addGoalFinished(java.lang.String type)
Add the goal to wait for.void
addInternalEvent(MInternalEvent mevent)
Add an internal event.void
addInternalEvent(java.lang.String event)
Add an internal event.void
addMessageEvent(MMessageEvent mevent)
Add a message event.void
addMessageEvent(java.lang.String event)
Add a message event.void
addReply(IMessageEvent mevent)
Add a message event reply.void
addRuntimeElement(jadex.bdiv3.runtime.impl.RElement relement)
Add a runtime element.java.lang.Object[]
getElements()
Get the currently contained elements of the waitqueue.protected WaitAbstraction
getWaitAbstraction()
Get the plan waitqueue waitabstraction.boolean
isEmpty()
Test if waitqueue is empty.void
removeBeliefChanged(java.lang.String belief)
Remove a belief change type.protected void
removeChangeEventType(java.lang.String eventtype)
Remove a change event type.void
removeFactAdded(java.lang.String beliefset)
Remove a fact added.void
removeFactChanged(java.lang.String beliefset)
Remove a fact changed.void
removeFactRemoved(java.lang.String beliefset)
Remove a fact removed.void
removeGoalFinished(IGoal goal)
Remove the goal to wait for.void
removeGoalFinished(java.lang.String type)
Remove the goal to wait for.void
removeInternalEvent(java.lang.String event)
Remove an internal event.void
removeMessageEvent(MMessageEvent mevent)
Remove a message event.void
removeMessageEvent(java.lang.String event)
Remove a message event.void
removeReply(IMessageEvent me)
Remove a message event reply.void
removeRuntimeElement(jadex.bdiv3.runtime.impl.RElement relement)
Remove a runtime element.
-
-
-
Method Detail
-
getWaitAbstraction
protected WaitAbstraction getWaitAbstraction()
Get the plan waitqueue waitabstraction.
-
addInternalEvent
public void addInternalEvent(java.lang.String event)
Add an internal event.- Parameters:
type
- The type.
-
removeInternalEvent
public void removeInternalEvent(java.lang.String event)
Remove an internal event.- Parameters:
type
- The type.
-
addMessageEvent
public void addMessageEvent(java.lang.String event)
Add a message event.- Parameters:
type
- The type.
-
removeMessageEvent
public void removeMessageEvent(java.lang.String event)
Remove a message event.- Parameters:
type
- The type.
-
addGoalFinished
public void addGoalFinished(IGoal goal)
Add the goal to wait for.
-
removeGoalFinished
public void removeGoalFinished(IGoal goal)
Remove the goal to wait for.
-
addGoalFinished
public void addGoalFinished(java.lang.String type)
Add the goal to wait for.
-
removeGoalFinished
public void removeGoalFinished(java.lang.String type)
Remove the goal to wait for.
-
addFactChanged
public void addFactChanged(java.lang.String beliefset)
Add a fact changed.- Parameters:
belief
- The belief.
-
addFactAdded
public void addFactAdded(java.lang.String beliefset)
Add a fact added.- Parameters:
beliefset
- The beliefset.
-
addFactRemoved
public void addFactRemoved(java.lang.String beliefset)
Add a fact removed.- Parameters:
beliefset
- The beliefset.
-
addBeliefChanged
public void addBeliefChanged(java.lang.String belief)
Add a belief change type.- Parameters:
belief
- The belief.
-
addMessageEvent
public void addMessageEvent(MMessageEvent mevent)
Add a message event.- Parameters:
type
- The type.
-
addReply
public void addReply(IMessageEvent mevent)
Add a message event reply.- Parameters:
me
- The message event.
-
addInternalEvent
public void addInternalEvent(MInternalEvent mevent)
Add an internal event.- Parameters:
type
- The type.
-
removeFactChanged
public void removeFactChanged(java.lang.String beliefset)
Remove a fact changed.- Parameters:
belief
- The belief.
-
removeFactAdded
public void removeFactAdded(java.lang.String beliefset)
Remove a fact added.- Parameters:
beliefset
- The beliefset.
-
removeFactRemoved
public void removeFactRemoved(java.lang.String beliefset)
Remove a fact removed.- Parameters:
beliefset
- The beliefset.
-
removeBeliefChanged
public void removeBeliefChanged(java.lang.String belief)
Remove a belief change type.- Parameters:
belief
- The belief.
-
removeMessageEvent
public void removeMessageEvent(MMessageEvent mevent)
Remove a message event.- Parameters:
type
- The type.
-
removeReply
public void removeReply(IMessageEvent me)
Remove a message event reply.- Parameters:
me
- The message event.
-
addRuntimeElement
public void addRuntimeElement(jadex.bdiv3.runtime.impl.RElement relement)
Add a runtime element.- Parameters:
relement
- The runtime element.
-
removeRuntimeElement
public void removeRuntimeElement(jadex.bdiv3.runtime.impl.RElement relement)
Remove a runtime element.- Parameters:
relement
- The runtime element.
-
addChangeEventType
protected void addChangeEventType(java.lang.String eventtype)
Add a change event type.- Parameters:
eventtype
- The change event type.
-
removeChangeEventType
protected void removeChangeEventType(java.lang.String eventtype)
Remove a change event type.- Parameters:
eventtype
- The change event type.
-
isEmpty
public boolean isEmpty()
Test if waitqueue is empty.
-
getElements
public java.lang.Object[] getElements()
Get the currently contained elements of the waitqueue.- Returns:
- The collected elements.
-
-