Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
G
H
I
J
L
M
N
O
P
R
S
T
U
A
addJFile(String, JFile)
- Method in class
Directory
Add a JFile to this Directory.
append(String)
- Method in class
TextFile
Append text to the end of the file.
appendLine(String)
- Method in class
TextFile
Append a new line of text to the end of the file.
C
CLILogin()
- Method in class
LoginInterpreter
Simulates behavior at login: prompt.
createUser(String, Directory, String, String)
- Method in class
Juno
Create a new User.
D
Directory
- class
Directory
.
Directory of JFiles.
Directory(String, User, Directory)
- Constructor for class
Directory
Construct a Directory.
doIt(StringTokenizer, Shell)
- Method in class
HelpCommand
Print out help for all commands.
doIt(StringTokenizer, Shell)
- Method in class
ListCommand
List contents of the current working directory.
doIt(StringTokenizer, Shell)
- Method in class
LogoutCommand
Log out from the current shell.
doIt(StringTokenizer, Shell)
- Method in class
MkdirCommand
Create a new Directory in the current Directory.
doIt(StringTokenizer, Shell)
- Method in class
NewfileCommand
Create a new TextFile in the current Directory.
doIt(StringTokenizer, Shell)
- Method in class
RemoveCommand
Remove a TextFile.
doIt(StringTokenizer, Shell)
- Method in class
ShellCommand
Execute the command.
doIt(StringTokenizer, Shell)
- Method in class
TypeCommand
Display the contents of a TextFile.
E
ExitShellException
- exception
ExitShellException
.
Exception raised for exiting a shell.
ExitShellException()
- Constructor for class
ExitShellException
errPrintln(String)
- Method in class
GUILoginConsole
Write a String followed by a newline to message area.
errPrintln(String)
- Method in class
GUIShellConsole
errPrintln(String)
- Method in class
JunoTerminal
Write a String followed by a newline to console error output location.
errPrintln(String)
- Method in interface
OutputInterface
Write a String followed by a newline to console error output location.
errPrintln(String)
- Method in class
RemoteConsole
Write a String followed by a newline to console error output location.
G
GUILoginConsole
- class
GUILoginConsole
.
The graphical user interface to Juno.
GUILoginConsole(String, Juno, InterpreterInterface, boolean)
- Constructor for class
GUILoginConsole
Construct a GUI console for Juno.
GUIShellConsole
- class
GUIShellConsole
.
The GUI to the Juno system Shell.
GUIShellConsole(String, Shell, boolean)
- Constructor for class
GUIShellConsole
Construct a GUI console for a shell.
getArgString()
- Method in class
ShellCommand
The argument string prototype.
getCommandNames()
- Method in class
ShellCommandTable
Get an array of the command names.
getCommandTable()
- Method in class
Juno
The shell command table for this system.
getConsole()
- Method in class
Shell
The console associated with this Shell.
getContents()
- Method in class
TextFile
The contents of a text file.
getCreateDate()
- Method in class
JFile
The date and time of the file's creation.
getDot()
- Method in class
Shell
The current working directory for this shell.
getFileNames()
- Method in class
Directory
Get the contents of this Directory as an array of the file names, each of which is a String.
getHelpString()
- Method in class
ShellCommand
Help for this command.
getHome()
- Method in class
User
Get the User's home Directory.
getHostName()
- Method in class
Juno
The name of the host computer on which this system is running.
getModDate()
- Method in class
JFile
The date and time of the file's last modification.
getName()
- Method in class
JFile
The name of the file.
getName()
- Method in class
User
Get the User's login name.
getOS()
- Method in class
Juno
The name of this operating system.
getOwner()
- Method in class
JFile
The file's owner.
getParent()
- Method in class
JFile
The Directory containing this file.
getPathName()
- Method in class
JFile
The full path to this file.
getPrompt()
- Method in class
Shell
The prompt for the CLI.
getRealName()
- Method in class
User
Get the user's real name.
getSize()
- Method in class
Directory
The size of a Directory is the number of JFiles it contains.
getSize()
- Method in class
JFile
The size of the JFile (as defined by the child class)..
getSize()
- Method in class
TextFile
The size of a text file is the number of characters stored.
getSuffix()
- Method in class
Directory
Suffix used for printing Directory names; we define it as the (system dependent) name separator used in path names.
getSuffix()
- Method in class
JFile
Suffix used for printing file names (as defined by the child class).
getSuffix()
- Method in class
TextFile
Suffix used for printing text file names is "".
getSystem()
- Method in class
Shell
The Juno object associated with this Shell.
getUser()
- Method in class
Shell
The User associated with this shell.
getUserHomes()
- Method in class
Juno
The directory containing all user homes for this system.
getVersion()
- Method in class
Juno
The version number for this system.
H
HelpCommand
- class
HelpCommand
.
The Juno shell command to display help on the shell commands.
I
InputInterface
- interface
InputInterface
.
Juno consoles use the same abstract method for input, so it is specified here.
InterpreterInterface
- interface
InterpreterInterface
.
Juno needs an interpreter to process the user's response to the login: prompt (or what she enters on a GUILoginConsole).
interpret(String)
- Method in interface
InterpreterInterface
Interpret a command line String.
interpret(String)
- Method in class
LoginInterpreter
Parse user's command line and dispatch appropriate semantic action.
interpret(String)
- Method in class
Shell
Interpret a String.
isEchoInput()
- Method in class
GUILoginConsole
Query what kind of console this is.
isEchoInput()
- Method in class
GUIShellConsole
isEchoInput()
- Method in class
JunoTerminal
Query what kind of console this is.
isEchoInput()
- Method in interface
OutputInterface
Query what kind of console this is.
isEchoInput()
- Method in class
RemoteConsole
Query what kind of console this is.
isGUI()
- Method in class
GUILoginConsole
Query what kind of console this is.
isGUI()
- Method in class
GUIShellConsole
isGUI()
- Method in class
JunoTerminal
Query what kind of console this is.
isGUI()
- Method in interface
OutputInterface
Query what kind of console this is.
isGUI()
- Method in class
RemoteConsole
Query what kind of console this is.
isRemote()
- Method in class
GUILoginConsole
Query what kind of console this is.
isRemote()
- Method in class
GUIShellConsole
isRemote()
- Method in class
JunoTerminal
Query what kind of console this is.
isRemote()
- Method in interface
OutputInterface
Query what kind of console this is.
isRemote()
- Method in class
RemoteConsole
Query what kind of console this is.
isRoot()
- Method in class
JFile
A JFile whose parent is null is defined to be the root (of a tree).
J
JFile
- class
JFile
.
A JFile object models a file in a hierarchical file system.
JFile(String, User, Directory)
- Constructor for class
JFile
Construct a new JFile, set owner, parent, creation and modification dates.
Juno
- class
Juno
.
Juno (Juno's Unix NOt) mimics a command line operating system such as Unix.
Juno(String, boolean, boolean, boolean)
- Constructor for class
Juno
Construct a Juno (operating system) object.
JunoException
- exception
JunoException
.
A general Juno Exception.
JunoException()
- Constructor for class
JunoException
The default (no argument) constructor.
JunoException(String)
- Constructor for class
JunoException
A general Juno exception holding a String message.
JunoTerminal
- class
JunoTerminal
.
A Command line interface terminal for Juno.
JunoTerminal(boolean)
- Constructor for class
JunoTerminal
Construct a JunoTerminal Allows for input echo, when, for example, input is redirected from a file.
L
ListCommand
- class
ListCommand
.
The Juno shell command to list contents of the current directory.
LoginInterpreter
- class
LoginInterpreter
.
Interpreter for Juno login commands.
LoginInterpreter(Juno, OutputInterface)
- Constructor for class
LoginInterpreter
Construct a new LoginInterpreter for interpreting login commands.
LogoutCommand
- class
LogoutCommand
.
The Juno shell command to log out.
lookup(String)
- Method in class
ShellCommandTable
Get a ShellCommand, given the command name key.
lookupUser(String)
- Method in class
Juno
Look up a user by user name.
M
MkdirCommand
- class
MkdirCommand
.
The Juno shell command to create a new directory.
main(String[])
- Static method in class
GUILoginConsole
main() in GUILoginConsole class for unit testing during development.
main(String[])
- Static method in class
Juno
The Juno system may be given the following command line arguments: -e: Echo all input (useful for testing).
matchPassword(String)
- Method in class
User
Confirm password.
N
NewfileCommand
- class
NewfileCommand
.
The Juno shell command to create a text file.
O
OutputInterface
- interface
OutputInterface
.
All Juno consoles use the same abstract methods for output, so they are specified here.
P
print(String)
- Method in class
RemoteConsole
Write a String to console socket.
println(String)
- Method in class
GUILoginConsole
Write a String followed by a newline to message area.
println(String)
- Method in class
GUIShellConsole
println(String)
- Method in class
JunoTerminal
Write a String followed by a newline to console output location.
println(String)
- Method in interface
OutputInterface
Write a String followed by a newline to console output location.
println(String)
- Method in class
RemoteConsole
Write a String followed by a newline to console socket.
R
RemoteConsole
- class
RemoteConsole
.
A remote console listens on a port for a remote login to a running Juno system server.
RemoteConsole(Juno, boolean, int)
- Constructor for class
RemoteConsole
Construct a remote console to listen for users trying to connect to Juno.
RemoteConsole(Juno, boolean, Socket, PrintWriter, int)
- Constructor for class
RemoteConsole
Construct a remote console for a single remote user.
RemoveCommand
- class
RemoveCommand
.
The Juno shell command to remove a text file.
readLine(String)
- Method in interface
InputInterface
Read a line (terminated by a newline).
readLine(String)
- Method in class
JunoTerminal
Read a line (terminated by a newline).
readLine(String)
- Method in class
RemoteConsole
Read a line (terminated by a newline) from console socket.
removeJFile(String)
- Method in class
Directory
Remove a JFile in this Directory, by name .
retrieveJFile(String)
- Method in class
Directory
Get a JFile in this Directory, by name .
run()
- Method in class
RemoteConsole
Action when the thread for this session starts.
S
Shell
- class
Shell
.
Models a shell (command interpreter) The Shell knows the (Juno) system it's working in, the User who started it, and the console to which to send output.
ShellCommand
- class
ShellCommand
.
Model those features common to all ShellCommands.
ShellCommand(String, String)
- Constructor for class
ShellCommand
A constructor, always called (as super()) by the subclass.
ShellCommand(String)
- Constructor for class
ShellCommand
A constructor for commands having no arguments.
ShellCommandTable
- class
ShellCommandTable
.
A ShellCommandTable object maintains a dispatch table of ShellCommand objects keyed by the command names used to invoke them.
ShellCommandTable()
- Constructor for class
ShellCommandTable
Construct and fill a shell command table.
separator
- Static variable in class
JFile
The separator used in pathnames.
setConsole(OutputInterface)
- Method in class
LoginInterpreter
Set the console for this interpreter.
setContents(String)
- Method in class
TextFile
Replace the contents of the file.
setDot(Directory)
- Method in class
Shell
Set the current working directory for this Shell.
setFileName(String)
- Method in class
Juno
Set the name of file in which system state is kept.
setModDate()
- Method in class
JFile
Set the modification date to "now".
setOwner(User)
- Method in class
JFile
Set the owner for this file.
shutDown()
- Method in class
Juno
Shut down this Juno system.
T
TextFile
- class
TextFile
.
A TextFile is a JFile that holds text.
TextFile(String, User, Directory, String)
- Constructor for class
TextFile
Construct a TextFile with initial contents.
TypeCommand
- class
TypeCommand
.
The Juno shell command to display the contents of a text file.
toString()
- Method in class
JFile
How a JFile represents itself as a String.
toString()
- Method in class
User
Convert the User to a String.
U
User
- class
User
.
Model a juno user.
User(String, String, Directory, String)
- Constructor for class
User
Construct a new User.
A
C
D
E
G
H
I
J
L
M
N
O
P
R
S
T
U
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes