hudson.plugins.cigame.model
Class ScoreCard

java.lang.Object
  extended by hudson.plugins.cigame.model.ScoreCard

public class ScoreCard
extends java.lang.Object

Score card containing the results of evaluating the rules against a build.


Constructor Summary
ScoreCard()
           
 
Method Summary
 java.util.Collection<Score> getScores()
          Returns a collection of scores.
 double getTotalPoints()
          Returns the total points for this score card
 void record(hudson.model.AbstractBuild<?,?> build, RuleSet ruleset)
          Record points for the rules in the rule set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreCard

public ScoreCard()
Method Detail

record

public void record(hudson.model.AbstractBuild<?,?> build,
                   RuleSet ruleset)
Record points for the rules in the rule set

Parameters:
build - build to evaluate
ruleset - rule set to use for evaluation

getScores

public java.util.Collection<Score> getScores()
                                      throws java.lang.IllegalStateException
Returns a collection of scores. May not be called before the score has been recorded.

Returns:
a collection of scores.
Throws:
java.lang.IllegalStateException - thrown if the method is called before the scores has been recorded.

getTotalPoints

public double getTotalPoints()
                      throws java.lang.IllegalStateException
Returns the total points for this score card

Returns:
the total points for this score card
Throws:
java.lang.IllegalStateException


Copyright © 2008. All Rights Reserved.