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); }
internal EnvironmentalMetric(Dictionary <string, string> metrics) : base(metrics, "X") { AvailableMetrics = Metrics.Environmental(); BaseMetric = new BaseMetric(metrics); TemporalMetric = new TemporalMetric(metrics, BaseMetric.Score()); }