public class SaveCommand
extends java.lang.Object
Constructor and Description |
---|
SaveCommand() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
saveAssignment(java.util.LinkedList<java.lang.String> assignmentHistory,
java.io.PrintStream outAndErrStream,
TurtleField turtleField,
boolean askForFile)
Saves an assignment history as a file
|
static java.lang.String |
saveFile(java.util.LinkedList<java.lang.String> instructionHistory,
java.io.PrintStream outAndErrStream,
TurtleField turtleField,
boolean askForFile)
Asks for a name unless told not to and saves an instruction history as a file
|
public static java.lang.String saveFile(java.util.LinkedList<java.lang.String> instructionHistory, java.io.PrintStream outAndErrStream, TurtleField turtleField, boolean askForFile)
instructionHistory
- The history to be savedoutAndErrStream
- The stream for notificationsturtleField
- The field containing remaining notificationspublic static java.lang.String saveAssignment(java.util.LinkedList<java.lang.String> assignmentHistory, java.io.PrintStream outAndErrStream, TurtleField turtleField, boolean askForFile)
assignmentHistory
- The history to be savedoutAndErrStream
- The stream for notificationsturtleField
- The field containing remaining notifications