All Packages Class Hierarchy This Package Previous Next Index
Class duckMachine.operatingSystem.runCommand
java.lang.Object
|
+----duckMachine.operatingSystem.ShellCommand
|
+----duckMachine.operatingSystem.runCommand
- public class runCommand
- extends ShellCommand
The run command of the shell. The command takes a visitor file,
creates a visitor object, and calls the appropriate method in the machine.
-
runCommand(String)
-
-
execCommand(MachineI)
-
runCommand
public runCommand(String f) throws VisitorFileE
- Throws: VisitorFileE
- If the file is not found.
execCommand
public void execCommand(MachineI mach) throws ShellE
- Throws: ShellE
- If an error occurs during the processing of the visitor
file or during the execution of the instructions.
- Overrides:
- execCommand in class ShellCommand
All Packages Class Hierarchy This Package Previous Next Index