LectureGame.Core
Class NetworkConnectionKeeper

java.lang.Object
  extended by 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.


Field Summary
private  boolean connecionsIsDirty
           
private  int connectionCounter
           
private  java.util.Vector<StudentClient> connections
           
private  DataBaseConnection db
           
private  java.util.Vector<StudentClient> loggedInConnections
           
private  MasterClient masterClient
           
private  NetworkManager netManager
           
private  boolean serverIsAlive
           
 
Constructor Summary
NetworkConnectionKeeper(NetworkManager netManager)
           
 
Method Summary
 void addConnection(StudentClient c)
           
 void addMaster(MasterClient m)
           
 int getConnectionCounter()
           
 java.util.Vector<StudentClient> getConnections()
           
 DataBaseConnection getDatabase()
           
 java.util.Vector<StudentClient> getLoggedInConnections()
           
 MasterClient getMaster()
           
 NetworkManager getNetworkManager()
           
 boolean getServerIsAlive()
           
 void removeConnection(StudentClient toBeRemoved)
           
 boolean removeMaster()
           
private  void shutDownServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NetworkConnectionKeeper

public NetworkConnectionKeeper(NetworkManager netManager)
Method Detail

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()