public class AgentDelayRunner
extends java.lang.Object
implements jadex.commons.collection.IDelayRunner
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The agent.
|
static java.lang.Runnable |
NOP |
Constructor and Description |
---|
AgentDelayRunner(jadex.bridge.IInternalAccess agent)
Create a new AgentDelayRunner.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the timer.
|
java.lang.Runnable |
waitForDelay(long delay,
java.lang.Runnable step)
Wait for a delay.
|
public static final java.lang.Runnable NOP
protected jadex.bridge.IInternalAccess agent
public AgentDelayRunner(jadex.bridge.IInternalAccess agent)
public java.lang.Runnable waitForDelay(long delay, java.lang.Runnable step)
waitForDelay
in interface jadex.commons.collection.IDelayRunner
delay
- The delay.step
- The step.public void cancel()
cancel
in interface jadex.commons.collection.IDelayRunner