- Type Parameters:
I- input symbol typeO- output symbol type
- All Superinterfaces:
BatchProcessor<AdaptiveQuery<I,O>>
- All Known Subinterfaces:
ParallelAdaptiveOracle<I,,O> SingleAdaptiveMembershipOracle<I,O>
- All Known Implementing Classes:
AdaptiveQueryCache,CLIOutputAdaptiveOracle,CounterAdaptiveQueryOracle,DynamicParallelAdaptiveOracle,MQ2AQWrapper,ObservationTree,StateLocalInputSULAdaptiveOracle,StaticParallelAdaptiveOracle,StdInOutputAdaptiveOracle,SULAdaptiveOracle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AdaptiveMembershipOracle<I,O>
extends BatchProcessor<AdaptiveQuery<I,O>>
An adaptive variation of the
MembershipOracle that is tailored towards answering
adaptive queries.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidprocessBatch(Collection<? extends AdaptiveQuery<I, O>> batch) Process the batch.voidprocessQueries(Collection<? extends AdaptiveQuery<I, O>> queries) Processes the specified collection of queries.default voidprocessQuery(AdaptiveQuery<I, O> query) Processes a single query.
-
Method Details
-
processQuery
Processes a single query. When this method returns, the provided inputs of theAdaptiveQuery.getInput()method will have been evaluated on the system under learning and its responses will have been forwarded to theAdaptiveQuery.processOutput(Object)method until the method has returnedAdaptiveQuery.Response.FINISHED.The default implementation of this method will simply wrap the provided
AdaptiveQueryin a singletonCollectionusingCollections.singleton(Object). Implementations in subclasses should override this method to circumvent the Collection object creation, if possible.- Parameters:
query- the query to process
-
processQueries
Processes the specified collection of queries. When this method returns, the provided inputs of theAdaptiveQuery.getInput()method will have been evaluated on the system under learning and its responses will have been forwarded to theAdaptiveQuery.processOutput(Object)method until the method has returnedAdaptiveQuery.Response.FINISHED.- Parameters:
queries- the queries to process
-
processBatch
Description copied from interface:BatchProcessorProcess the batch.- Specified by:
processBatchin interfaceBatchProcessor<I>- Parameters:
batch- the batch to process
-