示例#1
0
  @Override
  public void start(final Publisher publisher, final EventLoop eventLoop) {
    this.eventLoop = eventLoop;
    VitalModelImpl.this.publisher = publisher;
    DomainParticipant participant = publisher.get_participant();

    ice.GlobalAlarmLimitObjectiveTypeSupport.register_type(
        participant, ice.GlobalAlarmLimitObjectiveTypeSupport.get_type_name());

    globalAlarmLimitTopic =
        TopicUtil.findOrCreateTopic(
            participant,
            ice.GlobalAlarmLimitObjectiveTopic.VALUE,
            ice.GlobalAlarmLimitObjectiveTypeSupport.class);
    writer =
        (ice.GlobalAlarmLimitObjectiveDataWriter)
            publisher.create_datawriter_with_profile(
                globalAlarmLimitTopic,
                QosProfiles.ice_library,
                QosProfiles.state,
                null,
                StatusKind.STATUS_MASK_NONE);
  }
示例#2
0
 @Override
 public void stop() {
   publisher.delete_datawriter(writer);
   publisher.get_participant().delete_topic(globalAlarmLimitTopic);
 }