Duration_t Class Reference
[Time Support]

Type for duration representation. More...

Inherits Struct, and java.io.Externalizable.

List of all members.

Public Member Functions

 Duration_t (Duration_t duration)
 Copy constructor.
 Duration_t (int sec, int nanosec)
boolean is_zero ()
boolean is_infinite ()
boolean is_auto ()

Public Attributes

int sec
 seconds
int nanosec
 nanoseconds

Static Public Attributes

static final int DURATION_ZERO_SEC
 A zero-length second period of time.
static final int DURATION_ZERO_NSEC
 A zero-length nano-second period of time.
static final int DURATION_INFINITE_SEC
 An infinite second period of time.
static final int DURATION_INFINITE_NSEC
 An infinite nano-second period of time.
static final int DURATION_AUTO_SEC
 An auto second period of time.
static final int DURATION_AUTO_NSEC
 An auto nano-second period of time.


Detailed Description

Type for duration representation.

Represents a time interval.


Constructor & Destructor Documentation

Duration_t ( Duration_t  duration  ) 

Copy constructor.

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

Duration_t ( int  sec,
int  nanosec 
)

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


Member Function Documentation

boolean is_zero (  ) 

Returns:
true if the given duration is of zero length.

boolean is_infinite (  ) 

Returns:
true if the given duration is of infinite length.

boolean is_auto (  ) 

Returns:
true if the given duration has auto value.


Member Data Documentation

final int DURATION_ZERO_SEC [static]

A zero-length second period of time.

final int DURATION_ZERO_NSEC [static]

A zero-length nano-second period of time.

final int DURATION_INFINITE_SEC [static]

An infinite second period of time.

final int DURATION_INFINITE_NSEC [static]

An infinite nano-second period of time.

final int DURATION_AUTO_SEC [static]

An auto second period of time.

final int DURATION_AUTO_NSEC [static]

An auto nano-second period of time.

int sec

seconds

int nanosec

nanoseconds


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