|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbp.BThread
public abstract class BThread
A base class for behavior thread
Field Summary | |
---|---|
(package private) EventFilterInterface |
blockedEvents
|
protected EventFilterInterface |
interruptingEvents
The set of events that will interrupt this scenario. |
(package private) java.lang.Double |
priority
|
(package private) java.lang.Iterable<Event> |
requestedEvents
Temporary storage for bpSync parameters |
(package private) JavaThreadForBThread |
thread
The thread that executes this scenario |
(package private) EventFilterInterface |
watchedEvents
|
Constructor Summary | |
---|---|
BThread()
|
Method Summary | |
---|---|
protected void |
bpSync(java.lang.Iterable<Event> requestedEvents,
EventFilterInterface watchedEvents,
EventFilterInterface blockedEvents)
Wait for the next event. |
(package private) boolean |
isRequested(Event event)
|
abstract void |
runBThread()
The function that implements the BThread. |
void |
startBThread()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.Double priority
java.lang.Iterable<Event> requestedEvents
EventFilterInterface watchedEvents
EventFilterInterface blockedEvents
protected EventFilterInterface interruptingEvents
JavaThreadForBThread thread
Constructor Detail |
---|
public BThread()
Method Detail |
---|
public abstract void runBThread() throws java.lang.InterruptedException
java.lang.InterruptedException
public void startBThread()
Thread.start()
protected void bpSync(java.lang.Iterable<Event> requestedEvents, EventFilterInterface watchedEvents, EventFilterInterface blockedEvents) throws java.lang.InterruptedException
eos
- A flag that is positive only when the function is called at
the end of a scenario. In this case, we don't need to sleep.
java.lang.InterruptedException
NotAScenarioException
- Raised if the current context is not a scenario.
java.lang.InterruptedException
- Raised when an outside thread interrupts this scenario.boolean isRequested(Event event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |