options

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckOptions

type CheckOptions struct {
	Instance string // The instance to check against.
	Solution string // The solution to check.
}

Commandline options for the check Mode

func (CheckOptions) Mode

func (o CheckOptions) Mode() Mode

type FetchOptions

type FetchOptions struct {
	Directory string // The directory to store the instances in.
}

Commandline options for the fetch Mode

func (FetchOptions) Mode

func (o FetchOptions) Mode() Mode

type Mode

type Mode int
const (
	CheckMode Mode = iota
	FetchMode
	SolveMode
)

type Options

type Options interface {
	Mode() Mode
}

func Parse

func Parse() Options

type SolveOptions

type SolveOptions struct {
	Instance string // The instance we are solving or checking.
	Solution string // The filename for the resultant solution.
	NIslands int    // The number of islands.
	NSlaves  int    // The number of slaves per island.
	MinPop   int    // The minimum population of each island.
	MaxPop   int    // The maximum population of each island.
	Seed     int64  // The seed for the random number generator.
	Timeout  int    // The timeout in minutes.
}

Commandline options for the solve Mode

func (SolveOptions) Mode

func (o SolveOptions) Mode() Mode

Jump to

Keyboard shortcuts

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