risk_propagation.transaction module¶
Configuration of a transaction
- class risk_propagation.transaction.Transaction(sender, receiver, amount)[source]¶
Bases:
object
Class containing a simple transaction
- __post_init__()[source]¶
Ensures that amount is an integer value.
- Raises:
ValueError – raised when the amount is not an integer value
- Return type:
None
- amount:
int
¶ Amount of the transaction
- receiver:
str
¶ Receiver of the transaction
- sender:
str
¶ Sender of the transaction