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, waitrequestCounterExamplespublic ExpertPool(conexp.fx.core.algorithm.exploration.ExpertPool.Strategy strategy, ExecutorService executor)
public Set<CounterExample<G,M>> getCounterExamples(Implication<G,M> implication) throws InterruptedException
ExpertgetCounterExamples 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
NoSuchElementExceptionpublic final conexp.fx.core.algorithm.exploration.ExpertPool.Strategy getStrategy()
Copyright © 2010–2019 Francesco Kriegel. All rights reserved.