コード例 #1
0
 /// <summary>
 /// Accessor method for this singleton, locked for synchronized access. Returns a unique instance of this class.
 /// </summary>
 /// <returns>A unique instance of the directory controller class</returns>
 public static DirectoryController getInstance()
 {
     lock (syncLocker)
     {
         if (uniqueInstance == null)
             uniqueInstance = new DirectoryController();
         return uniqueInstance;
     }
 }
コード例 #2
0
 /// <summary>
 /// Accessor method for this singleton, locked for synchronized access. Returns a unique instance of this class.
 /// </summary>
 /// <returns>A unique instance of the directory controller class</returns>
 public static DirectoryController getInstance()
 {
     lock (syncLocker)
     {
         if (uniqueInstance == null)
         {
             uniqueInstance = new DirectoryController();
         }
         return(uniqueInstance);
     }
 }
コード例 #3
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();
 }