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 Summary
Fields Modifier and Type Field Description int
cap
Maximum percentage (0..100) available when applying this oracle.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.java.lang.String
command
Command string to launch an external oracle.static int
DEFAULT_POINT_CAP
Max number of points scored by a test case.boolean
emptyLines
Are empty lines counted as part of the evaluation?java.util.ArrayList<java.lang.String>
files
A list of file paths.boolean
numbersOnly
Should only numbers be checked, ignoring everything else?java.lang.String
oracle
Name of the oracle to be employed.java.lang.String
pattern
A pattern (regular expression) for use with self-scored oracle.double
precision
How far floating point numbers may vary and still be considered equal.boolean
punctuation
Is punctuation checked during the evaluation?Oracle.ScoringOptions
scoring
Scoring option for this test case.boolean
ws
True iff ws is considered significant - a test can be failed because of extra/missing/incorrect whitespace characters.
-
Constructor Summary
Constructors Constructor Description OracleProperties()
Create a set of oracle properties with the defaults preset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OracleProperties
clone()
Make a copy of this set of properties.
-
-
-
Field Detail
-
DEFAULT_POINT_CAP
public static final int DEFAULT_POINT_CAP
Max number of points scored by a test case.- See Also:
- Constant Field Values
-
oracle
public 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.
-
cap
public int cap
Maximum percentage (0..100) available when applying this oracle. Defaults to 100.
-
ws
public boolean ws
True iff ws is considered significant - a test can be failed because of extra/missing/incorrect whitespace characters. Default is false;
-
caseSig
public 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;
-
scoring
public Oracle.ScoringOptions scoring
Scoring option for this test case.
-
precision
public 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.
-
emptyLines
public boolean emptyLines
Are empty lines counted as part of the evaluation?
-
punctuation
public boolean punctuation
Is punctuation checked during the evaluation?
-
numbersOnly
public boolean numbersOnly
Should only numbers be checked, ignoring everything else?
-
command
public java.lang.String command
Command string to launch an external oracle.
-
pattern
public java.lang.String pattern
A pattern (regular expression) for use with self-scored oracle.
-
files
public java.util.ArrayList<java.lang.String> files
A list of file paths.
-
-
Method Detail
-
clone
public OracleProperties clone()
Make a copy of this set of properties.- Overrides:
clone
in classjava.lang.Object
-
-