bank_controller
Classes:
-
BankController–Controller for managing bank operations, including banking and trading books.
BankController
BankController(
bank: Bank,
banking_book_view: BRMSBankingBookWidget,
trading_book_view: BRMSTradingBookWidget,
inspector_ctrl: InspectorController,
statement_view: BRMSStatementViewer,
)
Bases: BRMSController
Controller for managing bank operations, including banking and trading books.
The bank controller should only modify the state of the bank model through Transaction.
After transactions have been processed, the controller sync the state of the bank model and those for various views.
Methods:
-
connect_signals–Connect signals to their respective slots.
-
init–Initialize the bank with default transactions.
-
process_transaction–Process a transaction and emit signal.
-
update_views–Update the views based on the given transaction.
connect_signals
connect_signals() -> None
Connect signals to their respective slots.
process_transaction
process_transaction(transaction: Transaction) -> None
Process a transaction and emit signal.