|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--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. It keeps track of the the current working directory (.) .
Constructor Summary | |
Shell(Juno system,
User user,
Terminal console)
Construct a login shell for the given user and console. |
Method Summary | |
Terminal |
getConsole()
The console associated with this Shell. |
Directory |
getDot()
The current working directory for this Shell. |
String |
getPrompt()
The prompt for the CLI. |
Juno |
getSystem()
The Juno object associated with this Shell. |
User |
getUser()
The User associated with this Shell. |
void |
setDot(Directory dot)
Set the current working directory for this Shell. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Shell(Juno system, User user, Terminal console)
system
- a reference to the Juno system.user
- the User logging in.console
- a Terminal for input and output.Method Detail |
public Terminal getConsole()
public Directory getDot()
public String getPrompt()
public Juno getSystem()
public User getUser()
public void setDot(Directory dot)
dot
- the new working directory.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |