Пример #1
0
 public ArchiveorigParam(BaseManager manager, AxisID axisID) {
   this.manager = manager;
   if (axisID == AxisID.FIRST) {
     mode = Mode.AXIS_A;
   } else if (axisID == AxisID.SECOND) {
     mode = Mode.AXIS_B;
   }
   File stack = Utilities.getFile(manager, false, axisID, DatasetTool.STANDARD_DATASET_EXT, "");
   commandArray =
       new String[] {
         "python", "-u", BaseManager.getIMODBinPath() + COMMAND_NAME, "-PID", stack.getName()
       };
   outputFile = Utilities.getFile(manager, false, axisID, "_xray.st.gz", "");
 }
Пример #2
0
 public void testBeadtrack() throws FileNotFoundException, IOException, LogFile.LockException {
   // TEMP
   if (Utilities.isWindowsOS()) {
     return;
   }
   ReadOnlyAutodoc autodoc =
       AutodocFactory.getInstance(manager, AutodocFactory.BEADTRACK, AxisID.ONLY, false);
   assertFalse(autodoc.isError());
 }
Пример #3
0
 public void testCpu()
     throws LogFile.LockException, IOException, SystemProcessException, InvalidParameterException {
   if (Utilities.isWindowsOS()) {
     return;
   }
   ReadOnlyAutodoc autodoc =
       AutodocFactory.getInstance(
           manager,
           TestUtilites.INSTANCE.copyTestFile(
               AutodocTests.TEST_ROOT_DIR.getAbsolutePath(), TEST_DIR_NAME, "cpu.adoc"),
           false);
   assertFalse(autodoc.isError());
 }
Пример #4
0
 public void logMessage(Loggable loggable, AxisID axisID) {
   if (loggable == null) {
     return;
   }
   try {
     SwingUtilities.invokeLater(
         new AppendLater(
             Utilities.getDateTimeStamp(), loggable.getName(), loggable.getLogMessage(), axisID));
   } catch (LogFile.LockException e) {
     e.printStackTrace();
     SwingUtilities.invokeLater(new AppendLater("Unable to log message:", e.getMessage()));
   } catch (IOException e) {
     e.printStackTrace();
     SwingUtilities.invokeLater(new AppendLater("Unable to log message:", e.getMessage()));
   }
 }
Пример #5
0
 public void testSimple()
     throws LogFile.LockException, IOException, SystemProcessException, InvalidParameterException {
   if (Utilities.isWindowsOS()) {
     return;
   }
   ReadOnlyAutodoc autodoc =
       AutodocFactory.getInstance(
           manager,
           TestUtilites.INSTANCE.copyTestFile(
               AutodocTests.TEST_ROOT_DIR.getAbsolutePath(), TEST_DIR_NAME, "simple.adoc"),
           false);
   // only use with getTestInstance
   // autodoc.runInternalTest(AutodocFactory.InternalTestType.PARSER,false,false);
   // only use with getInstance
   // autodoc.printStoredData();
   assertFalse(autodoc.isError());
 }
Пример #6
0
 public void logMessage(final String message, final boolean timestamp, final boolean newline) {
   SwingUtilities.invokeLater(
       new AppendLater((timestamp ? Utilities.getDateTimeStamp() : null), message, newline));
 }
Пример #7
0
 public void logMessage(final String message) {
   SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), message));
 }
Пример #8
0
 public void logMessage(final String title, final AxisID axisID) {
   SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), title, axisID));
 }
Пример #9
0
 public void logMessage(final AxisID axisID, final ArrayList<String> message) {
   SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), message, axisID));
 }
Пример #10
0
 public void logMessage(String title, AxisID axisID, String[] message) {
   SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), title, message));
 }
Пример #11
0
 public void logMessage(String line1, String line2) {
   SwingUtilities.invokeLater(new AppendLater(Utilities.getDateTimeStamp(), line1, line2));
 }