Package edu.pdx.cs410J.grader
package edu.pdx.cs410J.grader
This package contains classes that are used to keep track of students, grade projects, and submit assignments in CS410J.
When we test student code, we run a security manager to ensure that
their code does not do anything malicious and to allow us to run
multiple invocation of a main
without the JVM exiting.
We also employ a policy file that looks like this:
// Privileges for Dave's code and student's code // Dave's code grant codeBase "file:/u/whitlock/jars/cs410J.jar", codeBase "file:/u/whitlock/jars/grader.jar", codeBase "file:/u/whitlock/jars/xerces.jar", codeBase "file:/u/sjavata/classes-dave" { // Let my code do anything permission java.security.AllPermission; }; // Student's code grant codeBase "file:/u/sjavata/classes" { permission java.file.FilePermission "${user.home}/proj2/-", "read, write"; permission java.net.SocketPermission "localhost:12345", "accept,connect,listen"; };
A command line would look like:
$ java -Djava.security.policy=/u/sjavata/grader.policy \ -cp ~/classes-dave:/u/whitlock/jars/examples.jar \ edu.pdx.cs410J.grader.TestProject0b \ -studentClasses ~/classes whitlock
-
ClassDescriptionThis program subtracts some number of points off of each student's grade for a given project.This doclet extracts the API documentation (Javadocs) from a student's project submission and produces a text summary of them.This program sorts the scores for a given assignment and dumps them to standard out.This is a little program that combines the grades for the midterm quiz, the dream job, and the resume into one grade.This program generates a .mailrc file containing a mail alias for every student in a given grade book.This program imports a bunch of students into a grade book.Quicky program that parses a text file containing student's grades.This program reads your INBOX and prints out the subjects of each of the emails.This class is used to submit assignments in CS410J.Class that creates a pretty report that summarizes a student's grades.This program presents a survey that all students in CS410J should answer.