search

package
v0.0.0-...-4ac049e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	CustomSearchParams CustomSearchParams
}

Context passes search args to search algorithms

type CustomSearchParams

type CustomSearchParams map[string]string

CustomSearchParams contains any custom values a search algorithm would need, e.g. max depth for depth limited search

type Result

type Result struct {
	Node        environments.Node
	Environment environments.Environment
	Iterations  int

	CustomResultStats map[string]string
}

Result contains statistics about a single run of the search algorithm on an environment

func (Result) Print

func (r Result) Print()

Print prints the results to stdout

func (Result) TotalCost

func (r Result) TotalCost() int

TotalCost returns the total cost of the steps taken

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL