Interface Casino::Bank

IDL source    Global index
interface Bank

The interface used to simulate monetary transactions

Author:
team5
Version:
0.1


Operation index.

  • buyChips
    The player is purchasing chips from the bank.
    • Category: Baseline.
    • Behavior: The player asks for quantity of chips.
    • Clients: Player
  • getChipBalance
    The player requests the number of chips he/she owns
    • Category: Baseline.
    • Behavior: The player requests the balance of chips from the bank.
    • Clients: Player
  • sellAllChips
    The player is selling chips back to the bank.
    • Category: Baseline.
    • Behavior: The player sells all or some of his chips back to the Bank.
    • Clients: Player
  • sellChips
    The player is selling chips back to the bank.
    • Category: Baseline.
    • Behavior: The player sells all or some of his chips back to the Bank.
    • Clients: Player
  • Operations.

  • buyChips

      void buyChips(in long playerID,
          in long quantity)
        raises(InvalidPlayerID);
    The player is purchasing chips from the bank.
    • Category: Baseline.
    • Behavior: The player asks for quantity of chips.
    • Clients: Player
    Returns:
    void
    Parameters:
    playerID The playerID.
    quantity The number of chips requested.
    Raises:
    InvalidPlayerID

  • getChipBalance

      long getChipBalance(in long playerID)
        raises(InvalidPlayerID, InsufficientChips, InvalidSessionID);
    The player requests the number of chips he/she owns
    • Category: Baseline.
    • Behavior: The player requests the balance of chips from the bank.
    • Clients: Player
    Returns:
    void
    Parameters:
    playerID The player's id.
    Raises:
    InvalidPlayerID
    InsufficientChips

  • sellAllChips

      void sellAllChips(in long playerID)
        raises(InvalidPlayerID);
    The player is selling chips back to the bank.
    • Category: Baseline.
    • Behavior: The player sells all or some of his chips back to the Bank.
    • Clients: Player
    Returns:
    void
    Parameters:
    playerID The player's id.
    Raises:
    InvalidPlayerID

  • sellChips

      void sellChips(in long playerID,
          in long quantity)
        raises(InvalidPlayerID);
    The player is selling chips back to the bank.
    • Category: Baseline.
    • Behavior: The player sells all or some of his chips back to the Bank.
    • Clients: Player
    Returns:
    void
    Parameters:
    playerID The player's id.
    quantity The number of chips requested.
    Raises:
    InvalidPlayerID


    Generated by Sandia idldoc 1.0.