-
- 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,CounterAdaptiveQueryOracle,DynamicParallelAdaptiveOracle,MQ2AQWrapper,ObservationTree,StateLocalInputSULAdaptiveOracle,StaticParallelAdaptiveOracle,SULAdaptiveOracle
public interface AdaptiveMembershipOracle<I,O> extends BatchProcessor<AdaptiveQuery<I,O>>
An adaptive variation of theMembershipOraclethat is tailored towards answeringadaptive queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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 Detail
-
processQuery
default void processQuery(AdaptiveQuery<I,O> query)
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
void processQueries(Collection<? extends AdaptiveQuery<I,O>> queries)
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
default void processBatch(Collection<? extends AdaptiveQuery<I,O>> batch)
Description copied from interface:BatchProcessorProcess the batch.- Specified by:
processBatchin interfaceBatchProcessor<I>- Parameters:
batch- the batch to process
-
-