Class PlackettLucePolicy<N,A>
- java.lang.Object
-
- ai.libs.jaicore.search.algorithms.mdp.mcts.comparison.PlackettLucePolicy<N,A>
-
- All Implemented Interfaces:
IGraphDependentPolicy<N,A>
,IPathUpdatablePolicy<N,A,java.lang.Double>
,IPolicy<N,A>
,org.api4.java.common.control.ILoggingCustomizable
,org.api4.java.common.event.IEventEmitter<java.lang.Object>
,org.api4.java.common.event.IRelaxedEventEmitter
public class PlackettLucePolicy<N,A> extends java.lang.Object implements IPathUpdatablePolicy<N,A,java.lang.Double>, org.api4.java.common.control.ILoggingCustomizable, IGraphDependentPolicy<N,A>, org.api4.java.common.event.IRelaxedEventEmitter
-
-
Constructor Summary
Constructors Constructor Description PlackettLucePolicy(IPreferenceKernel<N,A> preferenceKernel, java.util.Random random)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A
getAction(N node, java.util.Collection<A> actions)
java.lang.String
getLoggerName()
void
registerListener(java.lang.Object listener)
void
setGraph(ai.libs.jaicore.graph.LabeledGraph<N,A> graph)
void
setLoggerName(java.lang.String name)
void
updatePath(org.api4.java.datastructure.graph.ILabeledPath<N,A> path, java.util.List<java.lang.Double> scores)
-
-
-
Constructor Detail
-
PlackettLucePolicy
public PlackettLucePolicy(IPreferenceKernel<N,A> preferenceKernel, java.util.Random random)
-
-
Method Detail
-
getAction
public A getAction(N node, java.util.Collection<A> actions) throws ActionPredictionFailedException
- Specified by:
getAction
in interfaceIPolicy<N,A>
- Throws:
ActionPredictionFailedException
-
registerListener
public void registerListener(java.lang.Object listener)
- Specified by:
registerListener
in interfaceorg.api4.java.common.event.IEventEmitter<N>
-
setGraph
public void setGraph(ai.libs.jaicore.graph.LabeledGraph<N,A> graph)
- Specified by:
setGraph
in interfaceIGraphDependentPolicy<N,A>
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerName
in interfaceorg.api4.java.common.control.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerName
in interfaceorg.api4.java.common.control.ILoggingCustomizable
-
updatePath
public void updatePath(org.api4.java.datastructure.graph.ILabeledPath<N,A> path, java.util.List<java.lang.Double> scores)
- Specified by:
updatePath
in interfaceIPathUpdatablePolicy<N,A,java.lang.Double>
-
-