OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
org.opensplice.dds.core.TimeImpl Class Reference
Inheritance diagram for org.opensplice.dds.core.TimeImpl:
Inheritance graph
Collaboration diagram for org.opensplice.dds.core.TimeImpl:
Collaboration graph

Public Member Functions

 TimeImpl (OsplServiceEnvironment environment, long duration, TimeUnit unit)
 
 TimeImpl (OsplServiceEnvironment environment, long seconds, long nanoseconds)
 
void add (Duration duration)
 
void add (long duration, TimeUnit unit)
 
int compareTo (Time o)
 
DDS.Time_t convert ()
 
void copyFrom (Time src)
 
boolean equals (Object other)
 
ServiceEnvironment getEnvironment ()
 
long getRemainder (TimeUnit primaryUnit, TimeUnit remainderUnit)
 
long getTime (TimeUnit inThisUnit)
 
int hashCode ()
 
Time immutableCopy ()
 
boolean isInfinite ()
 
boolean isValid ()
 
ModifiableTime modifiableCopy ()
 
TimeImpl normalize ()
 
void setTime (long time, TimeUnit unit)
 
void subtract (Duration duration)
 
void subtract (long duration, TimeUnit unit)
 
String toString ()
 

Static Public Member Functions

static Time invalidTime (ServiceEnvironment env)
 
static ModifiableTime newTime (long time, TimeUnit units, ServiceEnvironment env)
 Construct a specific instant in time. More...
 

Protected Member Functions

void normalizeMe ()
 

Protected Attributes

final transient OsplServiceEnvironment environment
 

Detailed Description

Definition at line 28 of file TimeImpl.java.

Constructor & Destructor Documentation

◆ TimeImpl() [1/2]

org.opensplice.dds.core.TimeImpl.TimeImpl ( OsplServiceEnvironment  environment,
long  duration,
TimeUnit  unit 
)

Definition at line 31 of file TimeImpl.java.

◆ TimeImpl() [2/2]

org.opensplice.dds.core.TimeImpl.TimeImpl ( OsplServiceEnvironment  environment,
long  seconds,
long  nanoseconds 
)

Definition at line 36 of file TimeImpl.java.

Member Function Documentation

◆ add() [1/2]

void org.opensplice.dds.core.TimeImpl.add ( Duration  duration)

Definition at line 66 of file TimeImpl.java.

◆ add() [2/2]

void org.opensplice.dds.core.TimeImpl.add ( long  duration,
TimeUnit  unit 
)

Definition at line 72 of file TimeImpl.java.

◆ compareTo()

int org.opensplice.dds.core.ModifiableTimeImpl.compareTo ( Time  o)
inherited

Definition at line 104 of file ModifiableTimeImpl.java.

◆ convert()

DDS.Time_t org.opensplice.dds.core.ModifiableTimeImpl.convert ( )
inherited

Definition at line 405 of file ModifiableTimeImpl.java.

◆ copyFrom()

void org.opensplice.dds.core.TimeImpl.copyFrom ( Time  src)

Definition at line 49 of file TimeImpl.java.

◆ equals()

boolean org.opensplice.dds.core.ModifiableTimeImpl.equals ( Object  other)
inherited

Definition at line 135 of file ModifiableTimeImpl.java.

◆ getEnvironment()

ServiceEnvironment org.opensplice.dds.core.ModifiableTimeImpl.getEnvironment ( )
inherited
Returns
the org.omg.dds.core.ServiceEnvironment object that directly or indirectly was used to create this object.

Implements org.omg.dds.core.DDSObject.

Definition at line 150 of file ModifiableTimeImpl.java.

◆ getRemainder()

long org.opensplice.dds.core.ModifiableTimeImpl.getRemainder ( TimeUnit  primaryUnit,
TimeUnit  remainderUnit 
)
inherited

Definition at line 366 of file ModifiableTimeImpl.java.

◆ getTime()

long org.opensplice.dds.core.ModifiableTimeImpl.getTime ( TimeUnit  inThisUnit)
inherited

Definition at line 354 of file ModifiableTimeImpl.java.

◆ hashCode()

int org.opensplice.dds.core.ModifiableTimeImpl.hashCode ( )
inherited

Definition at line 145 of file ModifiableTimeImpl.java.

◆ immutableCopy()

Time org.opensplice.dds.core.TimeImpl.immutableCopy ( )

Definition at line 55 of file TimeImpl.java.

◆ invalidTime()

static Time org.omg.dds.core.Time.invalidTime ( ServiceEnvironment  env)
staticinherited
Parameters
envIdentifies the Service instance to which the object will belong.
Returns
An unmodifiable org.omg.dds.core.Time that is not valid.

Definition at line 81 of file Time.java.

◆ isInfinite()

boolean org.opensplice.dds.core.ModifiableTimeImpl.isInfinite ( )
inherited

Definition at line 258 of file ModifiableTimeImpl.java.

◆ isValid()

boolean org.opensplice.dds.core.ModifiableTimeImpl.isValid ( )
inherited

Definition at line 387 of file ModifiableTimeImpl.java.

◆ modifiableCopy()

ModifiableTime org.opensplice.dds.core.ModifiableTimeImpl.modifiableCopy ( )
inherited

Definition at line 400 of file ModifiableTimeImpl.java.

◆ newTime()

static ModifiableTime org.omg.dds.core.Time.newTime ( long  time,
TimeUnit  units,
ServiceEnvironment  env 
)
staticinherited

Construct a specific instant in time.

Negative values are considered invalid and will result in the construction of a time t such that:

t.isValid() == false

Parameters
envIdentifies the Service instance to which the new object will belong.
See also
isValid()

Definition at line 62 of file Time.java.

◆ normalize()

TimeImpl org.opensplice.dds.core.TimeImpl.normalize ( )

Definition at line 42 of file TimeImpl.java.

◆ normalizeMe()

void org.opensplice.dds.core.ModifiableTimeImpl.normalizeMe ( )
protectedinherited

Definition at line 96 of file ModifiableTimeImpl.java.

◆ setTime()

void org.opensplice.dds.core.TimeImpl.setTime ( long  time,
TimeUnit  unit 
)

Definition at line 60 of file TimeImpl.java.

◆ subtract() [1/2]

void org.opensplice.dds.core.TimeImpl.subtract ( Duration  duration)

Definition at line 78 of file TimeImpl.java.

◆ subtract() [2/2]

void org.opensplice.dds.core.TimeImpl.subtract ( long  duration,
TimeUnit  unit 
)

Definition at line 84 of file TimeImpl.java.

◆ toString()

String org.opensplice.dds.core.ModifiableTimeImpl.toString ( )
inherited

Definition at line 410 of file ModifiableTimeImpl.java.

Member Data Documentation

◆ environment

final transient OsplServiceEnvironment org.opensplice.dds.core.ModifiableTimeImpl.environment
protectedinherited

Definition at line 32 of file ModifiableTimeImpl.java.


The documentation for this class was generated from the following file: