Class Program
- java.lang.Object
-
- Program
-
public class Program extends java.lang.ObjectSmall class representing a Java program. This is used in the sample main as a way to abstract out information so that the autograder does not have to be updated every time from scratch for a new project and can just be updated in the run_autograder file.- See Also:
AutograderMain
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()returns whether the file exists.booleanhasJunits()Method to check if the file has junits attacked.java.lang.Stringname()Getter for the name.voidsetExists(boolean b)Set whether a submission file exists.inttestCount()Getter for the test count.intunitCount()Getter for the unitCount.booleanuserWritten()Metho to check who wrote the java file.
-
-
-
Method Detail
-
exists
public boolean exists()
returns whether the file exists.- Returns:
- exists
-
setExists
public void setExists(boolean b)
Set whether a submission file exists.- Parameters:
b- whether it exists
-
name
public java.lang.String name()
Getter for the name.- Returns:
- the name
-
testCount
public int testCount()
Getter for the test count.- Returns:
- the test count
-
unitCount
public int unitCount()
Getter for the unitCount.- Returns:
- the unit Count
-
userWritten
public boolean userWritten()
Metho to check who wrote the java file.- Returns:
- true if written by student false if a starter file
-
hasJunits
public boolean hasJunits()
Method to check if the file has junits attacked.- Returns:
- true if junits false otherwise
-
-