示例#1
0
        /**
         * Creates a Topic that can be used to Subscribe to the participant info data
         * @return a new Topic for the participant info data.
         */
        public Topic CreateParticipantInfoTopic()
        {
            Topic infoTopic = new Topic("ops.bit.ParticipantInfoTopic", domain.GetMetaDataMcPort(), "ops.ParticipantInfoData", domain.GetDomainAddress());

            infoTopic.SetDomainID(domainID);
            infoTopic.SetParticipantID(participantID);
            infoTopic.SetTransport(Topic.TRANSPORT_MC);
            return(infoTopic);
        }
示例#2
0
        /**
         * Creates a Topic that can be used to create Publishers and/or Subscribers.
         * The fields of the Topic returned are fetched from the participants underlying config file.
         * @param name
         * @return a new Topic based on the config of this participant.
         */
        public Topic CreateTopic(string name)
        {
            Topic topic = domain.GetTopic(name);

            if (topic == null)
            {
                return(null);
            }

            topic.SetParticipantID(participantID);
            topic.SetDomainID(domainID);

            return(topic);
        }
示例#3
0
文件: Participant.cs 项目: staxgr/ops
 /**
  * Creates a Topic that can be used to Subscribe to the participant info data
  * @return a new Topic for the participant info data.
  */
 public Topic CreateParticipantInfoTopic()
 {
     Topic infoTopic = new Topic("ops.bit.ParticipantInfoTopic", domain.GetMetaDataMcPort(), "ops.ParticipantInfoData", domain.GetDomainAddress());
     infoTopic.SetDomainID(domainID);
     infoTopic.SetParticipantID(participantID);
     infoTopic.SetTransport(Topic.TRANSPORT_MC);
     return infoTopic;
 }