/** * 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); }
/** * 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); }
/** * 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; }