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.
- Category: Baseline (fulfills baseline requirment #4)
- Behavior: This interface supports methods to allow a player
to join a game at a virtual table.
- Clients: Player
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 |
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
- Category: Baseline
- Behavior: Contructs a new Tables object..
- Clients: Players
- Parameters:
tdb
- The tables database.
joinTable
public void joinTable(int playerID,
edu.cmu.mse17654.Casino.Player player)
throws edu.cmu.mse17654.Casino.InvalidPlayerID
- Player asks to join any table.
- Category: Baseline
- Behavior: Enables a player to join a table.
- Clients: Players
- 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.
- Category: Baseline
- Behavior: Enables a player to leave a table.
- Clients: Players
- Parameters:
playerID
- The players ID.
- Returns:
- void
- Throws:
edu.cmu.mse17654.Casino.InvalidSessionID
- The passed sessionID is invalid.
edu.cmu.mse17654.Casino.InvalidPlayerID