Examples of SequenceStoreObject


Examples of com.dmissoh.biologic.models.SequenceStoreObject

  private Sequence restoreSequenceFromLog(String logPath) {
    File logFile = new File(logPath);
    Sequence sequence = null;
    if (logFile.exists()) {
      SequenceStoreObject sto = ExportUtils.getInstance()
          .restore(logPath);
      sequence = ExportUtils.getInstance().convertStoredToBusiness(sto);
    }
    return sequence;
  }
View Full Code Here

Examples of com.dmissoh.biologic.models.SequenceStoreObject

    notifySaveListeners();
  }

  public SequenceStoreObject restore(String path) {
    SequenceStoreObject configs = (SequenceStoreObject) xstream
        .fromXML(getContents(new File(path)));
    return configs;
  }
View Full Code Here

Examples of com.dmissoh.biologic.models.SequenceStoreObject

    }
    return contents.toString();
  }

  public ISequence convertBusinessToStored(ISequence sequence) {
    ISequence storedSequence = new SequenceStoreObject();
    storedSequence.setDescription(sequence.getDescription());
    storedSequence.setLogEntries(sequence.getLogEntries());
    storedSequence.setStartTime(sequence.getStartTime());
    storedSequence.setEndTime(sequence.getEndTime());
    storedSequence.setLive(sequence.isLive());
    return storedSequence;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.