OneShotExogenousContract¶
- class scml.oneshot.OneShotExogenousContract(quantity, unit_price, product, seller, buyer, time, revelation_time)[source]¶
Bases:
object
Exogenous contract information
Attributes Summary
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 index
Contract quantity
Simulation step at which the contract is revealed to its owner.
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)Simulation step at which the contract is exceucted
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)
- revelation_time: int¶
Simulation step at which the contract is revealed to its owner. Should not exceed
time
and the defaultgenerate()
method sets it to time