예제 #1
0
        public static string ParseLocationIdentifier(string visitIdentifier)
        {
            var match = IdentifierRegex.Match(visitIdentifier);

            if (!match.Success)
            {
                throw new ExpectedException($"Can't parse '{visitIdentifier}' as visit identifier. Expecting location@date or location@dateTime");
            }

            return(match.Groups["location"].Value);
        }
예제 #2
0
        public static string ParseLocationIdentifier(string timeSeriesIdentifier)
        {
            var match = IdentifierRegex.Match(timeSeriesIdentifier);

            if (!match.Success)
            {
                throw new ExpectedException($"Can't parse '{timeSeriesIdentifier}' as time-series identifier. Expecting <Parameter>.<Label>@<Location>");
            }

            return(match.Groups["location"].Value);
        }
        public static string ParseLocationIdentifier(string ratingModelIdentifier)
        {
            var match = IdentifierRegex.Match(ratingModelIdentifier);

            if (!match.Success)
            {
                throw new ExpectedException($"Can't parse '{ratingModelIdentifier}' as rating model identifier. Expecting <InputParameter>-<OutputParameter>.<Label>@<Location>");
            }

            return(match.Groups["location"].Value);
        }