|
|||||||||
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 like 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
Constructor Summary | |
Juno(String hostName,
boolean echoInput)
Construct a Juno (operating system) object. |
Method Summary | |
User |
createUser(String userName,
Directory home,
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. |
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)
hostName
- the name of the host on which it's running.echoInput
- should all input be echoed as output?Method Detail |
public User createUser(String userName, Directory home, String realName)
userName
- the User's login name.home
- her home Directory.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)
-e: Echo all input (useful for testing). -version: Report the version number and exit. [hostname]: The name of the host on which Juno is running (optional).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |