Package | Description |
---|---|
javax.realtime |
Jamaica's implementation of the Real-Time Specification for Java.
|
Modifier and Type | Method and Description |
---|---|
Clock |
HighResolutionTime.getClock()
getClock returns a reference to the clock associated with this.
|
Clock |
Timer.getClock()
getClock returns the clock this timer was based on.
|
static Clock |
Clock.getRealtimeClock()
Returns the default RealtimeClock.
|
Modifier and Type | Method and Description |
---|---|
abstract AbsoluteTime |
HighResolutionTime.absolute(Clock clock)
absolute converts this time to an absolute time relative to the
given clock.
|
AbsoluteTime |
RelativeTime.absolute(Clock clock)
absolute creates a new instance of absolute time for the point in
time given by the current time of the given clock.
|
AbsoluteTime |
AbsoluteTime.absolute(Clock clock)
absolute implements abstract method inherited from
HighResolutionTime.
|
abstract AbsoluteTime |
HighResolutionTime.absolute(Clock clock,
AbsoluteTime dest)
absolute converts this time to an absolute time relative to the
given clock.
|
AbsoluteTime |
RationalTime.absolute(Clock clock,
AbsoluteTime destination)
Deprecated.
RTSJ V1.0.1 class RationalTime is deprecated
|
AbsoluteTime |
RelativeTime.absolute(Clock clock,
AbsoluteTime destination)
absolute converts this relative time into an instance of absolute
time for the point in time given by the current time of the given
clock.
|
AbsoluteTime |
AbsoluteTime.absolute(Clock clock,
AbsoluteTime dest)
absolute implements abstract method inherited from
HighResolutionTime.
|
abstract RelativeTime |
HighResolutionTime.relative(Clock clock)
relative returns a new relative time object for this relative to
the given clock.
|
RelativeTime |
RelativeTime.relative(Clock clock)
relative returns a new instance of this interval with the given
clock association.
|
RelativeTime |
AbsoluteTime.relative(Clock clock)
relative implements abstract method inherited from
HighResolutionTime.
|
abstract RelativeTime |
HighResolutionTime.relative(Clock clock,
RelativeTime time)
relative converts this time to a relative time using the given
clock.
|
RelativeTime |
RelativeTime.relative(Clock clock,
RelativeTime destination)
relative returns a copy of this interval with the given clock
association.
|
RelativeTime |
AbsoluteTime.relative(Clock clock,
RelativeTime dest)
relative implements abstract method inherited from
HighResolutionTime.
|
static void |
RealtimeThread.sleep(Clock clock,
HighResolutionTime<?> time)
Sleep for a given relative or absolute time using the given
clock.
|
Constructor and Description |
---|
AbsoluteTime(AbsoluteTime time,
Clock clock)
Constructor to create an absolute time with millis and nanos
taken from an existing absolute time.
|
AbsoluteTime(Clock clock)
Constructor to create absolute time 0ms, 0ns with given clock
association.
|
AbsoluteTime(Date date,
Clock clock)
Constructor to create an absolute time from a time represented by
an instance of Date.
|
AbsoluteTime(long millis,
int nanos,
Clock clock)
Constructor to create an absolute time from given milli and nano
seconds.
|
OneShotTimer(HighResolutionTime<?> start,
Clock clock,
AsyncBaseEventHandler handler)
Constructor to create an instance with given time, clock and
handler.
|
OneShotTimer(HighResolutionTime<?> start,
Clock clock,
AsyncEventHandler handler)
Constructor to create an instance with given time, clock and
handler.
|
PeriodicTimer(HighResolutionTime<?> start,
RelativeTime interval,
Clock clock,
AsyncBaseEventHandler handler)
Constructor to create an instance with given time, interval,
clock and handler.
|
PeriodicTimer(HighResolutionTime<?> start,
RelativeTime interval,
Clock clock,
AsyncEventHandler handler)
Constructor to create an instance with given time, interval,
clock and handler.
|
RelativeTime(Clock clock)
Constructor to create the empty interval bound to the provided
clock.
|
RelativeTime(long ms,
int ns,
Clock clock)
Constructor to create an interval using the provided interval
that is bound to the default RealtimeClock.
|
RelativeTime(RelativeTime time,
Clock clock)
Constructor to create a new RelativeTime object that represents
the same interval as the given RelativeTime and that has the same
clock association or the clock association provided as a non-null
clock parameter.
|
Timer(HighResolutionTime<?> time,
Clock clock,
AsyncBaseEventHandler handler)
Constructor to create a timer with the given time, clock and
handler.
|
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.