Class HistogramOracle<I,D>
- java.lang.Object
-
- de.learnlib.filter.statistic.oracle.HistogramOracle<I,D>
-
- Type Parameters:
I
- input symbol classD
- output symbol class
- All Implemented Interfaces:
MembershipOracle<I,D>
,BatchProcessor<Query<I,D>>
,QueryAnswerer<I,D>
,StatisticCollector
,StatisticOracle<I,D>
- Direct Known Subclasses:
DFAHistogramOracle
,MealyHistogramOracle
,MooreOutputHistogramOracle
public class HistogramOracle<I,D> extends Object implements StatisticOracle<I,D>
Collects a histogram of passed query lengths.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.learnlib.oracle.MembershipOracle
MembershipOracle.DFAMembershipOracle<I>, MembershipOracle.MealyMembershipOracle<I,O>, MembershipOracle.MooreMembershipOracle<I,O>
-
-
Constructor Summary
Constructors Constructor Description HistogramOracle(MembershipOracle<I,D> next, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistogramDataSet
getStatisticalData()
Returns this statistical data gathered by this collector.void
processQueries(Collection<? extends Query<I,D>> queries)
Processes the specified collection of queries.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.learnlib.oracle.MembershipOracle
answerQuery, answerQuery, asOracle, processBatch, processQuery
-
-
-
-
Constructor Detail
-
HistogramOracle
public HistogramOracle(MembershipOracle<I,D> next, String name)
- Parameters:
next
- real oraclename
- name of the collected data set
-
-
Method Detail
-
processQueries
public final void processQueries(Collection<? extends Query<I,D>> queries)
Description copied from interface:MembershipOracle
Processes the specified collection of queries. When this method returns, each of the contained queriesQuery.answer(Object)
method should have been called with an argument reflecting the SUL response to the respective query.- Specified by:
processQueries
in interfaceMembershipOracle<I,D>
- Parameters:
queries
- the queries to process- See Also:
Query.answer(Object)
-
getStatisticalData
public final HistogramDataSet getStatisticalData()
Description copied from interface:StatisticCollector
Returns this statistical data gathered by this collector.- Specified by:
getStatisticalData
in interfaceStatisticCollector
- Returns:
- the data set collected by this oracle.
-
-