示例#1
0
 /// <summary>
 /// Method to be used in the event of the failure of the PerformAction method experiencing some exception.
 /// Method warns user and flushes memory of fqprotobin files before returning program to initial state.
 /// </summary>
 /// <param name="mainMessage">Main message to send to user</param>
 /// <param name="headerMessage">Header message to send to user</param>
 public void ControllerStateFailureResponse(String mainMessage, String headerMessage)
 {
     UserResponse.ErrorResponse(mainMessage, headerMessage);
     Console.WriteLine("Program Error. Exception Caught: {0}", mainMessage);
     FlushMemoryOfProtobinFiles();
     fqFileMap        = null;
     CONTROLLER_STATE = FastqControllerState.STATE_READY;
 }
示例#2
0
 /// <summary>
 /// Constructor for the fastqController sets the controller state to ready, calls the directory controller to change
 /// the directory environment for the program and flushes all .fqprotobin files from memory that were in use in previous sessions.
 /// </summary>
 public FastqController()
 {
     CONTROLLER_STATE = FastqControllerState.STATE_READY;
     DirectoryController.getInstance().SetWorkingDirectory();
 }
 /// <summary>
 /// Constructor for the fastqController sets the controller state to ready, calls the directory controller to change 
 /// the directory environment for the program and flushes all .fqprotobin files from memory that were in use in previous sessions.
 /// </summary>
 public FastqController()
 {
     CONTROLLER_STATE = FastqControllerState.STATE_READY;
     DirectoryController.getInstance().SetWorkingDirectory();
 }
 /// <summary>
 /// Method to be used in the event of the failure of the PerformAction method experiencing some exception.
 /// Method warns user and flushes memory of fqprotobin files before returning program to initial state.
 /// </summary>
 /// <param name="mainMessage">Main message to send to user</param>
 /// <param name="headerMessage">Header message to send to user</param>
 public void ControllerStateFailureResponse(String mainMessage, String headerMessage)
 {
     UserResponse.ErrorResponse(mainMessage, headerMessage);
     Console.WriteLine("Program Error. Exception Caught: {0}", mainMessage);
     FlushMemoryOfProtobinFiles();
     fqFileMap = null;
     CONTROLLER_STATE = FastqControllerState.STATE_READY;
 }