public void Deconvolute() { try { bool areRequirementsMet = validateDeconRequirements(); if (areRequirementsMet) { state = DeconState.RUNNING_DECON; this.oldschoolprocRunner = new OldSchoolProcRunner(this.dataFile, FileTypeConverter.ConvertDeconEngineFileType(fileType), this.paramFile, null); this.oldschoolprocRunner.IsosResultThreshold = 50000; this.oldschoolprocRunner.Execute(); state = DeconState.DONE; } else { return; } } catch (Exception ex) { EventLog elog = new EventLog(); elog.Log = "Application"; elog.Source = "Decon2LS"; elog.WriteEntry(ex.Message + ex.StackTrace); elog.Close(); state = DeconState.ERROR; throw ex; } }
public void ResetState() { state = DeconState.IDLE; dataFile = null; outFile = null; paramFile = null; }
private bool validateDeconRequirements() { if (dataFile == null || dataFile == "") { state = DeconState.ERROR; throw new Exception("Please specify a data file name"); } if (outFile == null || outFile == "") { state = DeconState.ERROR; throw new Exception("Please specify an output file name"); } if (paramFile == null || paramFile == "") { state = DeconState.ERROR; throw new Exception("Please specify a parameter file name"); } return(true); }