Time_t Class Reference
[Time Support]

Type for time representation. More...

Inherits Struct, and java.io.Externalizable.

List of all members.

Public Member Functions

 Time_t (Time_t time)
 Copy constructor.
 Time_t (int sec, int nanosec)
 Constructor.
boolean is_invalid ()
boolean is_zero ()
 Check if time is zero.

Public Attributes

int sec
 seconds
int nanosec
 nanoseconds

Static Public Attributes

static final int TIME_INVALID_SEC
 A sentinel indicating an invalid second of time.
static final int TIME_INVALID_NSEC
 A sentinel indicating an invalid nano-second of time.


Detailed Description

Type for time representation.

A com.rti.dds.infrastructure.Time_t represents a moment in time.


Constructor & Destructor Documentation

Time_t ( Time_t  time  ) 

Copy constructor.

Parameters:
time The instance to copy. It must not be null.

Time_t ( int  sec,
int  nanosec 
)

Constructor.

Parameters:
sec must be >=0
nanosec must be >=0
Exceptions:
RETCODE_BAD_PARAMETER if either time value is negative


Member Function Documentation

boolean is_invalid (  ) 

Returns:
true if the given time is not valid (i.e. is negative)

boolean is_zero (  ) 

Check if time is zero.

Returns:
true if the given time is equal to com.rti.dds.infrastructure.Time_t.ZERO or false otherwise.


Member Data Documentation

final int TIME_INVALID_SEC [static]

A sentinel indicating an invalid second of time.

final int TIME_INVALID_NSEC [static]

A sentinel indicating an invalid nano-second of time.

int sec

seconds

int nanosec

nanoseconds


RTI Connext Java API Version 4.5f Copyright © 17 Mar 2012 Real-Time Innovations, Inc