-
- 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 theMembershipOracle
that is tailored towards answeringadaptive queries
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
processBatch(Collection<? extends AdaptiveQuery<I,O>> batch)
Process the batch.void
processQueries(Collection<? extends AdaptiveQuery<I,O>> queries)
Processes the specified collection of queries.default void
processQuery(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
AdaptiveQuery
in a singletonCollection
usingCollections.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:BatchProcessor
Process the batch.- Specified by:
processBatch
in interfaceBatchProcessor<I>
- Parameters:
batch
- the batch to process
-
-