001: /*
002: * DDS (Data Distribution Service) for JacORB
003: *
004: * Copyright (C) 2005 , Ahmed yehdih <ahmed.yehdih@gmail.com>, fouad
005: * allaoui <fouad.allaoui@gmail.com>, Didier Donsez (didier.donsez@ieee.org)
006: *
007: * This program is free software; you can redistribute it and/or
008: * modify it under the terms of the GNU Library General Public License
009: * as published by the Free Software Foundation; either version 2
010: * of the License, or (at your option) any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
015: * GNU Library General Public License for more details.
016: *
017: * You should have received a copy of the GNU Library General Public
018: * License along with this program; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
020: * 02111-1307, USA.
021: *
022: * Coontact: Ahmed yehdih <ahmed.yehdih@gmail.com>, fouad allaoui
023: * <fouad.allaoui@gmail.com>, Didier Donsez (didier.donsez@ieee.org)
024: * Contributor(s)
025: *
026: **/
027: package org.jacorb.dds;
028:
029: import org.omg.dds.DomainParticipant;
030: import org.omg.dds.InconsistentTopicStatus;
031: import org.omg.dds.StatusCondition;
032: import org.omg.dds.TopicListener;
033: import org.omg.dds.TopicPOA;
034: import org.omg.dds.TopicQos;
035:
036: /**
037: * Topic is the most basic description of the data to be published and subscribed.
038: * A Topic is identified by its name, which must be unique in the whole Domain. In addition
039: * (by virtue of extending TopicDescription) it fully specifies the type of the data
040: * that can be communicated when publishing or subscribing to the Topic.Topic is the only
041: * TopicDescription that can be used for publications and therefore associated to a
042: * DataWriter.
043: */
044: public class TopicImpl extends TopicPOA {
045:
046: private String topic_name;
047: private String type_name;
048: private TopicQos qos;
049: private TopicListener a_listener;
050: private DomainParticipant DP_Parent;
051: private org.omg.CORBA.ORB orb;
052: private org.omg.PortableServer.POA poa;
053:
054: /**
055: * @return Returns the topic_name.
056: */
057: public String getTopic_name() {
058: return topic_name;
059: }
060:
061: /**
062: * @return Returns the type_name.
063: */
064: public String getType_name() {
065: return type_name;
066: }
067:
068: /**
069: * @param orb The orb to set.
070: */
071: public void setORB(org.omg.CORBA.ORB orb) {
072: this .orb = orb;
073: }
074:
075: /**
076: * @param poa The poa to set.
077: */
078: public void setPOA(org.omg.PortableServer.POA poa) {
079: this .poa = poa;
080: }
081:
082: /**
083: * @param topic_name
084: * @param type_name
085: * @param qos
086: * @param a_listener
087: * @param parent
088: */
089: public TopicImpl(String topic_name, String type_name, TopicQos qos,
090: TopicListener a_listener, DomainParticipant parent) {
091: this .topic_name = topic_name;
092: this .type_name = type_name;
093: this .qos = qos;
094: this .a_listener = a_listener;
095: DP_Parent = parent;
096: }
097:
098: /**
099: * Not Implemented
100: * @return
101: */
102: public InconsistentTopicStatus get_inconsistent_topic_status() {
103: return null;
104: }
105:
106: /**
107: * Not Implemented
108: * @return
109: */
110: public int enable() {
111: return 0;
112: }
113:
114: /**
115: * Not Implemented
116: * @return
117: */
118: public StatusCondition get_statuscondition() {
119: return null;
120: }
121:
122: /**
123: * Not Implemented
124: * @return
125: */
126: public int get_status_changes() {
127: return 0;
128: }
129:
130: /**
131: * @return
132: */
133: public String get_type_name() {
134: return getType_name();
135: }
136:
137: /**
138: * @return
139: */
140: public String get_name() {
141: return getTopic_name();
142: }
143:
144: /**
145: * @return
146: */
147: public DomainParticipant get_participant() {
148: return DP_Parent;
149: }
150:
151: }
|