コード例 #1
0
ファイル: Participant.cs プロジェクト: victoriahard/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);
        }
コード例 #2
0
ファイル: Participant.cs プロジェクト: victoriahard/ops
        /**
         * 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;
 }