|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.simulation.server.Server
public abstract class Server
This is the abstract base class to represent a server in visidia. A server is the communication gateway between console and process.
Field Summary | |
---|---|
protected Console |
console
The console. |
Constructor Summary | |
---|---|
protected |
Server(Console console)
Instantiates a new server. |
Method Summary | |
---|---|
void |
addProcess(ProcessType proc)
Adds a process. |
Console |
getConsole()
Gets the console. |
ProcessType |
getProcess(int processId)
Gets the process. |
abstract void |
sendToConsole(Command cmd)
Sends a command to the console. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Console console
Constructor Detail |
---|
protected Server(Console console)
console
- the consoleMethod Detail |
---|
public abstract void sendToConsole(Command cmd)
cmd
- the commandpublic void addProcess(ProcessType proc)
proc
- the processpublic Console getConsole()
public ProcessType getProcess(int processId)
processId
- the process id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |