Package clips.dicom.dicombaseclass

Examples of clips.dicom.dicombaseclass.DICOMDeviceParam


  }

  public String getName() {
    if (name == null){
      if (items.size() > 0){
        DICOMDeviceParam    param = items.get(0).getDeviceParam();
        if (param == null){
          name = items.get(0).getAcquisitionDateTime().toString();
        }
        else{
          name = param.getName();
        }
        name += " (" + items.size() + ")"
      }
    }
    return name;
View Full Code Here


  private void storeAgregator(AgregatorItem items) throws ClipsException{
    ArrayList<DICOMChekup>        list = items.getItems();
    if (list.size() == 0){
      throw new ClipsException("Попытка сохранить пустой список объектов");
    }
    DICOMDeviceParam prarm = list.get(0).getDeviceParam();
    if (prarm != null) {
      storeParam(prarm);
    }
   
    ArrayList<Pair<DICOMDataDump, Element>>  target = new ArrayList<Pair<DICOMDataDump, Element>>();
View Full Code Here

  public DICOMDeviceParam getParams() throws ClipsException{
    /*DICOMDeviceParam    target = new DICOMDeviceParam(
          getDetails().userFriendlyName, getDetails().modelName, getDetails().deviceUi,
          getDetails().implementationUid, getDetails().implementationVersion);*/
    DICOMDeviceParam    target;
    try {
      target = DICOMDeviceParam.fromXml(
          Converter.stringToXml(getDetails().configXml).getRootElement(),
          getDetails().userFriendlyName, getDetails().modelName, getDetails().deviceUi,
          getDetails().implementationUid, getDetails().implementationVersion);
    } catch (JDOMException ex) {
      ex.printStackTrace();
      target = new DICOMDeviceParam(
          getDetails().userFriendlyName, getDetails().modelName, getDetails().deviceUi,
          getDetails().implementationUid, getDetails().implementationVersion);
    }
    target.setIpAddres(getDetails().ipAddres);
    target.setPort(getDetails().port);
    target.setDeviceID(getID());
    target.setModifyDate(getDetails().modifyTime);
    return target;
  }
View Full Code Here

TOP

Related Classes of clips.dicom.dicombaseclass.DICOMDeviceParam

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.