hudson.plugins.cigame.rules.basic
Class BuildResultRule

java.lang.Object
  extended by hudson.plugins.cigame.rules.basic.BuildResultRule
All Implemented Interfaces:
Rule

public class BuildResultRule
extends java.lang.Object
implements Rule

Rule that gives points on the result of the build.


Constructor Summary
BuildResultRule()
           
BuildResultRule(int successPoints, int failurePoints)
           
 
Method Summary
 double evaluate(hudson.model.AbstractBuild<?,?> build)
          Evaluate the build and return the points for it
 java.lang.String getName()
          Returns the name of the rule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildResultRule

public BuildResultRule()

BuildResultRule

public BuildResultRule(int successPoints,
                       int failurePoints)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Rule
Returns the name of the rule

Specified by:
getName in interface Rule
Returns:
name of the rule

evaluate

public double evaluate(hudson.model.AbstractBuild<?,?> build)
Description copied from interface: Rule
Evaluate the build and return the points for it

Specified by:
evaluate in interface Rule
Parameters:
build - build to calculate points for
Returns:
0, build is not worth any points and the rule is ignored.


Copyright © 2008. All Rights Reserved.