Package edu.odu.cs.zeil.codegrader
Class OracleProperties
- java.lang.Object
- 
- edu.odu.cs.zeil.codegrader.OracleProperties
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class OracleProperties extends java.lang.Object implements java.lang.Cloneable
- 
- 
Field SummaryFields Modifier and Type Field Description intcapMaximum percentage (0..100) available when applying this oracle.booleancaseSigTrue iff upper/lower case is considered significant when examining alphabetic strings - a test can be failed because of differences in upper/lower case.java.lang.StringcommandCommand string to launch an external oracle.static intDEFAULT_POINT_CAPMax number of points scored by a test case.booleanemptyLinesAre empty lines counted as part of the evaluation?java.util.ArrayList<java.lang.String>filesA list of file paths.booleannumbersOnlyShould only numbers be checked, ignoring everything else?java.lang.StringoracleName of the oracle to be employed.java.lang.StringpatternA pattern (regular expression) for use with self-scored oracle.doubleprecisionHow far floating point numbers may vary and still be considered equal.booleanpunctuationIs punctuation checked during the evaluation?Oracle.ScoringOptionsscoringScoring option for this test case.booleanwsTrue iff ws is considered significant - a test can be failed because of extra/missing/incorrect whitespace characters.
 - 
Constructor SummaryConstructors Constructor Description OracleProperties()Create a set of oracle properties with the defaults preset.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description OraclePropertiesclone()Make a copy of this set of properties.
 
- 
- 
- 
Field Detail- 
DEFAULT_POINT_CAPpublic static final int DEFAULT_POINT_CAP Max number of points scored by a test case.- See Also:
- Constant Field Values
 
 - 
oraclepublic java.lang.String oracle Name of the oracle to be employed. This may be a shortcut for one of the pre-supplied oracles or a fully qualified Java class name. defaults to SmartOracle.
 - 
cappublic int cap Maximum percentage (0..100) available when applying this oracle. Defaults to 100.
 - 
wspublic boolean ws True iff ws is considered significant - a test can be failed because of extra/missing/incorrect whitespace characters. Default is false;
 - 
caseSigpublic boolean caseSig True iff upper/lower case is considered significant when examining alphabetic strings - a test can be failed because of differences in upper/lower case. Default is false;
 - 
scoringpublic Oracle.ScoringOptions scoring Scoring option for this test case.
 - 
precisionpublic double precision How far floating point numbers may vary and still be considered equal. If negative, the comparison precision is derived from the expected value. E.g., if the expected value is printed with 2 digits after the decimal point, then the precision is 0.01.
 - 
emptyLinespublic boolean emptyLines Are empty lines counted as part of the evaluation?
 - 
punctuationpublic boolean punctuation Is punctuation checked during the evaluation?
 - 
numbersOnlypublic boolean numbersOnly Should only numbers be checked, ignoring everything else?
 - 
commandpublic java.lang.String command Command string to launch an external oracle.
 - 
patternpublic java.lang.String pattern A pattern (regular expression) for use with self-scored oracle.
 - 
filespublic java.util.ArrayList<java.lang.String> files A list of file paths.
 
- 
 - 
Method Detail- 
clonepublic OracleProperties clone() Make a copy of this set of properties.- Overrides:
- clonein class- java.lang.Object
 
 
- 
 
-