Package | Description |
---|---|
com.aimpulse.spectrum.core |
Aimpulse platform
|
com.aimpulse.spectrum.mas.behaviors |
Event-driven agent behavior
|
com.aimpulse.spectrum.time |
Time for the Aimpulse platform
|
com.aimpulse.time |
Time
|
Constructor and Description |
---|
DiscreteEventSimulation(Timestamp startTime,
Timestamp terminationTime,
Duration timeGranularity)
Creates a new instance with the given desired start and termination time as well as
the given time granularity.
|
DiscreteEventSimulation(Timestamp startTime,
Timestamp terminationTime,
Duration timeGranularity,
int parallelism)
Creates a new instance with the given desired start and termination time as well as
the given time granularity.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicBehavior.block(Duration duration)
Block this behavior for the specified duration (measured in model time).
|
void |
BasicBehavior.blockUntil(MessagePattern pattern,
Duration duration)
Block this behavior until a message arrives that matches the specified
message pattern but no longer than the specified duration (measured in
model time).
|
Modifier and Type | Field and Description |
---|---|
static Duration |
DiscreteEventTimeManager.DEFAULT_GRANULARITY
The default granularity of time applied by this class.
|
Modifier and Type | Method and Description |
---|---|
Duration |
DiscreteEventTimeManager.getGranularity()
Returns the granularity of the time manager's time grid with UNIX epoch as grid
reference origin.
|
Constructor and Description |
---|
DiscreteEventTimeManager(Timestamp start,
Duration granularity)
Creates a new instance of
DiscreteEventTimeManager . |
Modifier and Type | Field and Description |
---|---|
static Duration |
Duration.DAY |
static Duration |
Duration.HOUR |
static Duration |
Duration.MILLISECOND |
static Duration |
Duration.MINUTE |
static Duration |
Duration.SECOND |
Modifier and Type | Method and Description |
---|---|
Duration |
Duration.add(Duration addedDuration)
Returns a
Duration instance representing the sum of this duration and the
given duration. |
Duration |
Duration.difference(Duration otherDuration)
Returns a
Duration instance representing the difference between this duration
and the given duration. |
Duration |
Timespan.duration()
Returns the duration of this timespan.
|
static Duration |
Duration.fromMilliseconds(long milliseconds)
Creates a duration from the given millisecond value.
|
static Duration |
Duration.fromSeconds(long seconds)
Creates a duration from the given amount of seconds.
|
Modifier and Type | Method and Description |
---|---|
Timestamp |
Timestamp.add(Duration duration)
Create a new
Timestamp instance with a specified amount of
milliseconds added. |
Duration |
Duration.add(Duration addedDuration)
Returns a
Duration instance representing the sum of this duration and the
given duration. |
int |
Duration.compareTo(Duration other) |
Duration |
Duration.difference(Duration otherDuration)
Returns a
Duration instance representing the difference between this duration
and the given duration. |
Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.