hudson.plugins.cigame.model
Class RuleResult

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

public class RuleResult
extends java.lang.Object

Result from a Rule evaluation.


Field Summary
static RuleResult EMPTY_RESULT
           
 
Constructor Summary
RuleResult(double points, java.lang.String description)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns a description of the result.
 double getPoints()
          Returns the points for the result from a rule
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_RESULT

public static final RuleResult EMPTY_RESULT
Constructor Detail

RuleResult

public RuleResult(double points,
                  java.lang.String description)
Method Detail

getPoints

public double getPoints()
Returns the points for the result from a rule

Returns:
the points

getDescription

public java.lang.String getDescription()
Returns a description of the result. Should contain a reason why the number of points was evaluated from the rule. "-5 because the build failed"

Returns:
a point description

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010. All Rights Reserved.