LectureGame.Core
Class NetworkConnectionKeeper
java.lang.Object
LectureGame.Core.NetworkConnectionKeeper
public class NetworkConnectionKeeper
- extends java.lang.Object
Created by IntelliJ IDEA.
User: olekrst
Date: 10.jan.2007
Time: 17:48:31
To change this template use File | Settings | File Templates.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connecionsIsDirty
private boolean connecionsIsDirty
serverIsAlive
private boolean serverIsAlive
connections
private java.util.Vector<StudentClient> connections
loggedInConnections
private java.util.Vector<StudentClient> loggedInConnections
masterClient
private MasterClient masterClient
connectionCounter
private int connectionCounter
db
private DataBaseConnection db
netManager
private NetworkManager netManager
NetworkConnectionKeeper
public NetworkConnectionKeeper(NetworkManager netManager)
shutDownServer
private void shutDownServer()
removeConnection
public void removeConnection(StudentClient toBeRemoved)
addConnection
public void addConnection(StudentClient c)
addMaster
public void addMaster(MasterClient m)
removeMaster
public boolean removeMaster()
getMaster
public MasterClient getMaster()
getConnectionCounter
public int getConnectionCounter()
getServerIsAlive
public boolean getServerIsAlive()
getConnections
public java.util.Vector<StudentClient> getConnections()
getLoggedInConnections
public java.util.Vector<StudentClient> getLoggedInConnections()
getDatabase
public DataBaseConnection getDatabase()
getNetworkManager
public NetworkManager getNetworkManager()