naive

package
v0.0.0-...-833c838 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Naive

type Naive struct {
	// contains filtered or unexported fields
}

type that implements interface HistoryStorage

func New

func New(dirPath string) *Naive

func (*Naive) Close

func (n *Naive) Close()

func (*Naive) CreateNewWorkingDir

func (n *Naive) CreateNewWorkingDir() string

func (*Naive) CreateStorage

func (n *Naive) CreateStorage()

CreateStorage(): used for initializing a directory for naive history storage called in a process of "nmz init"

func (*Naive) GetRequiredTime

func (n *Naive) GetRequiredTime(id int) (time.Duration, error)

func (*Naive) GetStoredHistory

func (n *Naive) GetStoredHistory(id int) (*SingleTrace, error)

func (*Naive) Init

func (n *Naive) Init()

func (*Naive) IsSuccessful

func (n *Naive) IsSuccessful(id int) (bool, error)

func (*Naive) Name

func (n *Naive) Name() string

func (*Naive) NrStoredHistories

func (n *Naive) NrStoredHistories() int

func (*Naive) RecordNewTrace

func (n *Naive) RecordNewTrace(newTrace *SingleTrace)

func (*Naive) RecordResult

func (n *Naive) RecordResult(successful bool, requiredTime time.Duration) error

func (*Naive) Search

func (n *Naive) Search(prefix []Action) []int

func (*Naive) SearchWithConverter

func (n *Naive) SearchWithConverter(prefix []Action, converter func(actions []Action) []Action) []int

Jump to

Keyboard shortcuts

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