|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Juno
Juno (Juno's Unix NOt) mimics a command line operating system such as Unix.
A Juno system has a name, a set of Users, a JFile system, a login process and a set of shell commands.
User
,
JFile
,
ShellCommand
,
Serialized FormConstructor Summary | |
Juno(String hostName,
boolean echoInput,
boolean isGUI,
boolean isRemote)
Construct a Juno (operating system) object. |
Method Summary | |
User |
createUser(String userName,
Directory home,
String password,
String realName)
Create a new User. |
ShellCommandTable |
getCommandTable()
The shell command table for this system. |
String |
getHostName()
The name of the host computer on which this system is running. |
String |
getOS()
The name of this operating system. |
Directory |
getUserHomes()
The directory containing all user homes for this system. |
String |
getVersion()
The version number for this system. |
User |
lookupUser(String username)
Look up a user by user name. |
static void |
main(String[] args)
The Juno system may be given the following command line arguments: -e: Echo all input (useful for testing). |
void |
setFileName(String fileName)
Set the name of file in which system state is kept. |
void |
shutDown()
Shut down this Juno system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Juno(String hostName, boolean echoInput, boolean isGUI, boolean isRemote)
hostName
- the name of the host on which it's running.echoInput
- should all input be echoed as output?isGUI
- graphical user interface?isRemote
- running as a server?Method Detail |
public User createUser(String userName, Directory home, String password, String realName)
userName
- the User's login name.home
- her home Directory.password
- her password.realName
- her real name.
public ShellCommandTable getCommandTable()
public String getHostName()
public String getOS()
public Directory getUserHomes()
public String getVersion()
public User lookupUser(String username)
username
- the user's name.
public static void main(String[] args)
public void setFileName(String fileName)
fileName
- the file name.public void shutDown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |