blueprint

package
v2.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Config_PortType_Exec    = "exec"
	Config_PortType_Data    = "data"
	Config_DataType_Int     = "int"
	Config_DataType_Integer = "integer"
	Config_DataType_Float   = "float"
	Config_DataType_Str     = "string"
	Config_DataType_Boolean = "boolean"
	Config_DataType_Bool    = "bool"
	Config_DataType_Array   = "array"
)
View Source
const (
	EntranceID_IntParam   = 1
	EntranceID_ArrayParam = 2
	EntranceID_Timer      = 3
)

系统入口ID定义,1000以内

View Source
const (
	Entrance = "Entrance_"
)

格式说明Entrance_ID

View Source
const GetVariables = "GetVar"
View Source
const ReturnVarial = "g_Return"
View Source
const SetVariables = "SetVar"

Variables

This section is empty.

Functions

func RegExecNode

func RegExecNode(exec IExecNode)

Types

type AddInt

type AddInt struct {
	BaseExecNode
}

AddInt 加(int)

func (AddInt) AppendInPort

func (em AddInt) AppendInPort(port ...IPort)

func (AddInt) AppendOutPort

func (em AddInt) AppendOutPort(port ...IPort)

func (AddInt) CloneInOutPort

func (em AddInt) CloneInOutPort() ([]IPort, []IPort)

func (*AddInt) Exec

func (em *AddInt) Exec() (int, error)

func (AddInt) GetInPortCount

func (em AddInt) GetInPortCount() int

func (AddInt) GetInPortParamStartIndex

func (em AddInt) GetInPortParamStartIndex() int

func (*AddInt) GetName

func (em *AddInt) GetName() string

func (AddInt) GetOutPortCount

func (em AddInt) GetOutPortCount() int

func (AddInt) GetOutPortParamStartIndex

func (em AddInt) GetOutPortParamStartIndex() int

func (AddInt) IsInPortExec

func (em AddInt) IsInPortExec(index int) bool

func (AddInt) IsOutPortExec

func (em AddInt) IsOutPortExec(index int) bool

func (AddInt) SetExec

func (em AddInt) SetExec(exec IExecNode)

type AppendIntegerToArray

type AppendIntegerToArray struct {
	BaseExecNode
}

AppendIntegerToArray 数组追加整型

func (AppendIntegerToArray) AppendInPort

func (em AppendIntegerToArray) AppendInPort(port ...IPort)

func (AppendIntegerToArray) AppendOutPort

func (em AppendIntegerToArray) AppendOutPort(port ...IPort)

func (AppendIntegerToArray) CloneInOutPort

func (em AppendIntegerToArray) CloneInOutPort() ([]IPort, []IPort)

func (*AppendIntegerToArray) Exec

func (em *AppendIntegerToArray) Exec() (int, error)

func (AppendIntegerToArray) GetInPortCount

func (em AppendIntegerToArray) GetInPortCount() int

func (AppendIntegerToArray) GetInPortParamStartIndex

func (em AppendIntegerToArray) GetInPortParamStartIndex() int

func (*AppendIntegerToArray) GetName

func (em *AppendIntegerToArray) GetName() string

func (AppendIntegerToArray) GetOutPortCount

func (em AppendIntegerToArray) GetOutPortCount() int

func (AppendIntegerToArray) GetOutPortParamStartIndex

func (em AppendIntegerToArray) GetOutPortParamStartIndex() int

func (AppendIntegerToArray) IsInPortExec

func (em AppendIntegerToArray) IsInPortExec(index int) bool

func (AppendIntegerToArray) IsOutPortExec

func (em AppendIntegerToArray) IsOutPortExec(index int) bool

func (AppendIntegerToArray) SetExec

func (em AppendIntegerToArray) SetExec(exec IExecNode)

type AppendStringToArray

type AppendStringToArray struct {
	BaseExecNode
}

AppendStringToArray 数组追加字符串

func (AppendStringToArray) AppendInPort

func (em AppendStringToArray) AppendInPort(port ...IPort)

func (AppendStringToArray) AppendOutPort

func (em AppendStringToArray) AppendOutPort(port ...IPort)

func (AppendStringToArray) CloneInOutPort

func (em AppendStringToArray) CloneInOutPort() ([]IPort, []IPort)

func (*AppendStringToArray) Exec

func (em *AppendStringToArray) Exec() (int, error)

func (AppendStringToArray) GetInPortCount

func (em AppendStringToArray) GetInPortCount() int

func (AppendStringToArray) GetInPortParamStartIndex

func (em AppendStringToArray) GetInPortParamStartIndex() int

func (*AppendStringToArray) GetName

func (em *AppendStringToArray) GetName() string

func (AppendStringToArray) GetOutPortCount

func (em AppendStringToArray) GetOutPortCount() int

func (AppendStringToArray) GetOutPortParamStartIndex

func (em AppendStringToArray) GetOutPortParamStartIndex() int

func (AppendStringToArray) IsInPortExec

func (em AppendStringToArray) IsInPortExec(index int) bool

func (AppendStringToArray) IsOutPortExec

func (em AppendStringToArray) IsOutPortExec(index int) bool

func (AppendStringToArray) SetExec

func (em AppendStringToArray) SetExec(exec IExecNode)

type ArrayData

type ArrayData struct {
	IntVal int64
	StrVal string
}

type ArrayElement

type ArrayElement struct {
	IntVal int64
	StrVal string
}

type BaseExecConfig

type BaseExecConfig struct {
	Name        string           `json:"name"`
	Title       string           `json:"title"`
	Package     string           `json:"package"`
	Description string           `json:"description"`
	IsPure      bool             `json:"is_pure"`
	Inputs      []InputConfig    `json:"inputs"`
	Outputs     []OutInputConfig `json:"outputs"`
}

type BaseExecNode

type BaseExecNode struct {

	// 执行时初始化的数据
	*ExecContext
	// contains filtered or unexported fields
}

func (BaseExecNode) AppendInPort

func (em BaseExecNode) AppendInPort(port ...IPort)

func (*BaseExecNode) AppendInPortArrayValInt

func (en *BaseExecNode) AppendInPortArrayValInt(index int, val Port_Int) bool

func (*BaseExecNode) AppendInPortArrayValStr

func (en *BaseExecNode) AppendInPortArrayValStr(index int, val Port_Str) bool

func (BaseExecNode) AppendOutPort

func (em BaseExecNode) AppendOutPort(port ...IPort)

func (*BaseExecNode) AppendOutPortArrayValInt

func (en *BaseExecNode) AppendOutPortArrayValInt(index int, val Port_Int) bool

func (*BaseExecNode) AppendOutPortArrayValStr

func (en *BaseExecNode) AppendOutPortArrayValStr(index int, val Port_Str) bool

func (BaseExecNode) CloneInOutPort

func (em BaseExecNode) CloneInOutPort() ([]IPort, []IPort)

func (*BaseExecNode) DoNext

func (en *BaseExecNode) DoNext(index int) error

func (*BaseExecNode) GetBluePrintModule

func (en *BaseExecNode) GetBluePrintModule() IBlueprintModule

func (*BaseExecNode) GetBlueprintModule

func (en *BaseExecNode) GetBlueprintModule() IBlueprintModule

func (*BaseExecNode) GetInPort

func (en *BaseExecNode) GetInPort(index int) IPort

func (*BaseExecNode) GetInPortArray

func (en *BaseExecNode) GetInPortArray(index int) (Port_Array, bool)

func (*BaseExecNode) GetInPortArrayLen

func (en *BaseExecNode) GetInPortArrayLen(index int) Port_Int

func (*BaseExecNode) GetInPortArrayValInt

func (en *BaseExecNode) GetInPortArrayValInt(index int, idx int) (Port_Int, bool)

func (*BaseExecNode) GetInPortArrayValStr

func (en *BaseExecNode) GetInPortArrayValStr(idx int) (Port_Str, bool)

func (*BaseExecNode) GetInPortBool

func (en *BaseExecNode) GetInPortBool(index int) (Port_Bool, bool)

func (BaseExecNode) GetInPortCount

func (em BaseExecNode) GetInPortCount() int

func (*BaseExecNode) GetInPortFloat

func (en *BaseExecNode) GetInPortFloat(index int) (Port_Float, bool)

func (*BaseExecNode) GetInPortInt

func (en *BaseExecNode) GetInPortInt(index int) (Port_Int, bool)

func (BaseExecNode) GetInPortParamStartIndex

func (em BaseExecNode) GetInPortParamStartIndex() int

func (*BaseExecNode) GetInPortStr

func (en *BaseExecNode) GetInPortStr(index int) (Port_Str, bool)

func (BaseExecNode) GetName

func (em BaseExecNode) GetName() string

func (*BaseExecNode) GetNextExecLen

func (en *BaseExecNode) GetNextExecLen() int

func (*BaseExecNode) GetOutPort

func (en *BaseExecNode) GetOutPort(index int) IPort

func (*BaseExecNode) GetOutPortArrayLen

func (en *BaseExecNode) GetOutPortArrayLen(index int) Port_Int

func (*BaseExecNode) GetOutPortArrayValInt

func (en *BaseExecNode) GetOutPortArrayValInt(index int, idx int) (Port_Int, bool)

func (*BaseExecNode) GetOutPortArrayValStr

func (en *BaseExecNode) GetOutPortArrayValStr(index int, idx int) (Port_Str, bool)

func (*BaseExecNode) GetOutPortBool

func (en *BaseExecNode) GetOutPortBool(index int) (Port_Bool, bool)

func (BaseExecNode) GetOutPortCount

func (em BaseExecNode) GetOutPortCount() int

func (*BaseExecNode) GetOutPortFloat

func (en *BaseExecNode) GetOutPortFloat(index int) (Port_Float, bool)

func (*BaseExecNode) GetOutPortInt

func (en *BaseExecNode) GetOutPortInt(index int) (Port_Int, bool)

func (BaseExecNode) GetOutPortParamStartIndex

func (em BaseExecNode) GetOutPortParamStartIndex() int

func (*BaseExecNode) GetOutPortStr

func (en *BaseExecNode) GetOutPortStr(index int) (Port_Str, bool)

func (*BaseExecNode) GetPorts

func (en *BaseExecNode) GetPorts() ([]IPort, []IPort)

func (BaseExecNode) IsInPortExec

func (em BaseExecNode) IsInPortExec(index int) bool

func (BaseExecNode) IsOutPortExec

func (em BaseExecNode) IsOutPortExec(index int) bool

func (BaseExecNode) SetExec

func (em BaseExecNode) SetExec(exec IExecNode)

func (*BaseExecNode) SetInBool

func (en *BaseExecNode) SetInBool(index int, val Port_Bool) bool

func (*BaseExecNode) SetInPortArrayValInt

func (en *BaseExecNode) SetInPortArrayValInt(index int, idx int, val Port_Int) bool

func (*BaseExecNode) SetInPortArrayValStr

func (en *BaseExecNode) SetInPortArrayValStr(index int, idx int, val Port_Str) bool

func (*BaseExecNode) SetInPortFloat

func (en *BaseExecNode) SetInPortFloat(index int, val Port_Float) bool

func (*BaseExecNode) SetInPortInt

func (en *BaseExecNode) SetInPortInt(index int, val Port_Int) bool

func (*BaseExecNode) SetInPortStr

func (en *BaseExecNode) SetInPortStr(index int, val Port_Str) bool

func (*BaseExecNode) SetOutPort

func (en *BaseExecNode) SetOutPort(index int, val IPort) bool

func (*BaseExecNode) SetOutPortArrayValInt

func (en *BaseExecNode) SetOutPortArrayValInt(index int, idx int, val Port_Int) bool

func (*BaseExecNode) SetOutPortArrayValStr

func (en *BaseExecNode) SetOutPortArrayValStr(index int, idx int, val Port_Str) bool

func (*BaseExecNode) SetOutPortBool

func (en *BaseExecNode) SetOutPortBool(index int, val Port_Bool) bool

func (*BaseExecNode) SetOutPortFloat

func (en *BaseExecNode) SetOutPortFloat(index int, val Port_Float) bool

func (*BaseExecNode) SetOutPortInt

func (en *BaseExecNode) SetOutPortInt(index int, val Port_Int) bool

func (*BaseExecNode) SetOutPortStr

func (en *BaseExecNode) SetOutPortStr(index int, val Port_Str) bool

type Blueprint

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

func (*Blueprint) CancelTimerId

func (bm *Blueprint) CancelTimerId(graphID int64, timerId *uint64) bool

func (*Blueprint) Create

func (bm *Blueprint) Create(graphName string) int64

func (*Blueprint) Do

func (bm *Blueprint) Do(graphID int64, entranceID int64, args ...any) (Port_Array, error)

func (*Blueprint) Init

func (bm *Blueprint) Init(execDefFilePath string, graphFilePath string, blueprintModule IBlueprintModule, cancelTimer func(*uint64) bool) error

func (*Blueprint) ReleaseGraph

func (bm *Blueprint) ReleaseGraph(graphID int64)

func (*Blueprint) TriggerEvent

func (bm *Blueprint) TriggerEvent(graphID int64, eventID int64, args ...any) error

type BoolIf

type BoolIf struct {
	BaseExecNode
}

BoolIf 布尔判断

func (BoolIf) AppendInPort

func (em BoolIf) AppendInPort(port ...IPort)

func (BoolIf) AppendOutPort

func (em BoolIf) AppendOutPort(port ...IPort)

func (BoolIf) CloneInOutPort

func (em BoolIf) CloneInOutPort() ([]IPort, []IPort)

func (*BoolIf) Exec

func (em *BoolIf) Exec() (int, error)

func (BoolIf) GetInPortCount

func (em BoolIf) GetInPortCount() int

func (BoolIf) GetInPortParamStartIndex

func (em BoolIf) GetInPortParamStartIndex() int

func (*BoolIf) GetName

func (em *BoolIf) GetName() string

func (BoolIf) GetOutPortCount

func (em BoolIf) GetOutPortCount() int

func (BoolIf) GetOutPortParamStartIndex

func (em BoolIf) GetOutPortParamStartIndex() int

func (BoolIf) IsInPortExec

func (em BoolIf) IsInPortExec(index int) bool

func (BoolIf) IsOutPortExec

func (em BoolIf) IsOutPortExec(index int) bool

func (BoolIf) SetExec

func (em BoolIf) SetExec(exec IExecNode)

type CloseTimer

type CloseTimer struct {
	BaseExecNode
}

CloseTimer 关闭定时器

func (CloseTimer) AppendInPort

func (em CloseTimer) AppendInPort(port ...IPort)

func (CloseTimer) AppendOutPort

func (em CloseTimer) AppendOutPort(port ...IPort)

func (CloseTimer) CloneInOutPort

func (em CloseTimer) CloneInOutPort() ([]IPort, []IPort)

func (*CloseTimer) Exec

func (em *CloseTimer) Exec() (int, error)

func (CloseTimer) GetInPortCount

func (em CloseTimer) GetInPortCount() int

func (CloseTimer) GetInPortParamStartIndex

func (em CloseTimer) GetInPortParamStartIndex() int

func (*CloseTimer) GetName

func (em *CloseTimer) GetName() string

func (CloseTimer) GetOutPortCount

func (em CloseTimer) GetOutPortCount() int

func (CloseTimer) GetOutPortParamStartIndex

func (em CloseTimer) GetOutPortParamStartIndex() int

func (CloseTimer) IsInPortExec

func (em CloseTimer) IsInPortExec(index int) bool

func (CloseTimer) IsOutPortExec

func (em CloseTimer) IsOutPortExec(index int) bool

func (CloseTimer) SetExec

func (em CloseTimer) SetExec(exec IExecNode)

type CreateIntArray

type CreateIntArray struct {
	BaseExecNode
}

CreateIntArray 创建整型数组

func (CreateIntArray) AppendInPort

func (em CreateIntArray) AppendInPort(port ...IPort)

func (CreateIntArray) AppendOutPort

func (em CreateIntArray) AppendOutPort(port ...IPort)

func (CreateIntArray) CloneInOutPort

func (em CreateIntArray) CloneInOutPort() ([]IPort, []IPort)

func (*CreateIntArray) Exec

func (em *CreateIntArray) Exec() (int, error)

func (CreateIntArray) GetInPortCount

func (em CreateIntArray) GetInPortCount() int

func (CreateIntArray) GetInPortParamStartIndex

func (em CreateIntArray) GetInPortParamStartIndex() int

func (*CreateIntArray) GetName

func (em *CreateIntArray) GetName() string

func (CreateIntArray) GetOutPortCount

func (em CreateIntArray) GetOutPortCount() int

func (CreateIntArray) GetOutPortParamStartIndex

func (em CreateIntArray) GetOutPortParamStartIndex() int

func (CreateIntArray) IsInPortExec

func (em CreateIntArray) IsInPortExec(index int) bool

func (CreateIntArray) IsOutPortExec

func (em CreateIntArray) IsOutPortExec(index int) bool

func (CreateIntArray) SetExec

func (em CreateIntArray) SetExec(exec IExecNode)

type CreateStringArray

type CreateStringArray struct {
	BaseExecNode
}

CreateStringArray 创建字符串数组

func (CreateStringArray) AppendInPort

func (em CreateStringArray) AppendInPort(port ...IPort)

func (CreateStringArray) AppendOutPort

func (em CreateStringArray) AppendOutPort(port ...IPort)

func (CreateStringArray) CloneInOutPort

func (em CreateStringArray) CloneInOutPort() ([]IPort, []IPort)

func (*CreateStringArray) Exec

func (em *CreateStringArray) Exec() (int, error)

func (CreateStringArray) GetInPortCount

func (em CreateStringArray) GetInPortCount() int

func (CreateStringArray) GetInPortParamStartIndex

func (em CreateStringArray) GetInPortParamStartIndex() int

func (*CreateStringArray) GetName

func (em *CreateStringArray) GetName() string

func (CreateStringArray) GetOutPortCount

func (em CreateStringArray) GetOutPortCount() int

func (CreateStringArray) GetOutPortParamStartIndex

func (em CreateStringArray) GetOutPortParamStartIndex() int

func (CreateStringArray) IsInPortExec

func (em CreateStringArray) IsInPortExec(index int) bool

func (CreateStringArray) IsOutPortExec

func (em CreateStringArray) IsOutPortExec(index int) bool

func (CreateStringArray) SetExec

func (em CreateStringArray) SetExec(exec IExecNode)

type CreateTimer

type CreateTimer struct {
	BaseExecNode
}

CreateTimer 创建定时器

func (CreateTimer) AppendInPort

func (em CreateTimer) AppendInPort(port ...IPort)

func (CreateTimer) AppendOutPort

func (em CreateTimer) AppendOutPort(port ...IPort)

func (CreateTimer) CloneInOutPort

func (em CreateTimer) CloneInOutPort() ([]IPort, []IPort)

func (*CreateTimer) Exec

func (em *CreateTimer) Exec() (int, error)

func (CreateTimer) GetInPortCount

func (em CreateTimer) GetInPortCount() int

func (CreateTimer) GetInPortParamStartIndex

func (em CreateTimer) GetInPortParamStartIndex() int

func (*CreateTimer) GetName

func (em *CreateTimer) GetName() string

func (CreateTimer) GetOutPortCount

func (em CreateTimer) GetOutPortCount() int

func (CreateTimer) GetOutPortParamStartIndex

func (em CreateTimer) GetOutPortParamStartIndex() int

func (CreateTimer) IsInPortExec

func (em CreateTimer) IsInPortExec(index int) bool

func (CreateTimer) IsOutPortExec

func (em CreateTimer) IsOutPortExec(index int) bool

func (CreateTimer) SetExec

func (em CreateTimer) SetExec(exec IExecNode)

type DivInt

type DivInt struct {
	BaseExecNode
}

DivInt 除(int)

func (DivInt) AppendInPort

func (em DivInt) AppendInPort(port ...IPort)

func (DivInt) AppendOutPort

func (em DivInt) AppendOutPort(port ...IPort)

func (DivInt) CloneInOutPort

func (em DivInt) CloneInOutPort() ([]IPort, []IPort)

func (*DivInt) Exec

func (em *DivInt) Exec() (int, error)

func (DivInt) GetInPortCount

func (em DivInt) GetInPortCount() int

func (DivInt) GetInPortParamStartIndex

func (em DivInt) GetInPortParamStartIndex() int

func (*DivInt) GetName

func (em *DivInt) GetName() string

func (DivInt) GetOutPortCount

func (em DivInt) GetOutPortCount() int

func (DivInt) GetOutPortParamStartIndex

func (em DivInt) GetOutPortParamStartIndex() int

func (DivInt) IsInPortExec

func (em DivInt) IsInPortExec(index int) bool

func (DivInt) IsOutPortExec

func (em DivInt) IsOutPortExec(index int) bool

func (DivInt) SetExec

func (em DivInt) SetExec(exec IExecNode)

type Entrance_ArrayParam

type Entrance_ArrayParam struct {
	BaseExecNode
}

func (Entrance_ArrayParam) AppendInPort

func (em Entrance_ArrayParam) AppendInPort(port ...IPort)

func (Entrance_ArrayParam) AppendOutPort

func (em Entrance_ArrayParam) AppendOutPort(port ...IPort)

func (Entrance_ArrayParam) CloneInOutPort

func (em Entrance_ArrayParam) CloneInOutPort() ([]IPort, []IPort)

func (*Entrance_ArrayParam) Exec

func (em *Entrance_ArrayParam) Exec() (int, error)

func (Entrance_ArrayParam) GetInPortCount

func (em Entrance_ArrayParam) GetInPortCount() int

func (Entrance_ArrayParam) GetInPortParamStartIndex

func (em Entrance_ArrayParam) GetInPortParamStartIndex() int

func (*Entrance_ArrayParam) GetName

func (em *Entrance_ArrayParam) GetName() string

func (Entrance_ArrayParam) GetOutPortCount

func (em Entrance_ArrayParam) GetOutPortCount() int

func (Entrance_ArrayParam) GetOutPortParamStartIndex

func (em Entrance_ArrayParam) GetOutPortParamStartIndex() int

func (Entrance_ArrayParam) IsInPortExec

func (em Entrance_ArrayParam) IsInPortExec(index int) bool

func (Entrance_ArrayParam) IsOutPortExec

func (em Entrance_ArrayParam) IsOutPortExec(index int) bool

func (Entrance_ArrayParam) SetExec

func (em Entrance_ArrayParam) SetExec(exec IExecNode)

type Entrance_IntParam

type Entrance_IntParam struct {
	BaseExecNode
}

func (Entrance_IntParam) AppendInPort

func (em Entrance_IntParam) AppendInPort(port ...IPort)

func (Entrance_IntParam) AppendOutPort

func (em Entrance_IntParam) AppendOutPort(port ...IPort)

func (Entrance_IntParam) CloneInOutPort

func (em Entrance_IntParam) CloneInOutPort() ([]IPort, []IPort)

func (*Entrance_IntParam) Exec

func (em *Entrance_IntParam) Exec() (int, error)

func (Entrance_IntParam) GetInPortCount

func (em Entrance_IntParam) GetInPortCount() int

func (Entrance_IntParam) GetInPortParamStartIndex

func (em Entrance_IntParam) GetInPortParamStartIndex() int

func (*Entrance_IntParam) GetName

func (em *Entrance_IntParam) GetName() string

func (Entrance_IntParam) GetOutPortCount

func (em Entrance_IntParam) GetOutPortCount() int

func (Entrance_IntParam) GetOutPortParamStartIndex

func (em Entrance_IntParam) GetOutPortParamStartIndex() int

func (Entrance_IntParam) IsInPortExec

func (em Entrance_IntParam) IsInPortExec(index int) bool

func (Entrance_IntParam) IsOutPortExec

func (em Entrance_IntParam) IsOutPortExec(index int) bool

func (Entrance_IntParam) SetExec

func (em Entrance_IntParam) SetExec(exec IExecNode)

type Entrance_Timer

type Entrance_Timer struct {
	BaseExecNode
}

func (Entrance_Timer) AppendInPort

func (em Entrance_Timer) AppendInPort(port ...IPort)

func (Entrance_Timer) AppendOutPort

func (em Entrance_Timer) AppendOutPort(port ...IPort)

func (Entrance_Timer) CloneInOutPort

func (em Entrance_Timer) CloneInOutPort() ([]IPort, []IPort)

func (*Entrance_Timer) Exec

func (em *Entrance_Timer) Exec() (int, error)

func (Entrance_Timer) GetInPortCount

func (em Entrance_Timer) GetInPortCount() int

func (Entrance_Timer) GetInPortParamStartIndex

func (em Entrance_Timer) GetInPortParamStartIndex() int

func (*Entrance_Timer) GetName

func (em *Entrance_Timer) GetName() string

func (Entrance_Timer) GetOutPortCount

func (em Entrance_Timer) GetOutPortCount() int

func (Entrance_Timer) GetOutPortParamStartIndex

func (em Entrance_Timer) GetOutPortParamStartIndex() int

func (Entrance_Timer) IsInPortExec

func (em Entrance_Timer) IsInPortExec(index int) bool

func (Entrance_Timer) IsOutPortExec

func (em Entrance_Timer) IsOutPortExec(index int) bool

func (Entrance_Timer) SetExec

func (em Entrance_Timer) SetExec(exec IExecNode)

type EqualInteger

type EqualInteger struct {
	BaseExecNode
}

EqualInteger 等于(整型)==

func (EqualInteger) AppendInPort

func (em EqualInteger) AppendInPort(port ...IPort)

func (EqualInteger) AppendOutPort

func (em EqualInteger) AppendOutPort(port ...IPort)

func (EqualInteger) CloneInOutPort

func (em EqualInteger) CloneInOutPort() ([]IPort, []IPort)

func (*EqualInteger) Exec

func (em *EqualInteger) Exec() (int, error)

func (EqualInteger) GetInPortCount

func (em EqualInteger) GetInPortCount() int

func (EqualInteger) GetInPortParamStartIndex

func (em EqualInteger) GetInPortParamStartIndex() int

func (*EqualInteger) GetName

func (em *EqualInteger) GetName() string

func (EqualInteger) GetOutPortCount

func (em EqualInteger) GetOutPortCount() int

func (EqualInteger) GetOutPortParamStartIndex

func (em EqualInteger) GetOutPortParamStartIndex() int

func (EqualInteger) IsInPortExec

func (em EqualInteger) IsInPortExec(index int) bool

func (EqualInteger) IsOutPortExec

func (em EqualInteger) IsOutPortExec(index int) bool

func (EqualInteger) SetExec

func (em EqualInteger) SetExec(exec IExecNode)

type ExecContext

type ExecContext struct {
	InputPorts  []IPort
	OutputPorts []IPort
}

func (*ExecContext) Reset

func (ec *ExecContext) Reset()

type ExecPool

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

func (*ExecPool) GetExec

func (em *ExecPool) GetExec(name string) IInnerExecNode

func (*ExecPool) Load

func (em *ExecPool) Load(execDefFilePath string) error

func (*ExecPool) Register

func (em *ExecPool) Register(exec IExecNode) bool

type Foreach

type Foreach struct {
	BaseExecNode
}

func (Foreach) AppendInPort

func (em Foreach) AppendInPort(port ...IPort)

func (Foreach) AppendOutPort

func (em Foreach) AppendOutPort(port ...IPort)

func (Foreach) CloneInOutPort

func (em Foreach) CloneInOutPort() ([]IPort, []IPort)

func (*Foreach) Exec

func (em *Foreach) Exec() (int, error)

func (Foreach) GetInPortCount

func (em Foreach) GetInPortCount() int

func (Foreach) GetInPortParamStartIndex

func (em Foreach) GetInPortParamStartIndex() int

func (*Foreach) GetName

func (em *Foreach) GetName() string

func (Foreach) GetOutPortCount

func (em Foreach) GetOutPortCount() int

func (Foreach) GetOutPortParamStartIndex

func (em Foreach) GetOutPortParamStartIndex() int

func (Foreach) IsInPortExec

func (em Foreach) IsInPortExec(index int) bool

func (Foreach) IsOutPortExec

func (em Foreach) IsOutPortExec(index int) bool

func (Foreach) SetExec

func (em Foreach) SetExec(exec IExecNode)

type GetArrayInt

type GetArrayInt struct {
	BaseExecNode
}

func (GetArrayInt) AppendInPort

func (em GetArrayInt) AppendInPort(port ...IPort)

func (GetArrayInt) AppendOutPort

func (em GetArrayInt) AppendOutPort(port ...IPort)

func (GetArrayInt) CloneInOutPort

func (em GetArrayInt) CloneInOutPort() ([]IPort, []IPort)

func (*GetArrayInt) Exec

func (em *GetArrayInt) Exec() (int, error)

func (GetArrayInt) GetInPortCount

func (em GetArrayInt) GetInPortCount() int

func (GetArrayInt) GetInPortParamStartIndex

func (em GetArrayInt) GetInPortParamStartIndex() int

func (*GetArrayInt) GetName

func (em *GetArrayInt) GetName() string

func (GetArrayInt) GetOutPortCount

func (em GetArrayInt) GetOutPortCount() int

func (GetArrayInt) GetOutPortParamStartIndex

func (em GetArrayInt) GetOutPortParamStartIndex() int

func (GetArrayInt) IsInPortExec

func (em GetArrayInt) IsInPortExec(index int) bool

func (GetArrayInt) IsOutPortExec

func (em GetArrayInt) IsOutPortExec(index int) bool

func (GetArrayInt) SetExec

func (em GetArrayInt) SetExec(exec IExecNode)

type GetArrayLen

type GetArrayLen struct {
	BaseExecNode
}

func (GetArrayLen) AppendInPort

func (em GetArrayLen) AppendInPort(port ...IPort)

func (GetArrayLen) AppendOutPort

func (em GetArrayLen) AppendOutPort(port ...IPort)

func (GetArrayLen) CloneInOutPort

func (em GetArrayLen) CloneInOutPort() ([]IPort, []IPort)

func (*GetArrayLen) Exec

func (em *GetArrayLen) Exec() (int, error)

func (GetArrayLen) GetInPortCount

func (em GetArrayLen) GetInPortCount() int

func (GetArrayLen) GetInPortParamStartIndex

func (em GetArrayLen) GetInPortParamStartIndex() int

func (*GetArrayLen) GetName

func (em *GetArrayLen) GetName() string

func (GetArrayLen) GetOutPortCount

func (em GetArrayLen) GetOutPortCount() int

func (GetArrayLen) GetOutPortParamStartIndex

func (em GetArrayLen) GetOutPortParamStartIndex() int

func (GetArrayLen) IsInPortExec

func (em GetArrayLen) IsInPortExec(index int) bool

func (GetArrayLen) IsOutPortExec

func (em GetArrayLen) IsOutPortExec(index int) bool

func (GetArrayLen) SetExec

func (em GetArrayLen) SetExec(exec IExecNode)

type GetArrayString

type GetArrayString struct {
	BaseExecNode
}

func (GetArrayString) AppendInPort

func (em GetArrayString) AppendInPort(port ...IPort)

func (GetArrayString) AppendOutPort

func (em GetArrayString) AppendOutPort(port ...IPort)

func (GetArrayString) CloneInOutPort

func (em GetArrayString) CloneInOutPort() ([]IPort, []IPort)

func (*GetArrayString) Exec

func (em *GetArrayString) Exec() (int, error)

func (GetArrayString) GetInPortCount

func (em GetArrayString) GetInPortCount() int

func (GetArrayString) GetInPortParamStartIndex

func (em GetArrayString) GetInPortParamStartIndex() int

func (*GetArrayString) GetName

func (em *GetArrayString) GetName() string

func (GetArrayString) GetOutPortCount

func (em GetArrayString) GetOutPortCount() int

func (GetArrayString) GetOutPortParamStartIndex

func (em GetArrayString) GetOutPortParamStartIndex() int

func (GetArrayString) IsInPortExec

func (em GetArrayString) IsInPortExec(index int) bool

func (GetArrayString) IsOutPortExec

func (em GetArrayString) IsOutPortExec(index int) bool

func (GetArrayString) SetExec

func (em GetArrayString) SetExec(exec IExecNode)

type GetVariablesNode

type GetVariablesNode struct {
	BaseExecNode
	// contains filtered or unexported fields
}

func (GetVariablesNode) AppendInPort

func (em GetVariablesNode) AppendInPort(port ...IPort)

func (GetVariablesNode) AppendOutPort

func (em GetVariablesNode) AppendOutPort(port ...IPort)

func (GetVariablesNode) CloneInOutPort

func (em GetVariablesNode) CloneInOutPort() ([]IPort, []IPort)

func (*GetVariablesNode) Exec

func (g *GetVariablesNode) Exec() (int, error)

func (GetVariablesNode) GetInPortCount

func (em GetVariablesNode) GetInPortCount() int

func (GetVariablesNode) GetInPortParamStartIndex

func (em GetVariablesNode) GetInPortParamStartIndex() int

func (*GetVariablesNode) GetName

func (g *GetVariablesNode) GetName() string

func (GetVariablesNode) GetOutPortCount

func (em GetVariablesNode) GetOutPortCount() int

func (GetVariablesNode) GetOutPortParamStartIndex

func (em GetVariablesNode) GetOutPortParamStartIndex() int

func (GetVariablesNode) IsInPortExec

func (em GetVariablesNode) IsInPortExec(index int) bool

func (GetVariablesNode) IsOutPortExec

func (em GetVariablesNode) IsOutPortExec(index int) bool

func (GetVariablesNode) SetExec

func (em GetVariablesNode) SetExec(exec IExecNode)

type Graph

type Graph struct {
	IBlueprintModule
	// contains filtered or unexported fields
}

func (*Graph) Do

