OneShotExogenousContract

class scml.oneshot.OneShotExogenousContract(quantity, unit_price, product, seller, buyer, time, revelation_time)[source]

Bases: object

Exogenous contract information

Attributes Summary

buyer

Buyer ID (when passing contrtacts to the constructor of SCML2020OneShotWorld, you can also pass an interged index referring to the agent's index in the agent_types list)

product

Product index

quantity

Contract quantity

revelation_time

Simulation step at which the contract is revealed to its owner.

seller

Seller ID (when passing contrtacts to the constructor of SCML2020OneShotWorld, you can also pass an interged index referring to the agent's index in the agent_types list)

time

Simulation step at which the contract is exceucted

unit_price

Contract unit price

Attributes Documentation

buyer: str

Buyer ID (when passing contrtacts to the constructor of SCML2020OneShotWorld, you can also pass an interged index referring to the agent’s index in the agent_types list)

product: int

Product index

quantity: int

Contract quantity

revelation_time: int

Simulation step at which the contract is revealed to its owner. Should not exceed time and the default generate() method sets it to time

seller: str

Seller ID (when passing contrtacts to the constructor of SCML2020OneShotWorld, you can also pass an interged index referring to the agent’s index in the agent_types list)

time: int

Simulation step at which the contract is exceucted

unit_price: int

Contract unit price