N - A - public class RandomSearch<N,A> extends AAnyPathInORGraphSearch<GraphSearchInput<N,A>,SearchGraphPath<N,A>,N,A> implements ai.libs.jaicore.basic.ILoggingCustomizable
| Constructor and Description |
|---|
RandomSearch(GraphSearchInput<N,A> problem) |
RandomSearch(GraphSearchInput<N,A> problem,
int seed) |
RandomSearch(GraphSearchInput<N,A> problem,
java.util.function.Predicate<N> priorityPredicate,
java.util.Random random) |
RandomSearch(GraphSearchInput<N,A> problem,
java.util.Random random) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendPathToNode(java.util.List<N> nodes) |
ai.libs.jaicore.graph.Graph<N> |
getExploredGraph() |
java.lang.String |
getLoggerName() |
boolean |
knowsNode(N node) |
SearchGraphPath<N,A> |
nextSolutionUnderNode(N node) |
ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent |
nextWithException() |
void |
setLoggerName(java.lang.String name) |
getGraphGenerator, registerSolutioncall, collectAllSolutions, nextSolutionCandidate, nextSolutionCandidateEventactivate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, cancel, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextSolutionCandidate, nextSolutionCandidateEventpublic RandomSearch(GraphSearchInput<N,A> problem)
public RandomSearch(GraphSearchInput<N,A> problem, int seed)
public RandomSearch(GraphSearchInput<N,A> problem, java.util.Random random)
public RandomSearch(GraphSearchInput<N,A> problem, java.util.function.Predicate<N> priorityPredicate, java.util.Random random)
public ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent nextWithException()
throws java.lang.InterruptedException,
ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException,
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedException,
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
nextWithException in interface ai.libs.jaicore.basic.algorithm.IAlgorithm<GraphSearchInput<N,A>,SearchGraphPath<N,A>>java.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmExceptionpublic boolean knowsNode(N node)
public void appendPathToNode(java.util.List<N> nodes)
public SearchGraphPath<N,A> nextSolutionUnderNode(N node) throws java.lang.InterruptedException, ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException, ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedException
java.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedExceptionpublic ai.libs.jaicore.graph.Graph<N> getExploredGraph()
public void setLoggerName(java.lang.String name)
setLoggerName in interface ai.libs.jaicore.basic.ILoggingCustomizablesetLoggerName in class AAnyPathInORGraphSearch<GraphSearchInput<N,A>,SearchGraphPath<N,A>,N,A>public java.lang.String getLoggerName()
getLoggerName in interface ai.libs.jaicore.basic.ILoggingCustomizablegetLoggerName in class AAnyPathInORGraphSearch<GraphSearchInput<N,A>,SearchGraphPath<N,A>,N,A>