ConditionSeq Class Reference
[Conditions and WaitSets]

Instantiates com.rti.dds.util.Sequence < com.rti.dds.infrastructure.Condition >. More...

Inherits AbstractNativeSequence.

List of all members.

Public Member Functions

 ConditionSeq (Collection conditions)
 Create a Condition Sequence with the given contents. The size and the maximum of the new sequence will match the size of the given collection.
 ConditionSeq ()
 Create a empty Condition Sequence with a initial maximum of zero.
 ConditionSeq (int initial_maximum)
 Create a Condition Sequence with the specified initial maximum.
int getMaximum ()
 Get the current maximum number of elements that can be stored in this sequence.


Detailed Description

Instantiates com.rti.dds.util.Sequence < com.rti.dds.infrastructure.Condition >.

Instantiates:
<<generic>> com.rti.dds.util.Sequence
See also:
com.rti.dds.infrastructure.WaitSet

com.rti.dds.util.Sequence


Constructor & Destructor Documentation

ConditionSeq ( Collection  conditions  ) 

Create a Condition Sequence with the given contents. The size and the maximum of the new sequence will match the size of the given collection.

Parameters:
conditions The initial contents of the sequence
Exceptions:
NullPointerException if the given collection is null

ConditionSeq (  ) 

Create a empty Condition Sequence with a initial maximum of zero.

ConditionSeq ( int  initial_maximum  ) 

Create a Condition Sequence with the specified initial maximum.

Parameters:
initial_maximum The initial maximum of the sequence.


Member Function Documentation

int getMaximum (  ) 

Get the current maximum number of elements that can be stored in this sequence.

The maximum of the sequence represents the maximum number of elements that the underlying buffer can hold. It does not represent the current number of elements.

The maximum is a non-negative number. It is initialized when the sequence is first created.

The maximum can be changed implicitly by adding an element to the sequence with add(), or explicitly by calling Sequence.setMaximum.

Returns:
the current maximum of the sequence.
See also:
Sequence.size()

Implements Sequence.


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