Esempio n. 1
0
 public static TimeSeriesLink BuildLink(TimeSeries ts, ProjectViewRow row, AttributeRecordingState key, int runNumber)
 {
     return new TimeSeriesLink
     {
         TimeSeriesName = ts.name,
         RunNumber = runNumber,
         TimeSeriesUrl = BuildTimeSeriesUrl(row,key, runNumber),
         NetworkElement = row.NetworkElementName,
         RecordingElement = row.ElementName,
         RecordingVariable = SelectRecordingVariable(key, row)
     };
 }
Esempio n. 2
0
 public static string BuildTimeSeriesUrl(ProjectViewRow row, AttributeRecordingState key, int runNumber)
 {
     return string.Format(UriTemplates.TimeSeries.Replace("{runId}", "{0}").Replace("{networkElement}", "{1}").Replace("{recordingElement}","{2}").Replace("{variable}", "{3}"), 
         runNumber, SourceService.URLSafeString(row.NetworkElementName), SourceService.URLSafeString(row.ElementName), SourceService.URLSafeString(SelectRecordingVariable(key,row)));
 }
Esempio n. 3
0
 private static string SelectRecordingVariable(AttributeRecordingState key, ProjectViewRow row)
 {
     return (key.KeyString == "") ? row.ElementName : key.KeyString;
 }
Esempio n. 4
0
 public static string BuildTimeSeriesUrl(ProjectViewRow row, AttributeRecordingState key, int runNumber)
Esempio n. 5
0
 public static TimeSeriesLink BuildLink(TimeSeries ts, ProjectViewRow row, AttributeRecordingState key, int runNumber)
Esempio n. 6
0
 private static string SelectRecordingVariable(AttributeRecordingState key, ProjectViewRow row)
 {
     return((key.KeyString == "") ? row.ElementName : key.KeyString);
 }