base.network
Class NetworkManager

java.lang.Object
  extended by java.util.Observable
      extended by base.network.NetworkManager

public class NetworkManager
extends java.util.Observable


Constructor Summary
NetworkManager()
           
 
Method Summary
 void addClientWorkstation(Workstation workstation)
          This method simply adds a client workstation to the network.
 void deleteWorkstation(Workstation workstation)
          This method deletes a client workstation from the network.
static NetworkManager getInstance()
           
 Network getNetwork()
           
 void setNetwork(Network network)
           
protected static java.lang.String workstationKey(Workstation workstation)
          This method simply builds a key string for an instance of Workstation.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkManager

public NetworkManager()
Method Detail

getInstance

public static NetworkManager getInstance()

getNetwork

public Network getNetwork()
Returns:
Returns the network.

setNetwork

public void setNetwork(Network network)
Parameters:
network - The network to set.

workstationKey

protected static java.lang.String workstationKey(Workstation workstation)
This method simply builds a key string for an instance of Workstation.

Parameters:
workstation - The workstation from wich build the key.
Returns:
A key rappresentation for the workstation.

addClientWorkstation

public void addClientWorkstation(Workstation workstation)
This method simply adds a client workstation to the network.

Parameters:
workstation - The client workstation to add to the network.

deleteWorkstation

public void deleteWorkstation(Workstation workstation)
This method deletes a client workstation from the network.

Parameters:
workstation - The workstation to delete.


Copyright © 2006 SF.net. All Rights Reserved.