public interface

PriorityEvaluator

es.usc.citius.lab.hipster.collections.adapter.PriorityEvaluator<N>
Known Indirect Subclasses

Class Overview

This interface is intended for the definition of evaluators to calculate the priority (double) of a concrete element. This can be used to adapt different data structures (like the most implementations of heaps for java) which use doubles to sort the elements instead of defining comparable types (as used by java.util.Queue.

Summary

Public Methods
abstract double getPriority(N n)
Retrieve the priority of the node.

Public Methods

public abstract double getPriority (N n)

Retrieve the priority of the node.

Parameters
n node
Returns
  • priority as double value