![]() |
OpenSplice Java 5 DCPS
v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
Public Member Functions | |
DurationImpl (OsplServiceEnvironment environment, long duration, TimeUnit unit) | |
DurationImpl (OsplServiceEnvironment environment, long seconds, long nanoseconds) | |
Duration | add (Duration duration) |
Duration | add (long duration, TimeUnit unit) |
int | compareTo (Duration o) |
DDS.Duration_t | convert () |
boolean | equals (Object other) |
long | getDuration (TimeUnit inThisUnit) |
ServiceEnvironment | getEnvironment () |
long | getRemainder (TimeUnit primaryUnit, TimeUnit remainderUnit) |
int | hashCode () |
boolean | isInfinite () |
boolean | isZero () |
DurationImpl | normalize () |
Duration | subtract (Duration duration) |
Duration | subtract (long duration, TimeUnit unit) |
String | toString () |
Static Public Member Functions | |
static Duration | infiniteDuration (ServiceEnvironment env) |
static Duration | newDuration (long duration, TimeUnit unit, ServiceEnvironment env) |
Construct a time duration of the given magnitude. More... | |
static Duration | zeroDuration (ServiceEnvironment env) |
Static Public Attributes | |
static final int | INFINITE_NANOSECONDS = DDS.DURATION_INFINITE_NSEC.value |
static final int | INFINITE_SECONDS = DDS.DURATION_INFINITE_SEC.value |
Definition at line 28 of file DurationImpl.java.
org.opensplice.dds.core.DurationImpl.DurationImpl | ( | OsplServiceEnvironment | environment, |
long | duration, | ||
TimeUnit | unit | ||
) |
Definition at line 37 of file DurationImpl.java.
org.opensplice.dds.core.DurationImpl.DurationImpl | ( | OsplServiceEnvironment | environment, |
long | seconds, | ||
long | nanoseconds | ||
) |
Definition at line 59 of file DurationImpl.java.
Definition at line 178 of file DurationImpl.java.
Duration org.opensplice.dds.core.DurationImpl.add | ( | long | duration, |
TimeUnit | unit | ||
) |
Definition at line 232 of file DurationImpl.java.
int org.opensplice.dds.core.DurationImpl.compareTo | ( | Duration | o | ) |
Definition at line 96 of file DurationImpl.java.
DDS.Duration_t org.opensplice.dds.core.DurationImpl.convert | ( | ) |
Definition at line 314 of file DurationImpl.java.
boolean org.opensplice.dds.core.DurationImpl.equals | ( | Object | other | ) |
Definition at line 319 of file DurationImpl.java.
long org.opensplice.dds.core.DurationImpl.getDuration | ( | TimeUnit | inThisUnit | ) |
Definition at line 134 of file DurationImpl.java.
ServiceEnvironment org.opensplice.dds.core.DurationImpl.getEnvironment | ( | ) |
Implements org.omg.dds.core.DDSObject.
Definition at line 129 of file DurationImpl.java.
long org.opensplice.dds.core.DurationImpl.getRemainder | ( | TimeUnit | primaryUnit, |
TimeUnit | remainderUnit | ||
) |
Definition at line 146 of file DurationImpl.java.
int org.opensplice.dds.core.DurationImpl.hashCode | ( | ) |
Definition at line 332 of file DurationImpl.java.
|
staticinherited |
env | Identifies the Service instance to which the object will belong. |
Definition at line 81 of file Duration.java.
boolean org.opensplice.dds.core.DurationImpl.isInfinite | ( | ) |
Definition at line 172 of file DurationImpl.java.
boolean org.opensplice.dds.core.DurationImpl.isZero | ( | ) |
Definition at line 167 of file DurationImpl.java.
|
staticinherited |
Construct a time duration of the given magnitude.
A duration of magnitude Long#MAX_VALUE indicates an infinite duration, regardless of the units specified.
env | Identifies the Service instance to which the new object will belong. |
Definition at line 62 of file Duration.java.
DurationImpl org.opensplice.dds.core.DurationImpl.normalize | ( | ) |
Definition at line 75 of file DurationImpl.java.
Definition at line 240 of file DurationImpl.java.
Duration org.opensplice.dds.core.DurationImpl.subtract | ( | long | duration, |
TimeUnit | unit | ||
) |
Definition at line 307 of file DurationImpl.java.
String org.opensplice.dds.core.DurationImpl.toString | ( | ) |
Definition at line 337 of file DurationImpl.java.
|
staticinherited |
env | Identifies the Service instance to which the object will belong. |
Definition at line 97 of file Duration.java.
|
static |
Definition at line 35 of file DurationImpl.java.
|
static |
Definition at line 34 of file DurationImpl.java.