示例#1
0
		/// <summary>
		/// For Isas common subfolders (i.e. those present in this class), 
		/// returns the full path to the folder.
		/// </summary>
		public static string GetDefaultFolderFullPath(AnalysisJobInfo jobInfo, string folderName)
		{
			string folderPath = GetDefaultFolderPath(jobInfo, folderName);
			return (folderPath == null) ? null : new DirectoryInfo(folderPath).FullName;
		}
示例#2
0
		/// <summary>
		/// For Isas common files (i.e. those present in this class), 
		/// returns where Isas expects to find the files.
		/// </summary>
		public static string GetDefaultFolderPathForFilename(AnalysisJobInfo jobInfo, string filename)
		{
			// switch-case statements is the closest we get to a const dictionary 
			string folderPath = null;
			switch (filename)
			{
				case SampleSheetFileName:
				case RunInfoFileName:
				case CompletedJobFileName:
				case AnalysisErrorFileName:
				case AnalysisLogFileName:
					folderPath = jobInfo.RunFolder;
					break;

				case CheckpointFileName:
					folderPath = jobInfo.AnalysisFolder;
					break;

				default:
					// leave empty
					break;
			}
			return folderPath;
		}
示例#3
0
		/// <summary>
		/// For Isas common subfolders (i.e. those present in this class), 
		/// returns the path to the folder.
		/// </summary>
		public static string GetDefaultFolderPath(AnalysisJobInfo jobInfo, string folderName)
		{
			return GetDefaultFolderPath(jobInfo.RunFolder, jobInfo.AnalysisFolder, folderName);
		}
示例#4
0
		// returns the full path to the Isas filename
		// returns null if we don't know this file
		public static string GetDefaultFileFullPath(AnalysisJobInfo jobInfo, string filename)
		{
			string dirpath = GetDefaultFolderFullPathForFileName(jobInfo, filename);
			return (dirpath == null) ? null : Path.Combine(dirpath, filename);
		}