public class IntervalBehavior<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IntervalBehavior.StepResultListener<E,F> |
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
component
The component.
|
protected long |
delay
The delay.
|
protected java.lang.String |
id
The current id.
|
protected boolean |
realtime
The realtime flag.
|
protected jadex.bridge.IComponentStep<T> |
step
The component step.
|
Constructor and Description |
---|
IntervalBehavior(jadex.bridge.IInternalAccess component,
long delay,
jadex.bridge.IComponentStep<T> step,
boolean realtime)
Create a new lease time handling object.
|
Modifier and Type | Method and Description |
---|---|
long |
getDelay()
Get the delay.
|
java.lang.String |
getId()
Get the id.
|
jadex.bridge.IComponentStep<T> |
getStep()
Get the step.
|
void |
setDelay(long delay)
Set the delay.
|
void |
setId(java.lang.String sendid)
Set the id.
|
void |
setStep(jadex.bridge.IComponentStep<T> step)
Set the step.
|
jadex.commons.future.IFuture<java.lang.Void> |
startBehavior()
Start sending awareness infos.
|
jadex.commons.future.IFuture<java.lang.Void> |
stopBehavior()
(Ends automatically when a new send behaviour is started).
|
protected jadex.bridge.IInternalAccess component
protected jadex.bridge.IComponentStep<T> step
protected long delay
protected java.lang.String id
protected boolean realtime
public IntervalBehavior(jadex.bridge.IInternalAccess component, long delay, jadex.bridge.IComponentStep<T> step, boolean realtime)
public jadex.commons.future.IFuture<java.lang.Void> startBehavior()
public jadex.commons.future.IFuture<java.lang.Void> stopBehavior()
public java.lang.String getId()
public void setId(java.lang.String sendid)
id
- The id to set.public jadex.bridge.IComponentStep<T> getStep()
public void setStep(jadex.bridge.IComponentStep<T> step)
step
- The step to set.public long getDelay()
public void setDelay(long delay)
delay
- The delay to set.