public class MetaMinerBasedSorter
extends java.lang.Object
implements java.util.Comparator<ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode>
TFDNodes that sorts based on meta information about
the underlying ComponentInstance of the node and possibly application
context.| Constructor and Description |
|---|
MetaMinerBasedSorter(IMetaMiner metaminer,
java.util.Collection<Component> components) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode o1,
ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode o2) |
protected ComponentInstance |
convertToComponentInstance(ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode node)
Converts the given TFDNode to a ComponentInstance.
|
IMetaMiner |
getMetaminer()
Gets the
IMetaMiner, which is used to derive a score for a given
TFDNode based on its attached ComponentInstance. |
void |
setMetaminer(IMetaMiner metaminer)
Sets the
IMetaMiner, which is used to derive a score for a given
TFDNode based on its attached ComponentInstance. |
public MetaMinerBasedSorter(IMetaMiner metaminer, java.util.Collection<Component> components)
public int compare(ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode o1,
ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode o2)
compare in interface java.util.Comparator<ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode>protected ComponentInstance convertToComponentInstance(ai.libs.jaicore.planning.hierarchical.algorithms.forwarddecomposition.graphgenerators.tfd.TFDNode node)
node - The TFDNode to convertpublic IMetaMiner getMetaminer()
IMetaMiner, which is used to derive a score for a given
TFDNode based on its attached ComponentInstance.public void setMetaminer(IMetaMiner metaminer)
IMetaMiner, which is used to derive a score for a given
TFDNode based on its attached ComponentInstance.metaminer - The meta miner