com.kpro.algorithm
Class ConclusionAlgorithm
java.lang.Object
com.kpro.algorithm.ConclusionAlgorithm
- Direct Known Subclasses:
- Conclusion_Simple
public abstract class ConclusionAlgorithm
- extends java.lang.Object
abstract class for all conclusion classes (they take the new policy and
a reduction of the history versus new policy), and return an Action.
May extend ReductionAlgorithm in the future (return a modified np, instead of
an action).
May be used instead of a ReductionAlgorithm. call with:
Action a = (new ConclusionAlgorithm()).conclude(newpol,theIO.getPDB());
- Version:
- 29.09.11.1
- Author:
- ngerstle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
distanceMetric
protected DistanceMetric distanceMetric
extraArgs
java.lang.String[] extraArgs
ConclusionAlgorithm
public ConclusionAlgorithm(DistanceMetric dm,
java.lang.String[] extraArgs)
- ConclustionAlgorithm constructor
- Parameters:
distanceMetric
- extraArgs
-
conclude
public abstract Action conclude(PolicyObject np,
java.lang.Iterable<PolicyObject> knearestns)
- Provides an action recommendation for np based on the given set of objects
- Parameters:
np
- the new policyknearestns
- a set of relevant policies
- Returns:
- a recommended Action