agents

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EOL = "\n" // The POSIX end of line character.
)

Variables

This section is empty.

Functions

func Configurator

func Configurator(directory, filename string) abs.ConfiguratorLike

This constructor creates a new configurator using the specified directory and filename.

func Controller

func Controller(states [][]int) abs.ControllerLike

This constructor creates a new controller using the specified finite state machine and possible event types. It enforces the possible states of the state machine and allowed transitions between states given a finite set of possible event types. It implements a finite state machine with the following table structure:

states: [events, event1,  event2,  ... eventM ]
        [state1, invalid, state2,  ... invalid]
        [state2, state3,  stateN,  ... invalid]
                         ...
        [stateN, state1,  invalid, ... state3 ]

The first row of the state table defines the possible events that can occur. Each subsequent row defines a state and the possible transitions from that state to the next state for each possible event. Transitions marked as "invalid" cannot occur. The second row of the state table defines the initial state of the finite state machine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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