api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2016 License: MIT Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(o RunOpts) error

Types

type ExperimentIdentifier

type ExperimentIdentifier struct {
	Name      string  `json:"name"`
	From      float64 `json:"from"`
	To        float64 `json:"to"`
	Increment float64 `json:"increment"`
}

type ExperimentIntegrationFunctions

type ExperimentIntegrationFunctions map[string]string

type ExperimentResource

type ExperimentResource struct {
	Url                  string                         `json:"url"`
	ID                   string                         `json:"id"`
	Source               string                         `json:"source"`
	MaxIterations        uint                           `json:"maxIterations"`
	Tolerance            float64                        `json:"tolerance"`
	Identifier           ExperimentIdentifier           `json:"identifier"`
	IntegrationFunctions ExperimentIntegrationFunctions `json:"integrationFunctions"`
	Solutions            ExperimentSolutions            `json:"solutions"`
	CreatedAt            time.Time                      `json:"createdAt"`
}

type ExperimentSolution

type ExperimentSolution struct {
	ID              string                     `json:"id"`
	IdentifierValue float64                    `json:"identifierValue"`
	FinishedAt      *time.Time                 `json:"finishedAt"`
	Found           *bool                      `json:"found"`
	Errored         *bool                      `json:"errored"`
	Steps           *uint64                    `json:"steps"`
	ExecutionTime   *float64                   `json:"executionTime"`
	Results         *solver.IntegrationResults `json:"results"`
}

type ExperimentSolutions

type ExperimentSolutions []*ExperimentSolution

type RunOpts

type RunOpts struct {
	Port         string
	CompilerSvc  compiler.Service
	RendererSvc  renderer.Service
	SanModelsSvc models.Service
	SolverSvc    solver.Service
}

type SanModelResource

type SanModelResource struct {
	Url             string      `json:"url"`
	ID              string      `json:"id"`
	Title           string      `json:"title"`
	Description     string      `json:"description"`
	Source          string      `json:"source"`
	Hash            string      `json:"hash"`
	TransitionsHash string      `json:"transitionsHash"`
	ParsedModel     interface{} `json:"parsedModel"`
	CreatedAt       time.Time   `json:"createdAt"`
	UpdatedAt       time.Time   `json:"updatedAt"`
	GraphUrl        string      `json:"graphUrl"`
}

type SanModelSummaryResource

type SanModelSummaryResource struct {
	Url       string    `json:"url"`
	ID        string    `json:"id"`
	Title     string    `json:"title"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type SanModelsCollectionResource

type SanModelsCollectionResource []*SanModelSummaryResource

type SolutionResource

type SolutionResource struct {
	Url               string                     `json:"url"`
	ID                string                     `json:"id"`
	Source            string                     `json:"source"`
	MaxIterations     uint                       `json:"maxIterations"`
	Tolerance         float64                    `json:"tolerance"`
	Errored           *bool                      `json:"errored"`
	Found             *bool                      `json:"found"`
	Steps             *uint64                    `json:"steps"`
	ExecutionTime     *float64                   `json:"executionTime"`
	Results           *solver.IntegrationResults `json:"results"`
	CustomIdentifiers solver.CustomIdentifiers   `json:"customIdentifiers"`
	CreatedAt         time.Time                  `json:"createdAt"`
	UpdatedAt         time.Time                  `json:"updatedAt"`
	FinishedAt        *time.Time                 `json:"finishedAt"`
}

Jump to

Keyboard shortcuts

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