outputgenerators

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package outputgenerators holds generators for all supported output formats.

Index

Constants

View Source
const BonnMotionStepFile = "bonnmotion.steps"

The name of the file that the taken steps should be written into.

View Source
const CoreEmulabOutput = "experiment.conf"

The name of the file that should be written to

View Source
const CoreEmulabTemplate = "experiment.conf"

The name of the template to generate the config

View Source
const CoreOutputFile string = "core.xml"

The name of the file where the XML config should be written to

View Source
const DebugOutputFile = "debug_out.toml"

The name of the file where the debug output should be dumped to

View Source
const ScenarioIdOffset uint = 5

The first id to be assigned inside a scenario

View Source
const TemplatesFolder = "templates"

The name of the folder containing the template files for output generators.

View Source
const TheOneOutput = "theone_settings.txt"

The name of the file that should be written to

Variables

View Source
var BonnMotionExecutable = "bm"

The name of the executable to run BonnMotion.

View Source
var TemplatesFS embed.FS

Embed template files into binary.

Functions

This section is empty.

Types

type Bonnmotion

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

The Bonnmotion output generator calles BonnMotion with the correct parameters.

func (Bonnmotion) Generate

func (b Bonnmotion) Generate(exp experiment.Experiment)

Generate generates output for the given Experiment with BonnMotion.

func (Bonnmotion) MovementPatternIsSupported

func (b Bonnmotion) MovementPatternIsSupported(movementPattern movementpatterns.MovementPattern) bool

Returns whether the given MovementPattern is (currently) supported by this output generator.

func (Bonnmotion) String

func (Bonnmotion) String() string

func (Bonnmotion) TargetIsSupported

func (b Bonnmotion) TargetIsSupported(t experiment.Target) bool

Returns whether the given Target is (currently) supported by this output generator.

type Core

type Core struct{}

The Core output generator generates a XML configuration file for CORE.

func (Core) Generate

func (c Core) Generate(exp experiment.Experiment)

Generate generates the XML configuration for CORE for a given Experiment.

func (Core) String

func (Core) String() string

type CoreEmulab

type CoreEmulab struct{}

func (CoreEmulab) Generate

func (c CoreEmulab) Generate(exp experiment.Experiment)

generates a conf configuartion for CoreEmulab with a given experiment

func (CoreEmulab) String

func (CoreEmulab) String() string

type Debug

type Debug struct{}

Debug output generator dumps the experiment config as TOML for debug purposes.

func (Debug) Generate

func (Debug) Generate(exp experiment.Experiment)

Generate outputs the given Experiment as TOML to the file debug_out.toml

func (Debug) String

func (Debug) String() string

type OutputGenerator

type OutputGenerator interface {
	// Generate takes a Experiment and generates the output in the given format
	// and writes in the appropriate files or executes the correct function call.
	Generate(experiment.Experiment)
	String() string
}

type TheOne

type TheOne struct{}

func (TheOne) Generate

func (t TheOne) Generate(exp experiment.Experiment)

generates a txt for Theone with a given experiment

func (TheOne) String

func (TheOne) String() string

Jump to

Keyboard shortcuts

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