func (gr *Graph) Do(entranceID int64, args ...any) (Port_Array, error)

func (*Graph) GetNodeInPortValue

func (gr *Graph) GetNodeInPortValue(nodeID string, inPortIndex int) IPort

func (*Graph) GetNodeOutPortValue

func (gr *Graph) GetNodeOutPortValue(nodeID string, outPortIndex int) IPort

func (*Graph) Release

func (gr *Graph) Release()

type GraphPool

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

func (*GraphPool) Create

func (gp *GraphPool) Create(graphName string, graphID int64) IGraph

func (*GraphPool) Load

func (gp *GraphPool) Load(execPool *ExecPool, graphFilePath string, blueprintModule IBlueprintModule) error

type GreaterThanInteger

type GreaterThanInteger struct {
	BaseExecNode
}

GreaterThanInteger 大于(整型) >

func (GreaterThanInteger) AppendInPort

func (em GreaterThanInteger) AppendInPort(port ...IPort)

func (GreaterThanInteger) AppendOutPort

func (em GreaterThanInteger) AppendOutPort(port ...IPort)

func (GreaterThanInteger) CloneInOutPort

func (em GreaterThanInteger) CloneInOutPort() ([]IPort, []IPort)

func (*GreaterThanInteger) Exec

func (em *GreaterThanInteger) Exec() (int, error)

func (GreaterThanInteger) GetInPortCount

func (em GreaterThanInteger) GetInPortCount() int

func (GreaterThanInteger) GetInPortParamStartIndex

func (em GreaterThanInteger) GetInPortParamStartIndex() int

func (*GreaterThanInteger) GetName

func (em *GreaterThanInteger) GetName() string

func (GreaterThanInteger) GetOutPortCount

func (em GreaterThanInteger) GetOutPortCount() int

func (GreaterThanInteger) GetOutPortParamStartIndex

func (em GreaterThanInteger) GetOutPortParamStartIndex() int

func (GreaterThanInteger) IsInPortExec

func (em GreaterThanInteger) IsInPortExec(index int) bool

func (GreaterThanInteger) IsOutPortExec

func (em GreaterThanInteger) IsOutPortExec(index int) bool

func (GreaterThanInteger) SetExec

func (em GreaterThanInteger) SetExec(exec IExecNode)

type IBaseExecNode

type IBaseExecNode interface {
	GetPorts() ([]IPort, []IPort)

	GetBlueprintModule() IBlueprintModule
	// contains filtered or unexported methods
}

type IBlueprintModule

type IBlueprintModule interface {
	SafeAfterFunc(timerId *uint64, d time.Duration, AdditionData interface{}, cb func(uint64, interface{}))
	TriggerEvent(graphID int64, eventID int64, args ...any) error
	CancelTimerId(graphID int64, timerId *uint64) bool
	GetGameService() service.IService
	GetBattleService() service.IService
}

type IExecNode

type IExecNode interface {
	GetName() string
	DoNext(index int) error
	Exec() (int, error) // 返回后续执行的Node的Index
	GetNextExecLen() int
	// contains filtered or unexported methods
}

type IGraph

type IGraph interface {
	Do(entranceID int64, args ...any) (Port_Array, error)
	Release()
}

type IInnerExecNode

type IInnerExecNode interface {
	GetName() string
	SetExec(exec IExecNode)
	IsInPortExec(index int) bool
	IsOutPortExec(index int) bool
	GetInPortCount() int
	GetOutPortCount() int
	CloneInOutPort() ([]IPort, []IPort)

	GetInPort(index int) IPort
	GetOutPort(index int) IPort

	GetInPortParamStartIndex() int
	GetOutPortParamStartIndex() int
}

type IPort

type IPort interface {
	GetInt() (Port_Int, bool)
	GetFloat() (Port_Float, bool)
	GetStr() (Port_Str, bool)
	GetArrayValInt(idx int) (Port_Int, bool)
	GetArrayValStr(idx int) (Port_Str, bool)
	GetBool() (Port_Bool, bool)
	GetArray() (Port_Array, bool)

	SetInt(val Port_Int) bool
	SetFloat(val Port_Float) bool
	SetStr(val Port_Str) bool
	SetBool(val Port_Bool) bool
	SetArrayValInt(idx int, val Port_Int) bool
	SetArrayValStr(idx int, val Port_Str) bool
	AppendArrayValInt(val Port_Int) bool
	AppendArrayValStr(val Port_Str) bool
	GetArrayLen() Port_Int
	Clone() IPort
	Reset()

	IsPortExec() bool

	SetValue(val IPort) bool
	// contains filtered or unexported methods
}

func NewPortArray

func NewPortArray() IPort

func NewPortBool

func NewPortBool() IPort

func NewPortByType

func NewPortByType(typ string) IPort

func NewPortExec

func NewPortExec() IPort

func NewPortFloat

func NewPortFloat() IPort

func NewPortInt

func NewPortInt() IPort

func NewPortStr

func NewPortStr() IPort

type InputConfig

type InputConfig struct {
	Name      string `json:"name"`
	PortType  string `json:"type"`
	DataType  string `json:"data_type"`
	HasInput  bool   `json:"has_input"`
	PinWidget string `json:"pin_widget"`
}

type LessThanInteger

type LessThanInteger struct {
	BaseExecNode
}

LessThanInteger 小于(整型) <

func (LessThanInteger) AppendInPort

func (em LessThanInteger) AppendInPort(port ...IPort)

func (LessThanInteger) AppendOutPort

func (em LessThanInteger) AppendOutPort(port ...IPort)

func (LessThanInteger) CloneInOutPort

func (em LessThanInteger) CloneInOutPort() ([]IPort, []IPort)

func (*LessThanInteger) Exec

func (em *LessThanInteger) Exec() (int, error)

func (LessThanInteger) GetInPortCount

func (em LessThanInteger) GetInPortCount() int

func (LessThanInteger) GetInPortParamStartIndex

func (em LessThanInteger) GetInPortParamStartIndex() int

func (*LessThanInteger) GetName

func (em *LessThanInteger) GetName() string

func (LessThanInteger) GetOutPortCount

func (em LessThanInteger) GetOutPortCount() int

func (LessThanInteger) GetOutPortParamStartIndex

func (em LessThanInteger) GetOutPortParamStartIndex() int

func (LessThanInteger) IsInPortExec

func (em LessThanInteger) IsInPortExec(index int) bool

func (LessThanInteger) IsOutPortExec

func (em LessThanInteger) IsOutPortExec(index int) bool

func (LessThanInteger) SetExec

func (em LessThanInteger) SetExec(exec IExecNode)

type ModInt

type ModInt struct {
	BaseExecNode
}

ModInt 取模(int)

func (ModInt) AppendInPort

func (em ModInt) AppendInPort(port ...IPort)

func (ModInt) AppendOutPort

func (em ModInt) AppendOutPort(port ...IPort)

func (ModInt) CloneInOutPort

