scml.std.common
Module Contents
Classes
A report published periodically by the system showing the financial standing of an agent |
|
State of a one-shot agent |
|
Exogenous contract information |
|
Defines all private information of a factory |
Functions
|
Checks whether an agent is a system agent or not |
Attributes
A constant indicating an invalid cost for lines incapable of running some process |
|
Index of quantity in negotiation issues |
|
ID of the system buyer agent |
|
ID of the system seller agent |
|
Index of time in negotiation issues |
|
Index of unit price in negotiation issues |
- scml.std.common.INFINITE_COST[source]
A constant indicating an invalid cost for lines incapable of running some process
- class scml.std.common.FinancialReport[source]
A report published periodically by the system showing the financial standing of an agent
- __slots__ = ['agent_id', 'step', 'cash', 'assets', 'breach_prob', 'breach_level', 'is_bankrupt', 'agent_name']
- breach_prob: float
Number of times the agent breached a contract over the total number of contracts it signed.
- breach_level: float
Sum of the agent’s breach levels so far divided by the number of contracts it signed.
- scml.std.common.is_system_agent(aid: str) bool [source]
Checks whether an agent is a system agent or not
- Parameters:
aid – Agent ID
- Returns:
True if the ID is for a system agent.
- class scml.std.common.StdState[source]
Bases:
scml.oneshot.common.OneShotState
State of a one-shot agent
- class scml.std.common.StdExogenousContract[source]
Bases:
scml.oneshot.common.OneShotExogenousContract
Exogenous contract information
- class scml.std.common.StdProfile[source]
Bases:
scml.oneshot.common.OneShotProfile
Defines all private information of a factory