public interface IInternalExecutionFeature
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<IInternalAccess> |
LOCAL
The currently executing component (if any).
|
Modifier and Type | Method and Description |
---|---|
void |
addSubcomponent(IInternalExecutionFeature sub)
Add a synchronous subcomponent that will run on its parent's thread.
|
void |
block(java.lang.Object monitor,
long timeout,
boolean realtime)
Block the current thread and allow execution on other threads.
|
jadex.commons.future.IFuture<java.lang.Void> |
doStep(java.lang.String stepinfo)
Do a step of a suspended component.
|
boolean |
execute()
Execute the executable.
|
int |
getEndstateStart()
Get the step number when endstate began.
|
void |
removeSubcomponent(IInternalExecutionFeature sub)
Remove a synchronous subcomponent.
|
void |
unblock(java.lang.Object monitor,
java.lang.Throwable exception)
Unblock the thread waiting for the given monitor
and cease execution on the current thread.
|
void |
wakeup()
Trigger component execution.
|
static final java.lang.ThreadLocal<IInternalAccess> LOCAL
void wakeup()
jadex.commons.future.IFuture<java.lang.Void> doStep(java.lang.String stepinfo)
void block(java.lang.Object monitor, long timeout, boolean realtime)
monitor
- The monitor to wait for.realtime
- Flag if timeout is realtime (in contrast to simulation time).void unblock(java.lang.Object monitor, java.lang.Throwable exception)
monitor
- The monitor to notify.boolean execute()
void addSubcomponent(IInternalExecutionFeature sub)
sub
- The subcomponent.void removeSubcomponent(IInternalExecutionFeature sub)
sub
- The subcomponent.int getEndstateStart()