ssgen

package
v0.0.0-...-631ac28 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerationJobParameters

type GenerationJobParameters interface {
	GetNodePlotterId() string
	GetNodeCount() int
	GetMinimumDistance() int
	GetMaximumPlotAttempts() int
	GetGridSizeX() int
	GetGridSizeY() int
	GetNodeConnectorId() string
	GetMaximumNodeConnectionCount() int
	GetNameGeneratorId() string
	GetAllowDuplicates() bool
	GetMaximumSampleAttempts() int
}

type Generator

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

func NewGenerator

func NewGenerator(parameters GenerationJobParameters) (Generator, error)

func (*Generator) Generate

func (g *Generator) Generate() (SearchSpace, error)

type Node

type Node struct {
	X           int                `json:"x"`
	Y           int                `json:"y"`
	Connections map[string]float64 `json:"connections"`
}

type SearchSpace

type SearchSpace struct {
	Name                    string                  `json:"name"`
	GenerationDate          time.Time               `json:"generation_date"`
	GenerationDurationMs    int                     `json:"generation_duration_ms"`
	GenerationJobParameters GenerationJobParameters `json:"generation_job_parameters"`
	GridSizeX               int                     `json:"grid_size_x"`
	GridSizeY               int                     `json:"grid_size_y"`
	Nodes                   map[string]Node         `json:"nodes"`
}

Jump to

Keyboard shortcuts

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