|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbase.network.Network
public class Network
| Constructor Summary | |
|---|---|
Network()
|
|
Network(java.lang.String name,
Workstation[] server,
Workstation[] client)
|
|
| Method Summary | |
|---|---|
protected void |
addClient(Workstation client)
This method simply adds a client to the network. |
protected void |
addClientSet(Workstation[] client)
This method simply adds a workstation's client set to the network. |
protected void |
addServer(Workstation server)
This method simply adds a server to the network. |
protected void |
addServerSet(Workstation[] server)
This method simply adds a workstation's server set to the network. |
protected void |
deleteClient(java.lang.String workstationKey)
This method deletes a client workstation. |
protected void |
deleteServer(java.lang.String workstationKey)
This method deletes a server workstation. |
Workstation[] |
getAllWorkstation()
|
Workstation[] |
getClient()
|
Workstation |
getClientById(int workstationId)
This method retrieves a client workstation specifying his id. |
java.lang.String |
getName()
|
Workstation[] |
getServer()
|
Workstation |
getServerById(int workstationId)
This method retrieves a server workstation specifying his id. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Network()
public Network(java.lang.String name,
Workstation[] server,
Workstation[] client)
| Method Detail |
|---|
public Workstation[] getAllWorkstation()
public Workstation[] getServer()
public Workstation[] getClient()
protected void addClient(Workstation client)
client - The client to add to the network.protected void addServer(Workstation server)
server - The server to add to the network.protected void addClientSet(Workstation[] client)
client - A set of client workstations to add to the network.protected void addServerSet(Workstation[] server)
server - A set of server workstations to add to the network.public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectprotected void deleteClient(java.lang.String workstationKey)
workstationKey - The client workstation to delete in form of key string.protected void deleteServer(java.lang.String workstationKey)
workstationKey - The server workstation to delete in form of key string.public Workstation getClientById(int workstationId)
workstationId - An id associated to the client to retrieve.
public Workstation getServerById(int workstationId)
workstationId - An id associated to the server to retrieve.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||