Package de.learnlib.oracle
Interface SingleAdaptiveMembershipOracle<I,O>
-
- All Superinterfaces:
AdaptiveMembershipOracle<I,O>,BatchProcessor<AdaptiveQuery<I,O>>
public interface SingleAdaptiveMembershipOracle<I,O> extends AdaptiveMembershipOracle<I,O>
AnAdaptiveMembershipOraclethat answers single queries.- See Also:
AdaptiveMembershipOracle,SingleQueryOracle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidprocessQueries(Collection<? extends AdaptiveQuery<I,O>> queries)Processes the specified collection of queries.voidprocessQuery(AdaptiveQuery<I,O> query)Processes a single query.-
Methods inherited from interface de.learnlib.oracle.AdaptiveMembershipOracle
processBatch
-
-
-
-
Method Detail
-
processQueries
default void processQueries(Collection<? extends AdaptiveQuery<I,O>> queries)
Description copied from interface:AdaptiveMembershipOracleProcesses 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.- Specified by:
processQueriesin interfaceAdaptiveMembershipOracle<I,O>- Parameters:
queries- the queries to process
-
processQuery
void processQuery(AdaptiveQuery<I,O> query)
Description copied from interface:AdaptiveMembershipOracleProcesses 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.- Specified by:
processQueryin interfaceAdaptiveMembershipOracle<I,O>- Parameters:
query- the query to process
-
-