Package jadex.bdiv3.runtime
Class WaitAbstraction
- java.lang.Object
-
- jadex.bdiv3.runtime.WaitAbstraction
-
public class WaitAbstraction extends java.lang.Object
Object that indicates on which elements a plan is waiting.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>
changeeventtypes
The event types.protected java.util.Set<MElement>
modelelements
The model elements.protected java.util.Set<RMessageEvent<?>>
replyelements
The reply elements.protected java.util.Set<jadex.bdiv3.runtime.impl.RElement>
runtimeelements
The runtime elements.
-
Constructor Summary
Constructors Constructor Description WaitAbstraction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeEventType(java.lang.String eventtype)
void
addModelElement(MElement melement)
<T> void
addReply(RMessageEvent<T> event, java.util.Set<MMessageEvent> mevents)
Add a message event reply.void
addRuntimeElement(jadex.bdiv3.runtime.impl.RElement relement)
java.util.Set<java.lang.String>
getChangeeventtypes()
Get the change event types.boolean
isWaitingFor(java.lang.Object procelem)
Test if this wait abstraction is waiting for the element.void
removeChangeEventType(java.lang.String eventtype)
void
removeModelElement(MElement melement)
void
removeReply(RMessageEvent event)
Add a message event reply.void
removeRuntimeElement(jadex.bdiv3.runtime.impl.RElement relement)
-
-
-
Field Detail
-
modelelements
protected java.util.Set<MElement> modelelements
The model elements.
-
runtimeelements
protected java.util.Set<jadex.bdiv3.runtime.impl.RElement> runtimeelements
The runtime elements.
-
changeeventtypes
protected java.util.Set<java.lang.String> changeeventtypes
The event types.
-
replyelements
protected java.util.Set<RMessageEvent<?>> replyelements
The reply elements.
-
-
Method Detail
-
addReply
public <T> void addReply(RMessageEvent<T> event, java.util.Set<MMessageEvent> mevents)
Add a message event reply.- Parameters:
me
- The message event.mevents
- Allowed message templates (null for any).
-
removeReply
public void removeReply(RMessageEvent event)
Add a message event reply.- Parameters:
me
- The message event.
-
addModelElement
public void addModelElement(MElement melement)
-
removeModelElement
public void removeModelElement(MElement melement)
-
addRuntimeElement
public void addRuntimeElement(jadex.bdiv3.runtime.impl.RElement relement)
-
removeRuntimeElement
public void removeRuntimeElement(jadex.bdiv3.runtime.impl.RElement relement)
-
addChangeEventType
public void addChangeEventType(java.lang.String eventtype)
-
removeChangeEventType
public void removeChangeEventType(java.lang.String eventtype)
-
getChangeeventtypes
public java.util.Set<java.lang.String> getChangeeventtypes()
Get the change event types.- Returns:
- The changeeventtypes
-
isWaitingFor
public boolean isWaitingFor(java.lang.Object procelem)
Test if this wait abstraction is waiting for the element.
-
-