public final class

Algorithm.SearchResult

extends Object
java.lang.Object
   ↳ es.usc.citius.hipster.algorithm.Algorithm.SearchResult

Class Overview

Holds information about the search process.

Summary

Public Constructors
Algorithm.SearchResult(N goalNode, int iterations, long elapsed)
Algorithm.SearchResult(Collection<N> goalNodes, int iterations, long elapsed)
Public Methods
long getElapsed()
N getGoalNode()
Collection<N> getGoalNodes()
int getIterations()
Number of iterations performed by the search algorithm.
List<List<S>> getOptimalPaths()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Algorithm.SearchResult (N goalNode, int iterations, long elapsed)

public Algorithm.SearchResult (Collection<N> goalNodes, int iterations, long elapsed)

Public Methods

public long getElapsed ()

Returns
  • the elapsed time (in milliseconds) between the begin of the search and the search result generation.

public N getGoalNode ()

Returns
  • goal node.

public Collection<N> getGoalNodes ()

public int getIterations ()

Number of iterations performed by the search algorithm.

Returns
  • number of iterations.

public List<List<S>> getOptimalPaths ()

public String toString ()