actuators

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actuator

type Actuator interface {
	Plugin
	// NextState should return a set of potential follow-up states for a given state if this actuator would potentially be used.
	NextState(state *common.State, goal *common.State, profiles map[string]common.Profile) ([]common.State, []float64, []planner.Action)
	// Perform should perform those actions of the plan that it is in charge off.
	Perform(state *common.State, plan []planner.Action)
	// Effect should (optionally) recalculate the effect this actuator has for ALL objectives for this workload.
	Effect(state *common.State, profiles map[string]common.Profile)
}

Actuator defines the interface for the actuators.

type Plugin

type Plugin interface {
	// Name of the actuator.
	Name() string
	// Group this actuator is part of.
	Group() string
}

Plugin defines that actuators have names and are grouped.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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