public final class

ProblemBuilder

extends Object
java.lang.Object
   ↳ es.usc.citius.hipster.model.problem.ProblemBuilder

Class Overview

Problem builder that is used to guide the user through the creation of a SearchProblem with the main components required to instantiate an algorithm.

Summary

Nested Classes
class ProblemBuilder.Wizard Internal wizard assistant class. 
Public Methods
static ProblemBuilder.Wizard create()

Creates the builder.

[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static ProblemBuilder.Wizard create ()

Creates the builder. Chain method calls until you have the problem ready to call build(). Example usage:

     Hipster.SearchProblem p =
          ProblemBuilder.create()
              .initialState(initialState)
              .defineProblemWithExplicitActions()
                  .useActionFunction(af)
                  .useTransitionFunction(atf)
                  .useCostFunction(cf)
                  .useHeuristicFunction(hf)
                  .build();