org.omg.dds.topic
Interface TopicDescription<TYPE>

Type Parameters:
TYPE - The concrete type of the data that will be published and/ or subscribed by the readers and writers that use this topic description.
All Superinterfaces:
DDSObject
All Known Subinterfaces:
ContentFilteredTopic<TYPE>, MultiTopic<TYPE>, Topic<TYPE>

public interface TopicDescription<TYPE>
extends DDSObject

This interface is the base for Topic, ContentFilteredTopic, and MultiTopic. TopicDescription represents the fact that both publications and subscriptions are tied to a single data type. Its attribute typeName defines a unique resulting type for the publication or the subscription and therefore creates an implicit association with a TypeSupport. TopicDescription has also a name that allows it to be retrieved locally.


Method Summary
<OTHER> TopicDescription<OTHER>
cast()
          Cast this topic description to the given type, or throw an exception if the cast fails.
 void close()
          Dispose the resources held by this object.
 java.lang.String getName()
           
 DomainParticipant getParent()
           
 java.lang.Class<TYPE> getType()
           
 java.lang.String getTypeName()
           
 
Methods inherited from interface org.omg.dds.core.DDSObject
getBootstrap
 

Method Detail

getType

java.lang.Class<TYPE> getType()
Returns:
the type parameter if this object's class.

cast

<OTHER> TopicDescription<OTHER> cast()
Cast this topic description to the given type, or throw an exception if the cast fails.

Type Parameters:
OTHER - The type of the data exchanged on this topic, according to the caller.
Returns:
this topic description
Throws:
java.lang.ClassCastException - if the cast fails

getTypeName

java.lang.String getTypeName()

getName

java.lang.String getName()

getParent

DomainParticipant getParent()

close

void close()
Dispose the resources held by this object.



Copyright © 2010 Real-Time Innovations, Inc. (RTI)
Copyright © 2010 PrismTech, Ltd.
Copyright © 2010 Object Management Group, Inc. (OMG)
All Rights Reserved.