Package gov.nist.scap.xccdf.scoring

Examples of gov.nist.scap.xccdf.scoring.ScoringModel


    }

    for (ScoringModelDeclaration modelDeclaration : declarations) {
      String system = modelDeclaration.getSystemId();
      if (supportedScoringModels.containsKey(system)) {
        ScoringModel model = supportedScoringModels.get(system);

        Score score = model.score(document, this, modelDeclaration.getParameters());
        scores.add(score);
      }
    }
  }
View Full Code Here


          cpeCheckResults = null;
        }

    // Score calculations
    Map<String, ScoringModel> scoringModels = new HashMap<String, ScoringModel>();
    ScoringModel model;

    model = new DefaultScoringModel();
    scoringModels.put(model.getSystem(), model);
    model = new FlatScoringModel();
    scoringModels.put(model.getSystem(), model);
    model = new FlatUnweightedScoringModel();
    scoringModels.put(model.getSystem(), model);
    model = new AbsoluteScoringModel();
    scoringModels.put(model.getSystem(), model);
    this.supportedScoringModels = scoringModels;
  }
View Full Code Here

TOP

Related Classes of gov.nist.scap.xccdf.scoring.ScoringModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.