private void Defaults(TimeSeriesDatabase db) { // m_siteCatalog = sc; m_db = db; //ScenarioNames = m_db.Scenario; m_thirtyYearAverage = false; m_selectedSeries = new Series[] { }; m_analysisList = new AnalysisCollection(this); // HasTraces = false; _monthDayRange = new MonthDayRange(10, 1, 9, 30); this.StatisticalMethods = StatisticalMethods.None; WaterYearBeginningMonth = 10;// october WaterYears = new int[] { 2001, 2002, 2003, 2004, 2005, 2006 }; ExceedanceLevels = new int[] { 10, 50, 90 }; AlsoPlotYear = false; PlotYear = 2006; PlotMax = false; PlotMin = false; PlotAvg = false; TimeWindow = new TimeWindow(); SelectedAnalysisType = AnalysisType.TimeSeries; //SelectedScenarios = new string[] { }; m_subtractFromBaseline = false; }
/// <summary> /// Object Hash code /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { var hashCode = CVList != null?CVList.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (AnalysisSoftwareList != null ? AnalysisSoftwareList.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Provider != null ? Provider.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AuditCollection != null ? AuditCollection.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AnalysisSampleCollection != null ? AnalysisSampleCollection.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SequenceCollection != null ? SequenceCollection.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AnalysisCollection != null ? AnalysisCollection.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AnalysisProtocolCollection != null ? AnalysisProtocolCollection.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DataCollection != null ? DataCollection.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BibliographicReferences != null ? BibliographicReferences.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CreationDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); return(hashCode); } }
public ContextTreePage(AnalysisContext context) { _context = context; InitializeComponent(); _analysisCollection = (AnalysisCollection)Resources["GraphContextCollection"]; _analysisCollection.Add(_context); }
/// <summary> /// Cascade the identData reference throughout the entire set of objects. /// </summary> internal void CascadeProperties() { if (Provider != null) { Provider.CascadeProperties(); } if (SequenceCollection != null) { SequenceCollection.CascadeProperties(); } if (AnalysisCollection != null) { AnalysisCollection.CascadeProperties(); } if (AnalysisProtocolCollection != null) { AnalysisProtocolCollection.CascadeProperties(); } if (DataCollection != null) { DataCollection.CascadeProperties(); } if (CVList != null) { CVList.CascadeProperties(); } if (AnalysisSoftwareList != null) { AnalysisSoftwareList.CascadeProperties(); } if (AuditCollection != null) { AuditCollection.CascadeProperties(); } if (AnalysisSampleCollection != null) { AnalysisSampleCollection.CascadeProperties(); } if (BibliographicReferences != null) { BibliographicReferences.CascadeProperties(); } }
private void Defaults(TimeSeriesDatabase db) { // m_siteCatalog = sc; m_db = db; //ScenarioNames = m_db.Scenario; m_thirtyYearAverage = false; m_selectedSeries = new Series[] { }; m_analysisList = new AnalysisCollection(this); m_multiYearMonthlyAggregate = true; // HasTraces = false; _monthDayRange = new MonthDayRange(10, 1, 9, 30); this.StatisticalMethods = StatisticalMethods.None; WaterYearBeginningMonth = 10;// october WaterYears = new int[] { DateTime.Now.Year - 5, DateTime.Now.Year - 4, DateTime.Now.Year - 3, DateTime.Now.Year - 2, DateTime.Now.Year - 1, DateTime.Now.Year }; ExceedanceLevels = new int[] { 10, 50, 90 }; AlsoPlotYear = false; AlsoPlotTrace = false; PlotYear = new int[] { DateTime.Now.Year }; PlotTrace = ""; PlotMin = false; PlotAvg = false; PlotMax = false; traceExceedanceAnalysis = true; traceAggregationAnalysis = false; sumCYRadio = true; sumWYRadio = false; sumCustomRangeRadio = false; PlotMax = false; PlotMin = false; PlotAvg = false; TimeWindow = new TimeWindow(); SelectedAnalysisType = AnalysisType.TimeSeries; //SelectedScenarios = new string[] { }; m_subtractFromBaseline = false; }