auto

package
v0.3.2-beta Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AQEngine

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

func NewAQEngine

func NewAQEngine(qfile string, chainbreakProb float64, prefixLength int) *AQEngine

Function which will provide a new autoq struct An autoq must be provided a file that it can read/write it's data to so that the chain is preserved between launches

func (*AQEngine) Load

func (q *AQEngine) Load(filename string) error

Method which will load the provided autoq data file. Will overwrite the internal state of the object. Should pretty much only be used when the object is created but it is left public in case a client needs to load old data or something

func (*AQEngine) NotifyPlayed

func (q *AQEngine) NotifyPlayed(filename string)

The interface for external callers to add to the markov chain In our case we use it to notify the chain that a song was played in full

func (*AQEngine) Vpop

func (q *AQEngine) Vpop() string

Vpop simply returns the next song according to the Markov chain

func (*AQEngine) Write

func (q *AQEngine) Write(filename string) error

Method which will write the autoq data to the provided file. Will overwrite a file if one already exists at that location.

Jump to

Keyboard shortcuts

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