Class 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlackettLucePolicy

        public PlackettLucePolicy​(IPreferenceKernel<N,​A> preferenceKernel,
                                  java.util.Random random)
    • Method Detail

      • registerListener

        public void registerListener​(java.lang.Object listener)
        Specified by:
        registerListener in interface org.api4.java.common.event.IEventEmitter<N>
      • getLoggerName

        public java.lang.String getLoggerName()
        Specified by:
        getLoggerName in interface org.api4.java.common.control.ILoggingCustomizable
      • setLoggerName

        public void setLoggerName​(java.lang.String name)
        Specified by:
        setLoggerName in interface org.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 interface IPathUpdatablePolicy<N,​A,​java.lang.Double>