Package com.dmissoh.biologic.models

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


    notifySaveListeners();
  }

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

    }
    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

Related Classes of com.dmissoh.biologic.models.SequenceStoreObject

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.