Class StatusOracle
- java.lang.Object
-
- edu.odu.cs.zeil.codegrader.oracle.Oracle
-
- edu.odu.cs.zeil.codegrader.oracle.StatusOracle
-
public class StatusOracle extends Oracle
An oracle that scores based upon whether the test case launch command succeeded or failed, according to its status code.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.odu.cs.zeil.codegrader.oracle.Oracle
Oracle.ScoringOptions
-
-
Field Summary
-
Fields inherited from class edu.odu.cs.zeil.codegrader.oracle.Oracle
PASSED_TEST_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description StatusOracle(OracleProperties config, TestCase testCase, Submission submission, Stage submitterStage)
Create a new oracle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OracleResult
compare(java.lang.String expected, java.lang.String actual)
Compare two strings to see if one is an acceptable variant of the other.-
Methods inherited from class edu.odu.cs.zeil.codegrader.oracle.Oracle
getCap, getCommand, getIgnoreCase, getIgnoreEmptyLines, getIgnorePunctuation, getIgnoreWS, getNumbersOnly, getPattern, getPrecision, getScoring, getStage, getSubmission, getTestCase
-
-
-
-
Constructor Detail
-
StatusOracle
public StatusOracle(OracleProperties config, TestCase testCase, Submission submission, Stage submitterStage)
Create a new oracle.- Parameters:
config
- configuration propertiestestCase
- the test case to which this oracle will applysubmission
- the submission being judgedsubmitterStage
- the stage where the submitted code has been built
-
-
Method Detail
-
compare
public OracleResult compare(java.lang.String expected, java.lang.String actual)
Compare two strings to see if one is an acceptable variant of the other. The precise meaning of "acceptable" depends on the settings.
-
-