func (em ModInt) CloneInOutPort() ([]IPort, []IPort)

func (*ModInt) Exec

func (em *ModInt) Exec() (int, error)

func (ModInt) GetInPortCount

func (em ModInt) GetInPortCount() int

func (ModInt) GetInPortParamStartIndex

func (em ModInt) GetInPortParamStartIndex() int

func (*ModInt) GetName

func (em *ModInt) GetName() string

func (ModInt) GetOutPortCount

func (em ModInt) GetOutPortCount() int

func (ModInt) GetOutPortParamStartIndex

func (em ModInt) GetOutPortParamStartIndex() int

func (ModInt) IsInPortExec

func (em ModInt) IsInPortExec(index int) bool

func (ModInt) IsOutPortExec

func (em ModInt) IsOutPortExec(index int) bool

func (ModInt) SetExec

func (em ModInt) SetExec(exec IExecNode)

type MulInt

type MulInt struct {
	BaseExecNode
}

MulInt 乘(int)

func (MulInt) AppendInPort

func (em MulInt) AppendInPort(port ...IPort)

func (MulInt) AppendOutPort

func (em MulInt) AppendOutPort(port ...IPort)

func (MulInt) CloneInOutPort

func (em MulInt) CloneInOutPort() ([]IPort, []IPort)

func (*MulInt) Exec

func (em *MulInt) Exec() (int, error)

func (MulInt) GetInPortCount

func (em MulInt) GetInPortCount() int

func (MulInt) GetInPortParamStartIndex

func (em MulInt) GetInPortParamStartIndex() int

func (*MulInt) GetName

func (em *MulInt) GetName() string

func (MulInt) GetOutPortCount

func (em MulInt) GetOutPortCount() int

func (MulInt) GetOutPortParamStartIndex

func (em MulInt) GetOutPortParamStartIndex() int

func (MulInt) IsInPortExec

func (em MulInt) IsInPortExec(index int) bool

func (MulInt) IsOutPortExec

func (em MulInt) IsOutPortExec(index int) bool

func (MulInt) SetExec

func (em MulInt) SetExec(exec IExecNode)

type MultiTypeValue

type MultiTypeValue struct {
	Value any
}

func (*MultiTypeValue) UnmarshalJSON

func (v *MultiTypeValue) UnmarshalJSON(data []byte) error

实现json.Unmarshaler接口,自定义解码逻辑

type OutInputConfig

type OutInputConfig struct {
	Name     string `json:"name"`
	PortType string `json:"type"`
	DataType string `json:"data_type"`
	HasInput bool   `json:"has_input"`
}

type Output

type Output struct {
	BaseExecNode
}

func (Output) AppendInPort

func (em Output) AppendInPort(port ...IPort)

func (Output) AppendOutPort

func (em Output) AppendOutPort(port ...IPort)

func (Output) CloneInOutPort

func (em Output) CloneInOutPort() ([]IPort, []IPort)

func (*Output) Exec

func (em *Output) Exec() (int, error)

func (Output) GetInPortCount

func (em Output) GetInPortCount() int

func (Output) GetInPortParamStartIndex

func (em Output) GetInPortParamStartIndex() int

func (*Output) GetName

func (em *Output) GetName() string

func (Output) GetOutPortCount

func (em Output) GetOutPortCount() int

func (Output) GetOutPortParamStartIndex

func (em Output) GetOutPortParamStartIndex() int

func (Output) IsInPortExec

func (em Output) IsInPortExec(index int) bool

func (Output) IsOutPortExec

func (em Output) IsOutPortExec(index int) bool

func (Output) SetExec

func (em Output) SetExec(exec IExecNode)

type Port

type Port[T iPortType] struct {
	PortVal T
}

func (*Port[T]) AppendArrayData

func (em *Port[T]) AppendArrayData(val ArrayData) bool

func (*Port[T]) AppendArrayValInt

func (em *Port[T]) AppendArrayValInt(val Port_Int) bool

func (*Port[T]) AppendArrayValStr

func (em *Port[T]) AppendArrayValStr(val Port_Str) bool

func (*Port[T]) Clone

func (em *Port[T]) Clone() IPort

func (*Port[T]) GetArray

func (em *Port[T]) GetArray() (Port_Array, bool)

func (*Port[T]) GetArrayLen

func (em *Port[T]) GetArrayLen() Port_Int

func (*Port[T]) GetArrayValInt

func (em *Port[T]) GetArrayValInt(idx int) (Port_Int, bool)

func (*Port[T]) GetArrayValStr

func (em *Port[T]) GetArrayValStr(idx int) (string, bool)

func (*Port[T]) GetBool

func (em *Port[T]) GetBool() (Port_Bool, bool)

func (*Port[T]) GetFloat

func (em *Port[T]) GetFloat() (Port_Float, bool)

func (*Port[T]) GetInt

func (em *Port[T]) GetInt() (Port_Int, bool)

func (*Port[T]) GetStr

func (em *Port[T]) GetStr() (Port_Str, bool)

func (*Port[T]) IsPortExec

func (em *Port[T]) IsPortExec() bool

func (*Port[T]) Reset

func (em *Port[T]) Reset()

func (*Port[T]) SetArrayValInt

func (em *Port[T]) SetArrayValInt(idx int, val Port_Int) bool

func (*Port[T]) SetArrayValStr

func (em *Port[T]) SetArrayValStr(idx int, val Port_Str) bool

func (*Port[T]) SetBool

func (em *Port[T]) SetBool(val Port_Bool) bool

func (*Port[T]) SetFloat

func (em *Port[T]) SetFloat(val Port_Float) bool

func (*Port[T]) SetInt

func (em *Port[T]) SetInt(val Port_Int) bool

func (*Port[T]) SetStr

func (em *Port[T]) SetStr(val Port_Str) bool

func (*Port[T]) SetValue

func (em *Port[T]) SetValue(val IPort) bool

type PortExec

type PortExec struct {
}

type Port_Array

type Port_Array []ArrayData

type Port_Bool

type Port_Bool = bool

type Port_Exec

type Port_Exec = PortExec

type Port_Float

type Port_Float = float64

type Port_Int

type Port_Int = int64

type Port_Str

type Port_Str = string

type Probability

type Probability struct {
	BaseExecNode
}

Probability 概率判断(万分比)

func (Probability) AppendInPort

func (em Probability) AppendInPort(port ...IPort)

func (Probability) AppendOutPort

func (em Probability) AppendOutPort(port ...IPort)

func (Probability) CloneInOutPort

func (em Probability) CloneInOutPort() ([]IPort, []IPort)

func (*Probability) Exec

func (em *Probability) Exec() (int, error)

func (Probability) GetInPortCount

func (em Probability) GetInPortCount() int

func (Probability) GetInPortParamStartIndex

func (em Probability) GetInPortParamStartIndex() int

func (*Probability) GetName

func (em *Probability) GetName() string

func (Probability) GetOutPortCount

