예제 #1
0
 /** Export channels to Matlab file */
 @Test
 public void matlabExport() throws Exception {
   final Model model = getTestModel();
   final ExportJob export =
       new MatlabScriptExportJob(
           model,
           model.getStartTime(),
           model.getEndTime(),
           Source.RAW_ARCHIVE,
           10,
           "/tmp/matlab.m",
           this);
   export.run(new SysoutProgressMonitor());
 }
예제 #2
0
 /**
  * Export channels in a spreadsheet
  *
  * @throws Exception on error
  */
 @Test
 public void speadsheetExport() throws Exception {
   final Model model = getTestModel();
   final ExportJob export =
       new SpreadsheetExportJob(
           model,
           model.getStartTime(),
           model.getEndTime(),
           Source.RAW_ARCHIVE,
           10,
           new ValueWithInfoFormatter(Style.Exponential, 3),
           "/tmp/sheet.dat",
           this);
   export.run(new SysoutProgressMonitor());
 }
예제 #3
0
 /**
  * Export channels one-by-one
  *
  * @throws Exception on error
  */
 @Test
 public void plainExport() throws Exception {
   final Model model = getTestModel();
   final ExportJob export =
       new PlainExportJob(
           model,
           model.getStartTime(),
           model.getEndTime(),
           Source.OPTIMIZED_ARCHIVE,
           60,
           new ValueWithInfoFormatter(Style.Exponential, 6),
           "/tmp/plain.dat",
           this);
   export.run(new SysoutProgressMonitor());
 }