public interface RuntimePolicy
Modifier and Type | Field and Description |
---|---|
static RuntimePolicy |
OPERATION |
static RuntimePolicy |
SIMULATION |
Modifier and Type | Method and Description |
---|---|
int |
getParallelism()
Returns the intended CPU parallelism for process execution within a controller.
|
Timestamp |
getTerminationTime()
Returns the (logical) timestamp that shall cause the platform to terminate before time
passes on to a later timestamp.
|
boolean |
stopBeforeTime(Timestamp time)
Indicates whether this policy requires controller termination before the given (logical)
timestamp has passed.
|
boolean |
stopOnException()
Indicates whether this policy requires controller termination when a process fails due to
any uncaught
Throwable or Exception . |
boolean |
stopWhenEmpty()
Indicates whether this policy requires termination when there are no further processes
to be executed.
|
boolean |
stopWhenIdle()
Indicates whether this policy requires termination when there are no further process
activations to be scheduled (although there are inactive processes left).
|
static final RuntimePolicy OPERATION
static final RuntimePolicy SIMULATION
boolean stopWhenEmpty()
true
when controller shall stop when empty, false
otherwise.boolean stopWhenIdle()
true
when controller shall stop when idle, false
otherwise.Timestamp getTerminationTime()
Timestamp.MAX
.boolean stopBeforeTime(Timestamp time)
Timestamp.MAX
every implementation is supposed
to return true
.true
when controller shall stop before the given timestamp passed,
false
otherwise.getTerminationTime()
boolean stopOnException()
Throwable
or Exception
.true if the platform should stop execution when any process fails,
false
otherwise.
int getParallelism()
scheduling
.Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.