visual

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlCommand

type ControlCommand struct {
	Type           ControlCommandType
	ConfigOverride any
}

ControlCommand captures a control instruction for the simulator.

type ControlCommandType

type ControlCommandType string

ControlCommandType represents types of control instructions from UI.

const (
	CommandNone   ControlCommandType = "none"
	CommandPause  ControlCommandType = "pause"
	CommandResume ControlCommandType = "resume"
	CommandReset  ControlCommandType = "reset"
	CommandStep   ControlCommandType = "step"
)

type NullVisualizer

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

NullVisualizer is a no-op implementation used for headless mode.

func NewNullVisualizer

func NewNullVisualizer() *NullVisualizer

NewNullVisualizer creates a new NullVisualizer.

func (*NullVisualizer) IsHeadless

func (n *NullVisualizer) IsHeadless() bool

func (*NullVisualizer) NextCommand

func (n *NullVisualizer) NextCommand() (ControlCommand, bool)

func (*NullVisualizer) PublishFrame

func (n *NullVisualizer) PublishFrame(frame any)

func (*NullVisualizer) SetHeadless

func (n *NullVisualizer) SetHeadless(headless bool)

func (*NullVisualizer) WaitCommand

func (n *NullVisualizer) WaitCommand(ctx context.Context) (ControlCommand, bool)

type Visualizer

type Visualizer interface {
	SetHeadless(headless bool)
	IsHeadless() bool
	PublishFrame(frame any)
	NextCommand() (ControlCommand, bool)
	WaitCommand(ctx context.Context) (ControlCommand, bool)
}

Visualizer defines methods for visualization implementations.

Jump to

Keyboard shortcuts

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