func (em Probability) GetOutPortCount() int

func (Probability) GetOutPortParamStartIndex

func (em Probability) GetOutPortParamStartIndex() int

func (Probability) IsInPortExec

func (em Probability) IsInPortExec(index int) bool

func (Probability) IsOutPortExec

func (em Probability) IsOutPortExec(index int) bool

func (Probability) SetExec

func (em Probability) SetExec(exec IExecNode)

type RandNumber

type RandNumber struct {
	BaseExecNode
}

RandNumber 范围随机[0,99]

func (RandNumber) AppendInPort

func (em RandNumber) AppendInPort(port ...IPort)

func (RandNumber) AppendOutPort

func (em RandNumber) AppendOutPort(port ...IPort)

func (RandNumber) CloneInOutPort

func (em RandNumber) CloneInOutPort() ([]IPort, []IPort)

func (*RandNumber) Exec

func (em *RandNumber) Exec() (int, error)

func (RandNumber) GetInPortCount

func (em RandNumber) GetInPortCount() int

func (RandNumber) GetInPortParamStartIndex

func (em RandNumber) GetInPortParamStartIndex() int

func (*RandNumber) GetName

func (em *RandNumber) GetName() string

func (RandNumber) GetOutPortCount

func (em RandNumber) GetOutPortCount() int

func (RandNumber) GetOutPortParamStartIndex

func (em RandNumber) GetOutPortParamStartIndex() int

func (RandNumber) IsInPortExec

func (em RandNumber) IsInPortExec(index int) bool

func (RandNumber) IsOutPortExec

func (em RandNumber) IsOutPortExec(index int) bool

func (RandNumber) SetExec

func (em RandNumber) SetExec(exec IExecNode)

type RangeCompare

type RangeCompare struct {
	BaseExecNode
}

RangeCompare 范围比较<=

func (RangeCompare) AppendInPort

func (em RangeCompare) AppendInPort(port ...IPort)

func (RangeCompare) AppendOutPort

func (em RangeCompare) AppendOutPort(port ...IPort)

func (RangeCompare) CloneInOutPort

func (em RangeCompare) CloneInOutPort() ([]IPort, []IPort)

func (*RangeCompare) Exec

func (em *RangeCompare) Exec() (int, error)

func (RangeCompare) GetInPortCount

func (em RangeCompare) GetInPortCount() int

func (RangeCompare) GetInPortParamStartIndex

func (em RangeCompare) GetInPortParamStartIndex() int

func (*RangeCompare) GetName

func (em *RangeCompare) GetName() string

func (RangeCompare) GetOutPortCount

func (em RangeCompare) GetOutPortCount() int

func (RangeCompare) GetOutPortParamStartIndex

func (em RangeCompare) GetOutPortParamStartIndex() int

func (RangeCompare) IsInPortExec

func (em RangeCompare) IsInPortExec(index int) bool

func (RangeCompare) IsOutPortExec

func (em RangeCompare) IsOutPortExec(index int) bool

func (RangeCompare) SetExec

func (em RangeCompare) SetExec(exec IExecNode)

type Sequence

type Sequence struct {
	BaseExecNode
}

func (Sequence) AppendInPort

func (em Sequence) AppendInPort(port ...IPort)

func (Sequence) AppendOutPort

func (em Sequence) AppendOutPort(port ...IPort)

func (Sequence) CloneInOutPort

func (em Sequence) CloneInOutPort() ([]IPort, []IPort)

func (*Sequence) Exec

func (em *Sequence) Exec() (int, error)

func (Sequence) GetInPortCount

func (em Sequence) GetInPortCount() int

func (Sequence) GetInPortParamStartIndex

func (em Sequence) GetInPortParamStartIndex() int

func (*Sequence) GetName

func (em *Sequence) GetName() string

func (Sequence) GetOutPortCount

func (em Sequence) GetOutPortCount() int

func (Sequence) GetOutPortParamStartIndex

func (em Sequence) GetOutPortParamStartIndex() int

func (Sequence) IsInPortExec

func (em Sequence) IsInPortExec(index int) bool

func (Sequence) IsOutPortExec

func (em Sequence) IsOutPortExec(index int) bool

func (Sequence) SetExec

func (em Sequence) SetExec(exec IExecNode)

type SetVariablesNode

type SetVariablesNode struct {
	BaseExecNode
	// contains filtered or unexported fields
}

func (SetVariablesNode) AppendInPort

func (em SetVariablesNode) AppendInPort(port ...IPort)

func (SetVariablesNode) AppendOutPort

func (em SetVariablesNode) AppendOutPort(port ...IPort)

func (SetVariablesNode) CloneInOutPort

func (em SetVariablesNode) CloneInOutPort() ([]IPort, []IPort)

func (*SetVariablesNode) Exec

func (g *SetVariablesNode) Exec() (int, error)

func (SetVariablesNode) GetInPortCount

func (em SetVariablesNode) GetInPortCount() int

func (SetVariablesNode) GetInPortParamStartIndex

func (em SetVariablesNode) GetInPortParamStartIndex() int

func (*SetVariablesNode) GetName

func (g *SetVariablesNode) GetName() string

func (SetVariablesNode) GetOutPortCount

func (em SetVariablesNode) GetOutPortCount() int

func (SetVariablesNode) GetOutPortParamStartIndex

func (em SetVariablesNode) GetOutPortParamStartIndex() int

func (SetVariablesNode) IsInPortExec

func (em SetVariablesNode) IsInPortExec(index int) bool

func (SetVariablesNode) IsOutPortExec

func (em SetVariablesNode) IsOutPortExec(index int) bool

func (SetVariablesNode) SetExec

func (em SetVariablesNode) SetExec(exec IExecNode)

type SubInt

type SubInt struct {
	BaseExecNode
}

SubInt 减(int)

func (SubInt) AppendInPort

func (em SubInt) AppendInPort(port ...IPort)

func (SubInt) AppendOutPort

func (em SubInt) AppendOutPort(port ...IPort)

func (SubInt) CloneInOutPort

func (em SubInt) CloneInOutPort() ([]IPort, []IPort)

func (*SubInt) Exec

func (em *SubInt) Exec() (int, error)

func (SubInt) GetInPortCount

func (em SubInt) GetInPortCount() int

func (SubInt) GetInPortParamStartIndex

func (em SubInt) GetInPortParamStartIndex() int

func (*SubInt) GetName

func (em *SubInt) GetName() string

func (SubInt) GetOutPortCount

func (em SubInt) GetOutPortCount() int

func (SubInt) GetOutPortParamStartIndex

func (em SubInt) GetOutPortParamStartIndex() int

func (SubInt) IsInPortExec

func (em SubInt) IsInPortExec(index int) bool

func (SubInt) IsOutPortExec

func (em SubInt) IsOutPortExec(index int) bool

func (SubInt) SetExec

func (em SubInt) SetExec(exec IExecNode)

Jump to

Keyboard shortcuts

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