A B C D E F G I K L M N O P R S T V W

A

address - Variable in class Directory
Each index holds the inode address of the corresponding file or directory.

B

bitmap - Variable in class FileSystem
 
Block - class Block.
Class Block is extended by Class Directory and Class File.
Block() - Constructor for class Block
 

C

c - Static variable in class Keyboard
 
cat(String) - Method in class FileSystem
to display contents of file to standard out
cd() - Method in class FileSystem
changes the working directory to to the home directory of current user
cd(String) - Method in class FileSystem
Changes the working directory to the specified directory passed in as parameter dir
checkPath(String) - Method in class FileSystem
 
chmod(String, String) - Method in class FileSystem
changes or assigns the access permissions of a file or directoy
command() - Method in class FileSystem
Lists the commands implemented
CommandLine - class CommandLine.
This class can be used by any object (that implements CommandLineable) to be manipulated by a command line interface.
CommandLine.PromptThread - class CommandLine.PromptThread.
 
CommandLine.PromptThread(CommandLine) - Constructor for class CommandLine.PromptThread
 
CommandLine(CommandLineable) - Constructor for class CommandLine
Create a new CommandLine for the client.
CommandLineable - interface CommandLineable.
Any object that wishes to use a CommandLine must implement this interface.
currentDir - Variable in class FileSystem
 
currentUser - Variable in class FileSystem
 

D

d - Static variable in class Keyboard
 
data - Variable in class File
 
dataBlock - Variable in class FileSystem
 
Directory - class Directory.
Class Directoy simulates a directory block which contains names and addresses of four directories or files authors: Todd Wilson and Reza Khorrami
Directory() - Constructor for class Directory
 
doCommand(String, String[]) - Method in interface CommandLineable
Do the command as sent by the CommandLine.
doCommand(String, String[]) - Method in class FileSystem
receives the command from CommandLine and then interprets which FileSystem method (command) to call.
dump() - Method in class FileSystem
dumps bitmap allocation from the bitmap array and inode details from the InodeList array and Block details on the screen
dump(String) - Method in class FileSystem
dumps bitmap allocation from the bitmap array and inode details from the InodeList array and Block details into a file passed in by filename

E

end - Variable in class Inode
 

F

File - class File.
Class File simulates a file block on disk which holds 15 characters as the data.
File() - Constructor for class File
 
FileSystem - class FileSystem.
////////////////////////////////////////////////////////////////////////////////
File: FileSystem.java
Java Class: FileSystem
///////////////////////////////////////////////////////////////////////////////
CSCI 152 Operating Systems Programming
Final Project
authors: Todd Wilson and Reza Khorrami
version 1.0
Last Modified: 5/10/2000
//////////////////////////////////////////////////////////////////////////////

FileSystem is our primary class in our file managment system simulation.
FileSystem() - Constructor for class FileSystem
 

G

getCurrentDir() - Method in class FileSystem
returns the inode address of CurrentDir
getCurrentUser() - Method in class FileSystem
returns the inode address of CurrentUser
getNextfreeBlock() - Method in class FileSystem
getNextfreeBlock search bitmap array for first entry = 0 return index representing free block if no free block return -1
getNextfreeInode() - Method in class FileSystem
getNextfreeInode Search inodeList array for the first free inode which == null return index for free inode return -1 if no free inodes found
getPromptString() - Method in class CommandLine
Get the prompt displayed at the command line.

I

i - Static variable in class Keyboard
 
Inode - class Inode.
Class Inode contains information on a directory or file block
Inode() - Constructor for class Inode
 
inodeList - Variable in class FileSystem
 
input - Static variable in class Keyboard
 
iseof - Static variable in class Keyboard
 

K

Keyboard - class Keyboard.
 
Keyboard() - Constructor for class Keyboard
 

L

length - Variable in class Inode
 
links - Variable in class Inode
 
ln(String, String) - Method in class FileSystem
creates a link from the existing file passed in to a new file refered to in newFile
login(String) - Method in class FileSystem
First Check to see if a user is already logged on Then Find out the name of the user logged on Assign current_ptr to current Directory
logout() - Method in class FileSystem
setting CurrentDir and CurrentUser to -1 to logout logs current user out of the file system
ls() - Method in class FileSystem
lists the names of files and directories in the current directory
ls(String) - Method in class FileSystem
lists the names of files and directories in the directory dir

M

m_client - Variable in class CommandLine
The client who is receiving the command from this command line.
m_in - Variable in class CommandLine
The input stream from which to get commands.
m_out - Variable in class CommandLine
The output stream to which to send messages and prompts.
m_prompt - Variable in class CommandLine
The prompt to be displayed at the command line.
main(String[]) - Static method in class FileSystem
Creates new instance of the Class FileSystem set prompt to $> and call start function
mkdir(String) - Method in class FileSystem
Creates named directory that is passed in, default mode is set standard entries ".", ".." are set.
more() - Method in class FileSystem
dumps bitmap allocation from the bitmap array and inode details from the InodeList array and Block details on to the screen 30 lines at a time user must press return to continue
mv(String, String) - Method in class FileSystem
moves the file or directory named by exisitng parameter to the destination specified by newPath.

N

name - Variable in class Directory
Contains the names of the files or directories.
newParse(String) - Method in class FileSystem
 

O

owner - Variable in class Inode
Owner of file or directory

P

path(String) - Method in class FileSystem
 
permission - Variable in class Inode
File or Directory permissions.
0: no read,no write
1: no read, write
2: read,no write
3: read and write
prompt(String) - Method in class CommandLine
The message will be sent to the current output stream.
promptString - Variable in class CommandLine
 
pwd() - Method in class FileSystem
Prints the absolute path to the current directory

R

readChar() - Static method in class Keyboard
 
readDouble() - Static method in class Keyboard
 
readInt() - Static method in class Keyboard
 
readString() - Static method in class Keyboard
 
rm(String) - Method in class FileSystem
removes file entry specified by file arguement user must have write permission to remove the file
rmdir(String) - Method in class FileSystem
removes the directory entry specified by path String which must refer to an empty directory
run() - Method in class CommandLine.PromptThread
 

S

s - Static variable in class Keyboard
 
setCurrentDir(int) - Method in class FileSystem
setting current directory for private variable CureentDir
setCurrentUser(int) - Method in class FileSystem
setting current user for private variable CurrentUser
setInputStream(InputStream) - Method in class CommandLine
Set the input stream.
setOutputStream(OutputStream) - Method in class CommandLine
Set the output stream.
setPromptString(String) - Method in class CommandLine
Set the prompt to be displayed at the command line.
start - Variable in class Inode
 
start() - Method in class CommandLine
 

T

type - Variable in class Inode
File - 0 or Directory - 1

V

v - Variable in class Inode
 
vi(String, String) - Method in class FileSystem
writes text passed in by text to a file passed in by parameter file

W

whoami() - Method in class FileSystem
prints out the login name of the current user and their inode address.

A B C D E F G I K L M N O P R S T V W