Пример #1
0
  private SegmentDataResult createSegmentDataResult(byte[] val, SegmentDataEvent sde) {
    SegmentDataResult sdr = new SegmentDataResult();
    SegmDataEventDescr sded = new SegmDataEventDescr();
    SegmEvtStatus ses = new SegmEvtStatus();
    BitString bs = new BitString();

    sded.setSegm_instance(sde.getSegm_data_event_descr().getSegm_instance());
    sded.setSegm_evt_entry_index(sde.getSegm_data_event_descr().getSegm_evt_entry_index());
    sded.setSegm_evt_entry_count(sde.getSegm_data_event_descr().getSegm_evt_entry_count());

    bs.setValue(val);
    ses.setValue(bs);
    sded.setSegm_evt_status(ses);
    sdr.setSegm_data_event_descr(sded);

    return sdr;
  }
Пример #2
0
 public void setValue(BitString btStr) {
   this.value = btStr.getValue();
 }