Class FilesExistOracle
- java.lang.Object
-
- edu.odu.cs.zeil.codegrader.oracle.Oracle
-
- edu.odu.cs.zeil.codegrader.oracle.FilesExistOracle
-
public class FilesExistOracle extends Oracle
Oracle that checks to see if a set of files has been created.
-
-
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 FilesExistOracle(OracleProperties config, TestCase testCase, Submission sub, Stage submitterStage)
Create an oracle that launches an external command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OracleResult
compare(java.lang.String expected, java.lang.String actual)
Check to see if the files listed in the oracle properties exist.-
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
-
FilesExistOracle
public FilesExistOracle(OracleProperties config, TestCase testCase, Submission sub, Stage submitterStage)
Create an oracle that launches an external command.- Parameters:
config
- propertiestestCase
- the test case on which it is appliedsub
- submission being evaluatedsubmitterStage
- stage where submitter code has been built
-
-
Method Detail
-
compare
public OracleResult compare(java.lang.String expected, java.lang.String actual)
Check to see if the files listed in the oracle properties exist. Score is the percentage of those files that exist.
-
-