planner

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name       string
	Properties interface{}
}

Action holds information for a particular action.

type Planner

type Planner interface {
	// CreatePlan creates a plan based on the given current and desired state.
	CreatePlan(current common.State, desired common.State, profiles map[string]common.Profile) []Action
	// ExecutePlan triggers the planner to actually perform the Plan.
	ExecutePlan(common.State, []Action)
	// TriggerEffect triggers all actuators planning actuators to (optionally) reflect on the effect of their actions.
	TriggerEffect(current common.State, profiles map[string]common.Profile)
}

Planner represents the basic interface all planners should adhere too.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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