public interface Process extends TimeProvider, Callable<Timestamp>
Modifier and Type | Method and Description |
---|---|
Timestamp |
call()
Returns the next timestamp when this process needs to be scheduled for execution.
|
Attribute |
getAttribute(String name)
Returns the attribute with the respective name.
|
boolean |
hasAttribute(String name)
Checks whether an attribute with the respective name exists.
|
boolean |
hasTerminated()
Indicates whether this processes has terminated.
|
void |
setup()
This method is called before the process is executed for the first time.
|
currentTime
boolean hasAttribute(String name)
name
- the name of the attributetrue
if the attribute exists, false
otherwiseIllegalStateException
- if the attributes has not been set.NullPointerException
- if the name of the attribute is null
getAttribute(String)
Attribute getAttribute(String name)
null
.name
- The name of the attributeIllegalStateException
- if the attributes has not been set.NullPointerException
- if the name of the attribute is null
hasAttribute(String)
void setup()
This method is called before the process is executed for the first time.
Note that this method should be used for process setup instead of the constructor.
Timestamp call()
call
in interface Callable<Timestamp>
Timestamp.MAX
if no further call is required (i.e, passively waiting or terminated).boolean hasTerminated()
call()
.true
if the process has terminated, false
otherwise.Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.