Documentation ¶
Overview ¶
Package outputgenerators holds generators for all supported output formats.
Index ¶
Constants ¶
const BonnMotionStepFile = "bonnmotion.steps"
The name of the file that the taken steps should be written into.
const CoreEmulabOutput = "experiment.conf"
The name of the file that should be written to
const CoreEmulabTemplate = "experiment.conf"
The name of the template to generate the config
const CoreOutputFile string = "core.xml"
The name of the file where the XML config should be written to
const DebugOutputFile = "debug_out.toml"
The name of the file where the debug output should be dumped to
const ScenarioIdOffset uint = 5
The first id to be assigned inside a scenario
const TemplatesFolder = "templates"
The name of the folder containing the template files for output generators.
const TheOneOutput = "theone_settings.txt"
The name of the file that should be written to
Variables ¶
var BonnMotionExecutable = "bm"
The name of the executable to run BonnMotion.
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.
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
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 }