public class ExpertPool<G,M> extends Object implements Expert<G,M>
Constructor and Description |
---|
ExpertPool(conexp.fx.core.algorithm.exploration.ExpertPool.Strategy strategy,
ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
void |
add(Expert<G,M>... experts) |
void |
add(Iterable<Expert<G,M>> experts) |
boolean |
allIdle() |
Set<CounterExample<G,M>> |
getCounterExamples(Implication<G,M> implication)
Returns an empty set if the provided implication is valid, otherwise returns a set containing at least one
counterexample.
|
Expert<G,M> |
getIdleExpert() |
conexp.fx.core.algorithm.exploration.ExpertPool.Strategy |
getStrategy() |
boolean |
isIdle(Expert<G,M> expert) |
void |
remove(Expert<G,M>... experts) |
void |
remove(Iterable<Expert<G,M>> experts) |
void |
setBusy(Expert<G,M> expert) |
void |
setIdle(Expert<G,M> expert) |
boolean |
someIdle() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestCounterExamples
public ExpertPool(conexp.fx.core.algorithm.exploration.ExpertPool.Strategy strategy, ExecutorService executor)
public Set<CounterExample<G,M>> getCounterExamples(Implication<G,M> implication) throws InterruptedException
Expert
getCounterExamples
in interface Expert<G,M>
InterruptedException
@SafeVarargs public final void add(Expert<G,M>... experts)
@SafeVarargs public final void remove(Expert<G,M>... experts)
public final boolean allIdle()
public final boolean someIdle()
public final Expert<G,M> getIdleExpert() throws NoSuchElementException
NoSuchElementException
public final conexp.fx.core.algorithm.exploration.ExpertPool.Strategy getStrategy()
Copyright © 2010–2023 Francesco Kriegel. All rights reserved.