bool IsTagAssociatedToMetric(TagAnnotation tag) { string tagName = TagAnnotation.GetTagTypeFullName(tag); foreach (Asset.Metric metric in asset.Metrics) { if (metric.TagTypes.Contains(tagName)) { return(true); } } return(false); }
bool DoesSegmentCoverMetric(Segment segment) { foreach (TagAnnotation tag in segment.tags) { string tagName = TagAnnotation.GetTagTypeFullName(tag); foreach (Asset.Metric metric in asset.Metrics) { if (metric.TagTypes.Contains(tagName)) { return(true); } } } return(false); }
public int GetMetricIndexCoveringTimeOnTag(TagAnnotation tag) { return(GetMetricIndexCoveringTimeOnTag(TagAnnotation.GetTagTypeFullName(tag))); }