oracle.Oracles()
Class to support crowdsourcing setting.
This class is a container that support multiple oracles work together. It will store the cost in all and cost for each oracle for analysing.
oracle.Oracles.init(self)
oracle.Oracles.add_oracle(self, oracle_name, oracle_object)
Adding an oracle. The oracle name should be unique to identify different oracles.
Parameters: |
|
---|
oracle.Oracles.query_from(self, index_for_querying, oracle_name=None)
query index_for_querying from oracle_name. If oracle_name is not specified, it will query one of the oracles randomly.
Parameters: |
|
---|---|
Returns: |
|
oracle.Oracles.get_oracle(self, oracle_name)
oracle.Oracles.full_history(self)
return full version of query history
Copyright © 2018, alipy developers (BSD 3 License).