Ejemplo n.º 1
0
        internal Cvss(string vector, double version) : base(vector, version)
        {
            if (!IsValid())
            {
                return;
            }

            ExtractedMetrics = ExtractMetrics();

            BaseMetric          = new BaseMetric(ExtractedMetrics);
            TemporalMetric      = new TemporalMetric(ExtractedMetrics, BaseMetric.Score());
            EnvironmentalMetric = new EnvironmentalMetric(ExtractedMetrics);
        }
Ejemplo n.º 2
0
 internal EnvironmentalMetric(Dictionary <string, string> metrics) : base(metrics, "X")
 {
     AvailableMetrics = Metrics.Environmental();
     BaseMetric       = new BaseMetric(metrics);
     TemporalMetric   = new TemporalMetric(metrics, BaseMetric.Score());
 }