|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cdx.scorebot.scoring.ScoringRule.BasicCodeGenerator
public class ScoringRule.BasicCodeGenerator
defines the fields which are used to generate the code for a basic rule
Constructor Summary | |
---|---|
ScoringRule.BasicCodeGenerator()
|
Method Summary | |
---|---|
java.lang.String |
buildCode()
generates the code this object represents |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getComparisonOp()
gets the string representing the relational or equality operator to compare the result and expected value with |
java.lang.String |
getExpectedValue()
gets the value the test result is expected to be |
ScoringRule.BASIC_METHOD_TYPE |
getMethod()
gets the method to execute if the condition is met |
int |
getMinCountToAccept()
gets the minimum number of successful comparisons to accept (i.e. |
java.lang.String |
getMsg()
gets the message associated with the score change |
int |
getNumPoints()
gets the number of points to change the score by (negative of this taken if the penalty method being used. |
int |
getNumResultsToCheck()
gets the number of results from this test to check |
java.lang.String |
getResultName()
gets the name of the result which is being checked |
java.lang.String |
getTestName()
gets the name of the test whose result is being checked |
java.lang.String |
getTitle()
gets a descriptive heading associated with the score change |
boolean |
isReported()
gets whether or not this event will be known to the user |
void |
setComparisonOp(java.lang.String comparisonOp)
sets the string representing the relational or equality operator to compare the result and expected value with |
void |
setExpectedValue(java.lang.String expectedValue)
sets the value the test result is expected to be |
void |
setMethod(ScoringRule.BASIC_METHOD_TYPE method)
sets the method to execute if the condition is met |
void |
setMinCountToAccept(int minCountToAccept)
sets the minimum number of successful comparisons to accept (i.e. |
void |
setMsg(java.lang.String msg)
sets the message associated with the score change |
void |
setNumPoints(int numPoints)
sets the number of points to change the score by (negative of this taken if the penalty method being used. |
void |
setNumResultsToCheck(int numResultsToCheck)
sets the number of results from this test to check (must be at least one) |
void |
setReported(boolean reported)
sets whether or not this event will be known to the user |
void |
setResultName(java.lang.String resultName)
sets the name of the result which is being checked |
void |
setTestName(java.lang.String testName)
sets the name of the test whose result is being checked |
void |
setTitle(java.lang.String title)
sets a descriptive heading associated with the score change |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScoringRule.BasicCodeGenerator()
Method Detail |
---|
public java.lang.String buildCode()
public java.lang.String getTestName()
public void setTestName(java.lang.String testName)
public java.lang.String getResultName()
public void setResultName(java.lang.String resultName)
public java.lang.String getComparisonOp()
public void setComparisonOp(java.lang.String comparisonOp)
public java.lang.String getExpectedValue()
public void setExpectedValue(java.lang.String expectedValue)
public int getNumResultsToCheck()
public void setNumResultsToCheck(int numResultsToCheck) throws IllegalArgValException
IllegalArgValException
public ScoringRule.BASIC_METHOD_TYPE getMethod()
public void setMethod(ScoringRule.BASIC_METHOD_TYPE method)
public int getNumPoints()
public void setNumPoints(int numPoints)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getMsg()
public void setMsg(java.lang.String msg)
public int getMinCountToAccept()
public void setMinCountToAccept(int minCountToAccept) throws IllegalArgValException
IllegalArgValException
public boolean isReported()
public void setReported(boolean reported)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |