decorators

package
v0.0.0-...-cd5cd87 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUM_ATTEMPTS = "num_attempts"
)
View Source
const (
	NUM_CYCLES = "num_cycles"
)

Variables

This section is empty.

Functions

func NewConsumeQueue

func NewConsumeQueue(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewDelayNode

func NewDelayNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewForceFailureNode

func NewForceFailureNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewForceSuccessNode

func NewForceSuccessNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewInverterNode

func NewInverterNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewKeepRunningUntilFailureNode

func NewKeepRunningUntilFailureNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewLoopNode

func NewLoopNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewPreconditionNode

func NewPreconditionNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewRepeatNode

func NewRepeatNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewRetryNode

func NewRetryNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewRunOnceNode

func NewRunOnceNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewSubTreeNode

func NewSubTreeNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

func NewTimeoutNode

func NewTimeoutNode(name string, cfg *core.NodeConfig, args ...interface{}) core.ITreeNode

Types

type ConsumeQueue

type ConsumeQueue struct {
	*core.DecoratorNode
	// contains filtered or unexported fields
}

func (*ConsumeQueue) Tick

func (n *ConsumeQueue) Tick() core.NodeStatus

type DelayNode

type DelayNode struct {
	*core.DecoratorNode
	// contains filtered or unexported fields
}

func (*DelayNode) Halt

func (n *DelayNode) Halt()

func (*DelayNode) Tick

func (n *DelayNode) Tick() core.NodeStatus

type ForceFailureNode

type ForceFailureNode struct {
	*core.DecoratorNode
}

func (*ForceFailureNode) Tick

func (n *ForceFailureNode) Tick() core.NodeStatus

type ForceSuccessNode

type ForceSuccessNode struct {
	*core.DecoratorNode
}

func (*ForceSuccessNode) Tick

func (n *ForceSuccessNode) Tick() core.NodeStatus

type InverterNode

type InverterNode struct {
	*core.DecoratorNode
}

func (*InverterNode) Tick

func (n *InverterNode) Tick() core.NodeStatus

type KeepRunningUntilFailureNode

type KeepRunningUntilFailureNode struct {
	*core.DecoratorNode
}

func (*KeepRunningUntilFailureNode) Tick

type LoopNode

type LoopNode struct {
	*core.DecoratorNode

	Type reflect.Kind
	// contains filtered or unexported fields
}

func (*LoopNode) Tick

func (n *LoopNode) Tick() core.NodeStatus

type PreconditionNode

type PreconditionNode struct {
	*core.DecoratorNode
	// contains filtered or unexported fields
}

func (*PreconditionNode) Tick

func (n *PreconditionNode) Tick() core.NodeStatus

type RepeatNode

type RepeatNode struct {
	*core.DecoratorNode
	// contains filtered or unexported fields
}

func (*RepeatNode) Halt

func (n *RepeatNode) Halt()

func (*RepeatNode) Tick

func (n *RepeatNode) Tick() core.NodeStatus

type RetryNode

type RetryNode struct {
	*core.DecoratorNode
	// contains filtered or unexported fields
}

func (*RetryNode) Halt

func (n *RetryNode) Halt()

func (*RetryNode) Tick

func (n *RetryNode) Tick() core.NodeStatus

type RunOnceNode

type RunOnceNode struct {
	*core.DecoratorNode
	// contains filtered or unexported fields
}

func (*RunOnceNode) Tick

func (n *RunOnceNode) Tick() core.NodeStatus

------------ implementation ----------------------------

type SubTreeNode

type SubTreeNode struct {
	*core.DecoratorNode
	// contains filtered or unexported fields
}

func (*SubTreeNode) SetSubtreeID

func (n *SubTreeNode) SetSubtreeID(ID string)

func (*SubTreeNode) Tick

func (n *SubTreeNode) Tick() core.NodeStatus

type TimeoutNode

type TimeoutNode struct {
	*core.DecoratorNode
	// contains filtered or unexported fields
}

func (*TimeoutNode) Halt

func (n *TimeoutNode) Halt()

func (*TimeoutNode) Tick

func (n *TimeoutNode) Tick() core.NodeStatus

Jump to

Keyboard shortcuts

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