- class scml.scml2020.TradeDrivenProductionStrategy(*args, **kwargs)¶
A production strategy that produces ONLY for contracts that the agent did not initiate.
- Hooks Into:
Attributessection describes the attributes that can be used to construct the component (passed to its
Providessection describes the attributes (methods, properties, data-members) made available by this component directly. Note that everything provided by the bases of this components are also available to the agent (Check the
Basessection above for all the bases of this component).
Requiressection describes any requirements from the agent using this component. It defines a set of methods or properties/data-members that must exist in the agent that uses this component. These requirement are usually implemented as abstract methods in the component
Abstractsection describes abstract methods that MUST be implemented by any descendant of this component.
Hooks Intosection describes the methods this component overrides calling
super() which allows other components to hook into the same method (by overriding it). Usually callbacks starting with
on_are hooked into this way.
Overridessection describes the methods this component overrides without calling
supereffectively disallowing any other components after it in the MRO to call this method. Usually methods that do some action (i.e. not starting with
on_) are overridden this way.
Returns True if the SELL contract given can be honored in principle given the production capacity of the agent (n.
on_contract_breached(contract, breaches, ...)
on_contracts_finalized(signed, cancelled, ...)
Returns True if the SELL contract given can be honored in principle given the production capacity of the agent (n. lines). It does not check for the availability of inputs or enough money to run the production process.
Cannot be called before calling on_contracts_finalized