edu.cmu.mse17654.Casino
Class TablesImpl

java.lang.Object
  |
  +--org.omg.PortableServer.Servant
        |
        +--edu.cmu.mse17654.Casino.TablesPOA
              |
              +--edu.cmu.mse17654.Casino.TablesImpl
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, edu.cmu.mse17654.Casino.TablesOperations

public class TablesImpl
extends edu.cmu.mse17654.Casino.TablesPOA

A class the implements the Tables interface.


Constructor Summary
TablesImpl(edu.cmu.mse17654.Casino.PlayerDB pdb, edu.cmu.mse17654.Casino.TableDB tdb, edu.cmu.mse17654.Casino.BankDB bdb)
          Constructor for TablesImpl class Category: Baseline Behavior: Contructs a new Tables object.. Clients: Players
 
Method Summary
 void joinTable(int playerID, edu.cmu.mse17654.Casino.Player player)
          Player asks to join any table.
 void leaveTable(int playerID)
          Player elects to leave a game.
 
Methods inherited from class edu.cmu.mse17654.Casino.TablesPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TablesImpl

public TablesImpl(edu.cmu.mse17654.Casino.PlayerDB pdb,
                  edu.cmu.mse17654.Casino.TableDB tdb,
                  edu.cmu.mse17654.Casino.BankDB bdb)
Constructor for TablesImpl class

Parameters:
tdb - The tables database.
Method Detail

joinTable

public void joinTable(int playerID,
                      edu.cmu.mse17654.Casino.Player player)
               throws edu.cmu.mse17654.Casino.InvalidPlayerID
Player asks to join any table.

Parameters:
playerID - The player ID .
Returns:
void
Throws:
edu.cmu.mse17654.Casino.InvalidPlayerID - The player ID is invalid.

leaveTable

public void leaveTable(int playerID)
                throws edu.cmu.mse17654.Casino.InvalidPlayerID
Player elects to leave a game.

Parameters:
playerID - The players ID.
Returns:
void
Throws:
edu.cmu.mse17654.Casino.InvalidSessionID - The passed sessionID is invalid.
edu.cmu.mse17654.Casino.InvalidPlayerID