Documentation
¶
Index ¶
- Constants
- Variables
- func NewExecNode[T any, P IExecNodeType[T]]() func() IExecNode
- type AddInt
- func (em AddInt) CloneInOutPort() ([]IPort, []IPort)
- func (em *AddInt) Exec() (int, error)
- func (em AddInt) GetInPortCount() int
- func (em *AddInt) GetName() string
- func (em AddInt) GetOutPortCount() int
- func (em AddInt) GetOutPortParamStartIndex() int
- func (em AddInt) IsInPortExec(index int) bool
- func (em AddInt) IsOutPortExec(index int) bool
- func (em AddInt) PrepareMaxInPortId(maxInPortId int)
- func (em AddInt) PrepareMaxOutPortId(maxOutPortId int)
- func (em AddInt) SetExec(exec IExecNode)
- func (em AddInt) SetInPortById(id int, port IPort) bool
- func (em AddInt) SetOutPortById(id int, port IPort) bool
- type AppendIntReturn
- func (em AppendIntReturn) CloneInOutPort() ([]IPort, []IPort)
- func (em *AppendIntReturn) Exec() (int, error)
- func (em AppendIntReturn) GetInPortCount() int
- func (em *AppendIntReturn) GetName() string
- func (em AppendIntReturn) GetOutPortCount() int
- func (em AppendIntReturn) GetOutPortParamStartIndex() int
- func (em AppendIntReturn) IsInPortExec(index int) bool
- func (em AppendIntReturn) IsOutPortExec(index int) bool
- func (em AppendIntReturn) PrepareMaxInPortId(maxInPortId int)
- func (em AppendIntReturn) PrepareMaxOutPortId(maxOutPortId int)
- func (em AppendIntReturn) SetExec(exec IExecNode)
- func (em AppendIntReturn) SetInPortById(id int, port IPort) bool
- func (em AppendIntReturn) SetOutPortById(id int, port IPort) bool
- type AppendIntegerToArray
- func (em AppendIntegerToArray) CloneInOutPort() ([]IPort, []IPort)
- func (em *AppendIntegerToArray) Exec() (int, error)
- func (em AppendIntegerToArray) GetInPortCount() int
- func (em *AppendIntegerToArray) GetName() string
- func (em AppendIntegerToArray) GetOutPortCount() int
- func (em AppendIntegerToArray) GetOutPortParamStartIndex() int
- func (em AppendIntegerToArray) IsInPortExec(index int) bool
- func (em AppendIntegerToArray) IsOutPortExec(index int) bool
- func (em AppendIntegerToArray) PrepareMaxInPortId(maxInPortId int)
- func (em AppendIntegerToArray) PrepareMaxOutPortId(maxOutPortId int)
- func (em AppendIntegerToArray) SetExec(exec IExecNode)
- func (em AppendIntegerToArray) SetInPortById(id int, port IPort) bool
- func (em AppendIntegerToArray) SetOutPortById(id int, port IPort) bool
- type AppendStringReturn
- func (em AppendStringReturn) CloneInOutPort() ([]IPort, []IPort)
- func (em *AppendStringReturn) Exec() (int, error)
- func (em AppendStringReturn) GetInPortCount() int
- func (em *AppendStringReturn) GetName() string
- func (em AppendStringReturn) GetOutPortCount() int
- func (em AppendStringReturn) GetOutPortParamStartIndex() int
- func (em AppendStringReturn) IsInPortExec(index int) bool
- func (em AppendStringReturn) IsOutPortExec(index int) bool
- func (em AppendStringReturn) PrepareMaxInPortId(maxInPortId int)
- func (em AppendStringReturn) PrepareMaxOutPortId(maxOutPortId int)
- func (em AppendStringReturn) SetExec(exec IExecNode)
- func (em AppendStringReturn) SetInPortById(id int, port IPort) bool
- func (em AppendStringReturn) SetOutPortById(id int, port IPort) bool
- type AppendStringToArray
- func (em AppendStringToArray) CloneInOutPort() ([]IPort, []IPort)
- func (em *AppendStringToArray) Exec() (int, error)
- func (em AppendStringToArray) GetInPortCount() int
- func (em *AppendStringToArray) GetName() string
- func (em AppendStringToArray) GetOutPortCount() int
- func (em AppendStringToArray) GetOutPortParamStartIndex() int
- func (em AppendStringToArray) IsInPortExec(index int) bool
- func (em AppendStringToArray) IsOutPortExec(index int) bool
- func (em AppendStringToArray) PrepareMaxInPortId(maxInPortId int)
- func (em AppendStringToArray) PrepareMaxOutPortId(maxOutPortId int)
- func (em AppendStringToArray) SetExec(exec IExecNode)
- func (em AppendStringToArray) SetInPortById(id int, port IPort) bool
- func (em AppendStringToArray) SetOutPortById(id int, port IPort) bool
- type ArrayData
- type ArrayElement
- type BaseExecConfig
- type BaseExecNode
- func (en *BaseExecNode) AppendInPortArrayValInt(index int, val Port_Int) bool
- func (en *BaseExecNode) AppendInPortArrayValStr(index int, val Port_Str) bool
- func (en *BaseExecNode) AppendOutPortArrayValInt(index int, val Port_Int) bool
- func (en *BaseExecNode) AppendOutPortArrayValStr(index int, val Port_Str) bool
- func (em BaseExecNode) CloneInOutPort() ([]IPort, []IPort)
- func (en *BaseExecNode) DoNext(index int) error
- func (en *BaseExecNode) GetBluePrintModule() IBlueprintModule
- func (en *BaseExecNode) GetBlueprintModule() IBlueprintModule
- func (en *BaseExecNode) GetInPort(index int) IPort
- func (en *BaseExecNode) GetInPortArray(index int) (Port_Array, bool)
- func (en *BaseExecNode) GetInPortArrayLen(index int) Port_Int
- func (en *BaseExecNode) GetInPortArrayValInt(index int, idx int) (Port_Int, bool)
- func (en *BaseExecNode) GetInPortArrayValStr(idx int) (Port_Str, bool)
- func (en *BaseExecNode) GetInPortBool(index int) (Port_Bool, bool)
- func (em BaseExecNode) GetInPortCount() int
- func (en *BaseExecNode) GetInPortFloat(index int) (Port_Float, bool)
- func (en *BaseExecNode) GetInPortInt(index int) (Port_Int, bool)
- func (en *BaseExecNode) GetInPortStr(index int) (Port_Str, bool)
- func (em BaseExecNode) GetName() string
- func (en *BaseExecNode) GetNextExecLen() int
- func (en *BaseExecNode) GetOutPort(index int) IPort
- func (en *BaseExecNode) GetOutPortArrayLen(index int) Port_Int
- func (en *BaseExecNode) GetOutPortArrayValInt(index int, idx int) (Port_Int, bool)
- func (en *BaseExecNode) GetOutPortArrayValStr(index int, idx int) (Port_Str, bool)
- func (en *BaseExecNode) GetOutPortBool(index int) (Port_Bool, bool)
- func (em BaseExecNode) GetOutPortCount() int
- func (en *BaseExecNode) GetOutPortFloat(index int) (Port_Float, bool)
- func (en *BaseExecNode) GetOutPortInt(index int) (Port_Int, bool)
- func (em BaseExecNode) GetOutPortParamStartIndex() int
- func (en *BaseExecNode) GetOutPortStr(index int) (Port_Str, bool)
- func (en *BaseExecNode) GetPorts() ([]IPort, []IPort)
- func (en *BaseExecNode) GetVariableName() string
- func (em BaseExecNode) IsInPortExec(index int) bool
- func (em BaseExecNode) IsOutPortExec(index int) bool
- func (em BaseExecNode) PrepareMaxInPortId(maxInPortId int)
- func (em BaseExecNode) PrepareMaxOutPortId(maxOutPortId int)
- func (em BaseExecNode) SetExec(exec IExecNode)
- func (en *BaseExecNode) SetInBool(index int, val Port_Bool) bool
- func (en *BaseExecNode) SetInPortArrayValInt(index int, idx int, val Port_Int) bool
- func (en *BaseExecNode) SetInPortArrayValStr(index int, idx int, val Port_Str) bool
- func (em BaseExecNode) SetInPortById(id int, port IPort) bool
- func (en *BaseExecNode) SetInPortFloat(index int, val Port_Float) bool
- func (en *BaseExecNode) SetInPortInt(index int, val Port_Int) bool
- func (en *BaseExecNode) SetInPortStr(index int, val Port_Str) bool
- func (en *BaseExecNode) SetOutPort(index int, val IPort) bool
- func (en *BaseExecNode) SetOutPortArrayValInt(index int, idx int, val Port_Int) bool
- func (en *BaseExecNode) SetOutPortArrayValStr(index int, idx int, val Port_Str) bool
- func (en *BaseExecNode) SetOutPortBool(index int, val Port_Bool) bool
- func (em BaseExecNode) SetOutPortById(id int, port IPort) bool
- func (en *BaseExecNode) SetOutPortFloat(index int, val Port_Float) bool
- func (en *BaseExecNode) SetOutPortInt(index int, val Port_Int) bool
- func (en *BaseExecNode) SetOutPortStr(index int, val Port_Str) bool
- type Blueprint
- func (bm *Blueprint) CancelTimerId(graphID int64, timerId *uint64) bool
- func (bm *Blueprint) Create(graphName string) int64
- func (bm *Blueprint) Do(graphID int64, entranceID int64, args ...any) (Port_Array, error)
- func (bm *Blueprint) Init(execDefFilePath string, graphFilePath string, blueprintModule IBlueprintModule, ...) error
- func (bm *Blueprint) RegisterExecNode(execNodeFunc func() IExecNode)
- func (bm *Blueprint) ReleaseGraph(graphID int64)
- func (bm *Blueprint) StartHotReload() (func(), error)
- func (bm *Blueprint) TriggerEvent(graphID int64, eventID int64, args ...any) error
- type BoolIf
- func (em BoolIf) CloneInOutPort() ([]IPort, []IPort)
- func (em *BoolIf) Exec() (int, error)
- func (em BoolIf) GetInPortCount() int
- func (em *BoolIf) GetName() string
- func (em BoolIf) GetOutPortCount() int
- func (em BoolIf) GetOutPortParamStartIndex() int
- func (em BoolIf) IsInPortExec(index int) bool
- func (em BoolIf) IsOutPortExec(index int) bool
- func (em BoolIf) PrepareMaxInPortId(maxInPortId int)
- func (em BoolIf) PrepareMaxOutPortId(maxOutPortId int)
- func (em BoolIf) SetExec(exec IExecNode)
- func (em BoolIf) SetInPortById(id int, port IPort) bool
- func (em BoolIf) SetOutPortById(id int, port IPort) bool
- type CloseTimer
- func (em CloseTimer) CloneInOutPort() ([]IPort, []IPort)
- func (em *CloseTimer) Exec() (int, error)
- func (em CloseTimer) GetInPortCount() int
- func (em *CloseTimer) GetName() string
- func (em CloseTimer) GetOutPortCount() int
- func (em CloseTimer) GetOutPortParamStartIndex() int
- func (em CloseTimer) IsInPortExec(index int) bool
- func (em CloseTimer) IsOutPortExec(index int) bool
- func (em CloseTimer) PrepareMaxInPortId(maxInPortId int)
- func (em CloseTimer) PrepareMaxOutPortId(maxOutPortId int)
- func (em CloseTimer) SetExec(exec IExecNode)
- func (em CloseTimer) SetInPortById(id int, port IPort) bool
- func (em CloseTimer) SetOutPortById(id int, port IPort) bool
- type CreateIntArray
- func (em CreateIntArray) CloneInOutPort() ([]IPort, []IPort)
- func (em *CreateIntArray) Exec() (int, error)
- func (em CreateIntArray) GetInPortCount() int
- func (em *CreateIntArray) GetName() string
- func (em CreateIntArray) GetOutPortCount() int
- func (em CreateIntArray) GetOutPortParamStartIndex() int
- func (em CreateIntArray) IsInPortExec(index int) bool
- func (em CreateIntArray) IsOutPortExec(index int) bool
- func (em CreateIntArray) PrepareMaxInPortId(maxInPortId int)
- func (em CreateIntArray) PrepareMaxOutPortId(maxOutPortId int)
- func (em CreateIntArray) SetExec(exec IExecNode)
- func (em CreateIntArray) SetInPortById(id int, port IPort) bool
- func (em CreateIntArray) SetOutPortById(id int, port IPort) bool
- type CreateStringArray
- func (em CreateStringArray) CloneInOutPort() ([]IPort, []IPort)
- func (em *CreateStringArray) Exec() (int, error)
- func (em CreateStringArray) GetInPortCount() int
- func (em *CreateStringArray) GetName() string
- func (em CreateStringArray) GetOutPortCount() int
- func (em CreateStringArray) GetOutPortParamStartIndex() int
- func (em CreateStringArray) IsInPortExec(index int) bool
- func (em CreateStringArray) IsOutPortExec(index int) bool
- func (em CreateStringArray) PrepareMaxInPortId(maxInPortId int)
- func (em CreateStringArray) PrepareMaxOutPortId(maxOutPortId int)
- func (em CreateStringArray) SetExec(exec IExecNode)
- func (em CreateStringArray) SetInPortById(id int, port IPort) bool
- func (em CreateStringArray) SetOutPortById(id int, port IPort) bool
- type CreateTimer
- func (em CreateTimer) CloneInOutPort() ([]IPort, []IPort)
- func (em *CreateTimer) Exec() (int, error)
- func (em CreateTimer) GetInPortCount() int
- func (em *CreateTimer) GetName() string
- func (em CreateTimer) GetOutPortCount() int
- func (em CreateTimer) GetOutPortParamStartIndex() int
- func (em CreateTimer) IsInPortExec(index int) bool
- func (em CreateTimer) IsOutPortExec(index int) bool
- func (em CreateTimer) PrepareMaxInPortId(maxInPortId int)
- func (em CreateTimer) PrepareMaxOutPortId(maxOutPortId int)
- func (em CreateTimer) SetExec(exec IExecNode)
- func (em CreateTimer) SetInPortById(id int, port IPort) bool
- func (em CreateTimer) SetOutPortById(id int, port IPort) bool
- type DebugOutput
- func (em DebugOutput) CloneInOutPort() ([]IPort, []IPort)
- func (em *DebugOutput) Exec() (int, error)
- func (em DebugOutput) GetInPortCount() int
- func (em *DebugOutput) GetName() string
- func (em DebugOutput) GetOutPortCount() int
- func (em DebugOutput) GetOutPortParamStartIndex() int
- func (em DebugOutput) IsInPortExec(index int) bool
- func (em DebugOutput) IsOutPortExec(index int) bool
- func (em DebugOutput) PrepareMaxInPortId(maxInPortId int)
- func (em DebugOutput) PrepareMaxOutPortId(maxOutPortId int)
- func (em DebugOutput) SetExec(exec IExecNode)
- func (em DebugOutput) SetInPortById(id int, port IPort) bool
- func (em DebugOutput) SetOutPortById(id int, port IPort) bool
- type DivInt
- func (em DivInt) CloneInOutPort() ([]IPort, []IPort)
- func (em *DivInt) Exec() (int, error)
- func (em DivInt) GetInPortCount() int
- func (em *DivInt) GetName() string
- func (em DivInt) GetOutPortCount() int
- func (em DivInt) GetOutPortParamStartIndex() int
- func (em DivInt) IsInPortExec(index int) bool
- func (em DivInt) IsOutPortExec(index int) bool
- func (em DivInt) PrepareMaxInPortId(maxInPortId int)
- func (em DivInt) PrepareMaxOutPortId(maxOutPortId int)
- func (em DivInt) SetExec(exec IExecNode)
- func (em DivInt) SetInPortById(id int, port IPort) bool
- func (em DivInt) SetOutPortById(id int, port IPort) bool
- type Entrance_ArrayParam
- func (em Entrance_ArrayParam) CloneInOutPort() ([]IPort, []IPort)
- func (em *Entrance_ArrayParam) Exec() (int, error)
- func (em Entrance_ArrayParam) GetInPortCount() int
- func (em *Entrance_ArrayParam) GetName() string
- func (em Entrance_ArrayParam) GetOutPortCount() int
- func (em Entrance_ArrayParam) GetOutPortParamStartIndex() int
- func (em Entrance_ArrayParam) IsInPortExec(index int) bool
- func (em Entrance_ArrayParam) IsOutPortExec(index int) bool
- func (em Entrance_ArrayParam) PrepareMaxInPortId(maxInPortId int)
- func (em Entrance_ArrayParam) PrepareMaxOutPortId(maxOutPortId int)
- func (em Entrance_ArrayParam) SetExec(exec IExecNode)
- func (em Entrance_ArrayParam) SetInPortById(id int, port IPort) bool
- func (em Entrance_ArrayParam) SetOutPortById(id int, port IPort) bool
- type Entrance_IntParam
- func (em Entrance_IntParam) CloneInOutPort() ([]IPort, []IPort)
- func (em *Entrance_IntParam) Exec() (int, error)
- func (em Entrance_IntParam) GetInPortCount() int
- func (em *Entrance_IntParam) GetName() string
- func (em Entrance_IntParam) GetOutPortCount() int
- func (em Entrance_IntParam) GetOutPortParamStartIndex() int
- func (em Entrance_IntParam) IsInPortExec(index int) bool
- func (em Entrance_IntParam) IsOutPortExec(index int) bool
- func (em Entrance_IntParam) PrepareMaxInPortId(maxInPortId int)
- func (em Entrance_IntParam) PrepareMaxOutPortId(maxOutPortId int)
- func (em Entrance_IntParam) SetExec(exec IExecNode)
- func (em Entrance_IntParam) SetInPortById(id int, port IPort) bool
- func (em Entrance_IntParam) SetOutPortById(id int, port IPort) bool
- type Entrance_Timer
- func (em Entrance_Timer) CloneInOutPort() ([]IPort, []IPort)
- func (em *Entrance_Timer) Exec() (int, error)
- func (em Entrance_Timer) GetInPortCount() int
- func (em *Entrance_Timer) GetName() string
- func (em Entrance_Timer) GetOutPortCount() int
- func (em Entrance_Timer) GetOutPortParamStartIndex() int
- func (em Entrance_Timer) IsInPortExec(index int) bool
- func (em Entrance_Timer) IsOutPortExec(index int) bool
- func (em Entrance_Timer) PrepareMaxInPortId(maxInPortId int)
- func (em Entrance_Timer) PrepareMaxOutPortId(maxOutPortId int)
- func (em Entrance_Timer) SetExec(exec IExecNode)
- func (em Entrance_Timer) SetInPortById(id int, port IPort) bool
- func (em Entrance_Timer) SetOutPortById(id int, port IPort) bool
- type EqualInteger
- func (em EqualInteger) CloneInOutPort() ([]IPort, []IPort)
- func (em *EqualInteger) Exec() (int, error)
- func (em EqualInteger) GetInPortCount() int
- func (em *EqualInteger) GetName() string
- func (em EqualInteger) GetOutPortCount() int
- func (em EqualInteger) GetOutPortParamStartIndex() int
- func (em EqualInteger) IsInPortExec(index int) bool
- func (em EqualInteger) IsOutPortExec(index int) bool
- func (em EqualInteger) PrepareMaxInPortId(maxInPortId int)
- func (em EqualInteger) PrepareMaxOutPortId(maxOutPortId int)
- func (em EqualInteger) SetExec(exec IExecNode)
- func (em EqualInteger) SetInPortById(id int, port IPort) bool
- func (em EqualInteger) SetOutPortById(id int, port IPort) bool
- type EqualSwitch
- func (em EqualSwitch) CloneInOutPort() ([]IPort, []IPort)
- func (em *EqualSwitch) Exec() (int, error)
- func (em EqualSwitch) GetInPortCount() int
- func (em *EqualSwitch) GetName() string
- func (em EqualSwitch) GetOutPortCount() int
- func (em EqualSwitch) GetOutPortParamStartIndex() int
- func (em EqualSwitch) IsInPortExec(index int) bool
- func (em EqualSwitch) IsOutPortExec(index int) bool
- func (em EqualSwitch) PrepareMaxInPortId(maxInPortId int)
- func (em EqualSwitch) PrepareMaxOutPortId(maxOutPortId int)
- func (em EqualSwitch) SetExec(exec IExecNode)
- func (em EqualSwitch) SetInPortById(id int, port IPort) bool
- func (em EqualSwitch) SetOutPortById(id int, port IPort) bool
- type ExecContext
- type ExecPool
- type Foreach
- func (em Foreach) CloneInOutPort() ([]IPort, []IPort)
- func (em *Foreach) Exec() (int, error)
- func (em Foreach) GetInPortCount() int
- func (em *Foreach) GetName() string
- func (em Foreach) GetOutPortCount() int
- func (em Foreach) GetOutPortParamStartIndex() int
- func (em Foreach) IsInPortExec(index int) bool
- func (em Foreach) IsOutPortExec(index int) bool
- func (em Foreach) PrepareMaxInPortId(maxInPortId int)
- func (em Foreach) PrepareMaxOutPortId(maxOutPortId int)
- func (em Foreach) SetExec(exec IExecNode)
- func (em Foreach) SetInPortById(id int, port IPort) bool
- func (em Foreach) SetOutPortById(id int, port IPort) bool
- type ForeachIntArray
- func (em ForeachIntArray) CloneInOutPort() ([]IPort, []IPort)
- func (em *ForeachIntArray) Exec() (int, error)
- func (em ForeachIntArray) GetInPortCount() int
- func (em *ForeachIntArray) GetName() string
- func (em ForeachIntArray) GetOutPortCount() int
- func (em ForeachIntArray) GetOutPortParamStartIndex() int
- func (em ForeachIntArray) IsInPortExec(index int) bool
- func (em ForeachIntArray) IsOutPortExec(index int) bool
- func (em ForeachIntArray) PrepareMaxInPortId(maxInPortId int)
- func (em ForeachIntArray) PrepareMaxOutPortId(maxOutPortId int)
- func (em ForeachIntArray) SetExec(exec IExecNode)
- func (em ForeachIntArray) SetInPortById(id int, port IPort) bool
- func (em ForeachIntArray) SetOutPortById(id int, port IPort) bool
- type GetArrayInt
- func (em GetArrayInt) CloneInOutPort() ([]IPort, []IPort)
- func (em *GetArrayInt) Exec() (int, error)
- func (em GetArrayInt) GetInPortCount() int
- func (em *GetArrayInt) GetName() string
- func (em GetArrayInt) GetOutPortCount() int
- func (em GetArrayInt) GetOutPortParamStartIndex() int
- func (em GetArrayInt) IsInPortExec(index int) bool
- func (em GetArrayInt) IsOutPortExec(index int) bool
- func (em GetArrayInt) PrepareMaxInPortId(maxInPortId int)
- func (em GetArrayInt) PrepareMaxOutPortId(maxOutPortId int)
- func (em GetArrayInt) SetExec(exec IExecNode)
- func (em GetArrayInt) SetInPortById(id int, port IPort) bool
- func (em GetArrayInt) SetOutPortById(id int, port IPort) bool
- type GetArrayLen
- func (em GetArrayLen) CloneInOutPort() ([]IPort, []IPort)
- func (em *GetArrayLen) Exec() (int, error)
- func (em GetArrayLen) GetInPortCount() int
- func (em *GetArrayLen) GetName() string
- func (em GetArrayLen) GetOutPortCount() int
- func (em GetArrayLen) GetOutPortParamStartIndex() int
- func (em GetArrayLen) IsInPortExec(index int) bool
- func (em GetArrayLen) IsOutPortExec(index int) bool
- func (em GetArrayLen) PrepareMaxInPortId(maxInPortId int)
- func (em GetArrayLen) PrepareMaxOutPortId(maxOutPortId int)
- func (em GetArrayLen) SetExec(exec IExecNode)
- func (em GetArrayLen) SetInPortById(id int, port IPort) bool
- func (em GetArrayLen) SetOutPortById(id int, port IPort) bool
- type GetArrayString
- func (em GetArrayString) CloneInOutPort() ([]IPort, []IPort)
- func (em *GetArrayString) Exec() (int, error)
- func (em GetArrayString) GetInPortCount() int
- func (em *GetArrayString) GetName() string
- func (em GetArrayString) GetOutPortCount() int
- func (em GetArrayString) GetOutPortParamStartIndex() int
- func (em GetArrayString) IsInPortExec(index int) bool
- func (em GetArrayString) IsOutPortExec(index int) bool
- func (em GetArrayString) PrepareMaxInPortId(maxInPortId int)
- func (em GetArrayString) PrepareMaxOutPortId(maxOutPortId int)
- func (em GetArrayString) SetExec(exec IExecNode)
- func (em GetArrayString) SetInPortById(id int, port IPort) bool
- func (em GetArrayString) SetOutPortById(id int, port IPort) bool
- type GetVariablesNode
- func (em GetVariablesNode) CloneInOutPort() ([]IPort, []IPort)
- func (g *GetVariablesNode) Exec() (int, error)
- func (em GetVariablesNode) GetInPortCount() int
- func (g *GetVariablesNode) GetName() string
- func (em GetVariablesNode) GetOutPortCount() int
- func (em GetVariablesNode) GetOutPortParamStartIndex() int
- func (em GetVariablesNode) IsInPortExec(index int) bool
- func (em GetVariablesNode) IsOutPortExec(index int) bool
- func (em GetVariablesNode) PrepareMaxInPortId(maxInPortId int)
- func (em GetVariablesNode) PrepareMaxOutPortId(maxOutPortId int)
- func (em GetVariablesNode) SetExec(exec IExecNode)
- func (em GetVariablesNode) SetInPortById(id int, port IPort) bool
- func (em GetVariablesNode) SetOutPortById(id int, port IPort) bool
- type Graph
- func (gr *Graph) Do(entranceID int64, args ...any) (Port_Array, error)
- func (gr *Graph) GetAndCreateReturnPort() IPort
- func (gr *Graph) GetGraphFileName() string
- func (gr *Graph) GetNodeInPortValue(nodeID string, inPortIndex int) IPort
- func (gr *Graph) GetNodeOutPortValue(nodeID string, outPortIndex int) IPort
- func (gr *Graph) HotReload(newBaseGraph *baseGraph)
- func (gr *Graph) Release()
- type GraphPool
- type GreaterThanInteger
- func (em GreaterThanInteger) CloneInOutPort() ([]IPort, []IPort)
- func (em *GreaterThanInteger) Exec() (int, error)
- func (em GreaterThanInteger) GetInPortCount() int
- func (em *GreaterThanInteger) GetName() string
- func (em GreaterThanInteger) GetOutPortCount() int
- func (em GreaterThanInteger) GetOutPortParamStartIndex() int
- func (em GreaterThanInteger) IsInPortExec(index int) bool
- func (em GreaterThanInteger) IsOutPortExec(index int) bool
- func (em GreaterThanInteger) PrepareMaxInPortId(maxInPortId int)
- func (em GreaterThanInteger) PrepareMaxOutPortId(maxOutPortId int)
- func (em GreaterThanInteger) SetExec(exec IExecNode)
- func (em GreaterThanInteger) SetInPortById(id int, port IPort) bool
- func (em GreaterThanInteger) SetOutPortById(id int, port IPort) bool
- type IBaseExecNode
- type IBlueprintModule
- type IExecNode
- type IExecNodeType
- type IGraph
- type IInnerExecNode
- type IPort
- type InputConfig
- type LessThanInteger
- func (em LessThanInteger) CloneInOutPort() ([]IPort, []IPort)
- func (em *LessThanInteger) Exec() (int, error)
- func (em LessThanInteger) GetInPortCount() int
- func (em *LessThanInteger) GetName() string
- func (em LessThanInteger) GetOutPortCount() int
- func (em LessThanInteger) GetOutPortParamStartIndex() int
- func (em LessThanInteger) IsInPortExec(index int) bool
- func (em LessThanInteger) IsOutPortExec(index int) bool
- func (em LessThanInteger) PrepareMaxInPortId(maxInPortId int)
- func (em LessThanInteger) PrepareMaxOutPortId(maxOutPortId int)
- func (em LessThanInteger) SetExec(exec IExecNode)
- func (em LessThanInteger) SetInPortById(id int, port IPort) bool
- func (em LessThanInteger) SetOutPortById(id int, port IPort) bool
- type ModInt
- func (em ModInt) CloneInOutPort() ([]IPort, []IPort)
- func (em *ModInt) Exec() (int, error)
- func (em ModInt) GetInPortCount() int
- func (em *ModInt) GetName() string
- func (em ModInt) GetOutPortCount() int
- func (em ModInt) GetOutPortParamStartIndex() int
- func (em ModInt) IsInPortExec(index int) bool
- func (em ModInt) IsOutPortExec(index int) bool
- func (em ModInt) PrepareMaxInPortId(maxInPortId int)
- func (em ModInt) PrepareMaxOutPortId(maxOutPortId int)
- func (em ModInt) SetExec(exec IExecNode)
- func (em ModInt) SetInPortById(id int, port IPort) bool
- func (em ModInt) SetOutPortById(id int, port IPort) bool
- type MulInt
- func (em MulInt) CloneInOutPort() ([]IPort, []IPort)
- func (em *MulInt) Exec() (int, error)
- func (em MulInt) GetInPortCount() int
- func (em *MulInt) GetName() string
- func (em MulInt) GetOutPortCount() int
- func (em MulInt) GetOutPortParamStartIndex() int
- func (em MulInt) IsInPortExec(index int) bool
- func (em MulInt) IsOutPortExec(index int) bool
- func (em MulInt) PrepareMaxInPortId(maxInPortId int)
- func (em MulInt) PrepareMaxOutPortId(maxOutPortId int)
- func (em MulInt) SetExec(exec IExecNode)
- func (em MulInt) SetInPortById(id int, port IPort) bool
- func (em MulInt) SetOutPortById(id int, port IPort) bool
- type MultiTypeValue
- type OutputConfig
- type Port
- func (em *Port[T]) AppendArrayData(val ArrayData) bool
- func (em *Port[T]) AppendArrayValInt(val Port_Int) bool
- func (em *Port[T]) AppendArrayValStr(val Port_Str) bool
- func (em *Port[T]) Clone() IPort
- func (em *Port[T]) GetArray() (Port_Array, bool)
- func (em *Port[T]) GetArrayLen() Port_Int
- func (em *Port[T]) GetArrayValInt(idx int) (Port_Int, bool)
- func (em *Port[T]) GetArrayValStr(idx int) (string, bool)
- func (em *Port[T]) GetBool() (Port_Bool, bool)
- func (em *Port[T]) GetFloat() (Port_Float, bool)
- func (em *Port[T]) GetInt() (Port_Int, bool)
- func (em *Port[T]) GetStr() (Port_Str, bool)
- func (em *Port[T]) IsPortExec() bool
- func (em *Port[T]) Reset()
- func (em *Port[T]) SetArrayValInt(idx int, val Port_Int) bool
- func (em *Port[T]) SetArrayValStr(idx int, val Port_Str) bool
- func (em *Port[T]) SetBool(val Port_Bool) bool
- func (em *Port[T]) SetFloat(val Port_Float) bool
- func (em *Port[T]) SetInt(val Port_Int) bool
- func (em *Port[T]) SetStr(val Port_Str) bool
- func (em *Port[T]) SetValue(val IPort) bool
- type PortExec
- type Port_Array
- type Port_Bool
- type Port_Exec
- type Port_Float
- type Port_Int
- type Port_Str
- type Probability
- func (em Probability) CloneInOutPort() ([]IPort, []IPort)
- func (em *Probability) Exec() (int, error)
- func (em Probability) GetInPortCount() int
- func (em *Probability) GetName() string
- func (em Probability) GetOutPortCount() int
- func (em Probability) GetOutPortParamStartIndex() int
- func (em Probability) IsInPortExec(index int) bool
- func (em Probability) IsOutPortExec(index int) bool
- func (em Probability) PrepareMaxInPortId(maxInPortId int)
- func (em Probability) PrepareMaxOutPortId(maxOutPortId int)
- func (em Probability) SetExec(exec IExecNode)
- func (em Probability) SetInPortById(id int, port IPort) bool
- func (em Probability) SetOutPortById(id int, port IPort) bool
- type RandNumber
- func (em RandNumber) CloneInOutPort() ([]IPort, []IPort)
- func (em *RandNumber) Exec() (int, error)
- func (em RandNumber) GetInPortCount() int
- func (em *RandNumber) GetName() string
- func (em RandNumber) GetOutPortCount() int
- func (em RandNumber) GetOutPortParamStartIndex() int
- func (em RandNumber) IsInPortExec(index int) bool
- func (em RandNumber) IsOutPortExec(index int) bool
- func (em RandNumber) PrepareMaxInPortId(maxInPortId int)
- func (em RandNumber) PrepareMaxOutPortId(maxOutPortId int)
- func (em RandNumber) SetExec(exec IExecNode)
- func (em RandNumber) SetInPortById(id int, port IPort) bool
- func (em RandNumber) SetOutPortById(id int, port IPort) bool
- type RangeCompare
- func (em RangeCompare) CloneInOutPort() ([]IPort, []IPort)
- func (em *RangeCompare) Exec() (int, error)
- func (em RangeCompare) GetInPortCount() int
- func (em *RangeCompare) GetName() string
- func (em RangeCompare) GetOutPortCount() int
- func (em RangeCompare) GetOutPortParamStartIndex() int
- func (em RangeCompare) IsInPortExec(index int) bool
- func (em RangeCompare) IsOutPortExec(index int) bool
- func (em RangeCompare) PrepareMaxInPortId(maxInPortId int)
- func (em RangeCompare) PrepareMaxOutPortId(maxOutPortId int)
- func (em RangeCompare) SetExec(exec IExecNode)
- func (em RangeCompare) SetInPortById(id int, port IPort) bool
- func (em RangeCompare) SetOutPortById(id int, port IPort) bool
- type Sequence
- func (em Sequence) CloneInOutPort() ([]IPort, []IPort)
- func (em *Sequence) Exec() (int, error)
- func (em Sequence) GetInPortCount() int
- func (em *Sequence) GetName() string
- func (em Sequence) GetOutPortCount() int
- func (em Sequence) GetOutPortParamStartIndex() int
- func (em Sequence) IsInPortExec(index int) bool
- func (em Sequence) IsOutPortExec(index int) bool
- func (em Sequence) PrepareMaxInPortId(maxInPortId int)
- func (em Sequence) PrepareMaxOutPortId(maxOutPortId int)
- func (em Sequence) SetExec(exec IExecNode)
- func (em Sequence) SetInPortById(id int, port IPort) bool
- func (em Sequence) SetOutPortById(id int, port IPort) bool
- type SetVariablesNode
- func (em SetVariablesNode) CloneInOutPort() ([]IPort, []IPort)
- func (g *SetVariablesNode) Exec() (int, error)
- func (em SetVariablesNode) GetInPortCount() int
- func (g *SetVariablesNode) GetName() string
- func (em SetVariablesNode) GetOutPortCount() int
- func (em SetVariablesNode) GetOutPortParamStartIndex() int
- func (em SetVariablesNode) IsInPortExec(index int) bool
- func (em SetVariablesNode) IsOutPortExec(index int) bool
- func (em SetVariablesNode) PrepareMaxInPortId(maxInPortId int)
- func (em SetVariablesNode) PrepareMaxOutPortId(maxOutPortId int)
- func (em SetVariablesNode) SetExec(exec IExecNode)
- func (em SetVariablesNode) SetInPortById(id int, port IPort) bool
- func (em SetVariablesNode) SetOutPortById(id int, port IPort) bool
- type SubInt
- func (em SubInt) CloneInOutPort() ([]IPort, []IPort)
- func (em *SubInt) Exec() (int, error)
- func (em SubInt) GetInPortCount() int
- func (em *SubInt) GetName() string
- func (em SubInt) GetOutPortCount() int
- func (em SubInt) GetOutPortParamStartIndex() int
- func (em SubInt) IsInPortExec(index int) bool
- func (em SubInt) IsOutPortExec(index int) bool
- func (em SubInt) PrepareMaxInPortId(maxInPortId int)
- func (em SubInt) PrepareMaxOutPortId(maxOutPortId int)
- func (em SubInt) SetExec(exec IExecNode)
- func (em SubInt) SetInPortById(id int, port IPort) bool
- func (em SubInt) SetOutPortById(id int, port IPort) bool
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 格式:Entrance_XXXX_ID
View Source
const GetVariables = "GetVar"
View Source
const ReturnVarial = "g_Return"
View Source
const SetVariables = "SetVar"
Variables ¶
View Source
var IsDebug = false
Functions ¶
func NewExecNode ¶
func NewExecNode[T any, P IExecNodeType[T]]() func() IExecNode
生成一个泛型函数,返回func() IExecNode类型
Types ¶
type AddInt ¶
type AddInt struct {
BaseExecNode
}
AddInt 加(int)
func (AddInt) CloneInOutPort ¶
func (AddInt) GetInPortCount ¶
func (em AddInt) GetInPortCount() int
func (AddInt) GetOutPortCount ¶
func (em AddInt) GetOutPortCount() int
func (AddInt) GetOutPortParamStartIndex ¶
func (em AddInt) GetOutPortParamStartIndex() int
func (AddInt) IsInPortExec ¶
func (AddInt) IsOutPortExec ¶
func (AddInt) PrepareMaxInPortId ¶
func (em AddInt) PrepareMaxInPortId(maxInPortId int)
func (AddInt) PrepareMaxOutPortId ¶
func (em AddInt) PrepareMaxOutPortId(maxOutPortId int)
func (AddInt) SetInPortById ¶
func (AddInt) SetOutPortById ¶
type AppendIntReturn ¶
type AppendIntReturn struct {
BaseExecNode
}
AppendIntReturn 追加返回结果(Int)
func (AppendIntReturn) CloneInOutPort ¶
func (*AppendIntReturn) Exec ¶
func (em *AppendIntReturn) Exec() (int, error)
func (AppendIntReturn) GetInPortCount ¶
func (em AppendIntReturn) GetInPortCount() int
func (*AppendIntReturn) GetName ¶
func (em *AppendIntReturn) GetName() string
func (AppendIntReturn) GetOutPortCount ¶
func (em AppendIntReturn) GetOutPortCount() int
func (AppendIntReturn) GetOutPortParamStartIndex ¶
func (em AppendIntReturn) GetOutPortParamStartIndex() int
func (AppendIntReturn) IsInPortExec ¶
func (AppendIntReturn) IsOutPortExec ¶
func (AppendIntReturn) PrepareMaxInPortId ¶
func (em AppendIntReturn) PrepareMaxInPortId(maxInPortId int)
func (AppendIntReturn) PrepareMaxOutPortId ¶
func (em AppendIntReturn) PrepareMaxOutPortId(maxOutPortId int)
func (AppendIntReturn) SetInPortById ¶
func (AppendIntReturn) SetOutPortById ¶
type AppendIntegerToArray ¶
type AppendIntegerToArray struct {
BaseExecNode
}
AppendIntegerToArray 数组追加整型
func (AppendIntegerToArray) CloneInOutPort ¶
func (*AppendIntegerToArray) Exec ¶
func (em *AppendIntegerToArray) Exec() (int, error)
func (AppendIntegerToArray) GetInPortCount ¶
func (em AppendIntegerToArray) GetInPortCount() 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 (AppendIntegerToArray) IsOutPortExec ¶
func (AppendIntegerToArray) PrepareMaxInPortId ¶
func (em AppendIntegerToArray) PrepareMaxInPortId(maxInPortId int)
func (AppendIntegerToArray) PrepareMaxOutPortId ¶
func (em AppendIntegerToArray) PrepareMaxOutPortId(maxOutPortId int)
func (AppendIntegerToArray) SetInPortById ¶
func (AppendIntegerToArray) SetOutPortById ¶
type AppendStringReturn ¶
type AppendStringReturn struct {
BaseExecNode
}
AppendStringReturn 追加返回结果(String)
func (AppendStringReturn) CloneInOutPort ¶
func (*AppendStringReturn) Exec ¶
func (em *AppendStringReturn) Exec() (int, error)
func (AppendStringReturn) GetInPortCount ¶
func (em AppendStringReturn) GetInPortCount() int
func (*AppendStringReturn) GetName ¶
func (em *AppendStringReturn) GetName() string
func (AppendStringReturn) GetOutPortCount ¶
func (em AppendStringReturn) GetOutPortCount() int
func (AppendStringReturn) GetOutPortParamStartIndex ¶
func (em AppendStringReturn) GetOutPortParamStartIndex() int
func (AppendStringReturn) IsInPortExec ¶
func (AppendStringReturn) IsOutPortExec ¶
func (AppendStringReturn) PrepareMaxInPortId ¶
func (em AppendStringReturn) PrepareMaxInPortId(maxInPortId int)
func (AppendStringReturn) PrepareMaxOutPortId ¶
func (em AppendStringReturn) PrepareMaxOutPortId(maxOutPortId int)
func (AppendStringReturn) SetInPortById ¶
func (AppendStringReturn) SetOutPortById ¶
type AppendStringToArray ¶
type AppendStringToArray struct {
BaseExecNode
}
AppendStringToArray 数组追加字符串
func (AppendStringToArray) CloneInOutPort ¶
func (*AppendStringToArray) Exec ¶
func (em *AppendStringToArray) Exec() (int, error)
func (AppendStringToArray) GetInPortCount ¶
func (em AppendStringToArray) GetInPortCount() 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 (AppendStringToArray) IsOutPortExec ¶
func (AppendStringToArray) PrepareMaxInPortId ¶
func (em AppendStringToArray) PrepareMaxInPortId(maxInPortId int)
func (AppendStringToArray) PrepareMaxOutPortId ¶
func (em AppendStringToArray) PrepareMaxOutPortId(maxOutPortId int)
func (AppendStringToArray) SetInPortById ¶
func (AppendStringToArray) SetOutPortById ¶
type ArrayElement ¶
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 []OutputConfig `json:"outputs"`
}
func (*BaseExecConfig) GetMaxInPortId ¶
func (bc *BaseExecConfig) GetMaxInPortId() int
func (*BaseExecConfig) GetMaxOutPortId ¶
func (bc *BaseExecConfig) GetMaxOutPortId() int
type BaseExecNode ¶
type BaseExecNode struct {
// 执行时初始化的数据
*ExecContext
// contains filtered or unexported fields
}
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) 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 (*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) GetInPortStr ¶
func (en *BaseExecNode) GetInPortStr(index int) (Port_Str, bool)
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) GetVariableName ¶
func (en *BaseExecNode) GetVariableName() string
func (BaseExecNode) IsInPortExec ¶
func (BaseExecNode) IsOutPortExec ¶
func (BaseExecNode) PrepareMaxInPortId ¶
func (em BaseExecNode) PrepareMaxInPortId(maxInPortId int)
func (BaseExecNode) PrepareMaxOutPortId ¶
func (em BaseExecNode) PrepareMaxOutPortId(maxOutPortId int)
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) SetInPortById ¶
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) SetOutPortById ¶
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 (*Blueprint) RegisterExecNode ¶
func (*Blueprint) ReleaseGraph ¶
func (*Blueprint) StartHotReload ¶
type BoolIf ¶
type BoolIf struct {
BaseExecNode
}
BoolIf 布尔判断
func (BoolIf) CloneInOutPort ¶
func (BoolIf) GetInPortCount ¶
func (em BoolIf) GetInPortCount() int
func (BoolIf) GetOutPortCount ¶
func (em BoolIf) GetOutPortCount() int
func (BoolIf) GetOutPortParamStartIndex ¶
func (em BoolIf) GetOutPortParamStartIndex() int
func (BoolIf) IsInPortExec ¶
func (BoolIf) IsOutPortExec ¶
func (BoolIf) PrepareMaxInPortId ¶
func (em BoolIf) PrepareMaxInPortId(maxInPortId int)
func (BoolIf) PrepareMaxOutPortId ¶
func (em BoolIf) PrepareMaxOutPortId(maxOutPortId int)
func (BoolIf) SetInPortById ¶
func (BoolIf) SetOutPortById ¶
type CloseTimer ¶
type CloseTimer struct {
BaseExecNode
}
CloseTimer 关闭定时器
func (CloseTimer) CloneInOutPort ¶
func (*CloseTimer) Exec ¶
func (em *CloseTimer) Exec() (int, error)
func (CloseTimer) GetInPortCount ¶
func (em CloseTimer) GetInPortCount() 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 (CloseTimer) IsOutPortExec ¶
func (CloseTimer) PrepareMaxInPortId ¶
func (em CloseTimer) PrepareMaxInPortId(maxInPortId int)
func (CloseTimer) PrepareMaxOutPortId ¶
func (em CloseTimer) PrepareMaxOutPortId(maxOutPortId int)
func (CloseTimer) SetInPortById ¶
func (CloseTimer) SetOutPortById ¶
type CreateIntArray ¶
type CreateIntArray struct {
BaseExecNode
}
CreateIntArray 创建整型数组
func (CreateIntArray) CloneInOutPort ¶
func (*CreateIntArray) Exec ¶
func (em *CreateIntArray) Exec() (int, error)
func (CreateIntArray) GetInPortCount ¶
func (em CreateIntArray) GetInPortCount() 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 (CreateIntArray) IsOutPortExec ¶
func (CreateIntArray) PrepareMaxInPortId ¶
func (em CreateIntArray) PrepareMaxInPortId(maxInPortId int)
func (CreateIntArray) PrepareMaxOutPortId ¶
func (em CreateIntArray) PrepareMaxOutPortId(maxOutPortId int)
func (CreateIntArray) SetInPortById ¶
func (CreateIntArray) SetOutPortById ¶
type CreateStringArray ¶
type CreateStringArray struct {
BaseExecNode
}
CreateStringArray 创建字符串数组
func (CreateStringArray) CloneInOutPort ¶
func (*CreateStringArray) Exec ¶
func (em *CreateStringArray) Exec() (int, error)
func (CreateStringArray) GetInPortCount ¶
func (em CreateStringArray) GetInPortCount() 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 (CreateStringArray) IsOutPortExec ¶
func (CreateStringArray) PrepareMaxInPortId ¶
func (em CreateStringArray) PrepareMaxInPortId(maxInPortId int)
func (CreateStringArray) PrepareMaxOutPortId ¶
func (em CreateStringArray) PrepareMaxOutPortId(maxOutPortId int)
func (CreateStringArray) SetInPortById ¶
func (CreateStringArray) SetOutPortById ¶
type CreateTimer ¶
type CreateTimer struct {
BaseExecNode
}
CreateTimer 创建定时器
func (CreateTimer) CloneInOutPort ¶
func (*CreateTimer) Exec ¶
func (em *CreateTimer) Exec() (int, error)
func (CreateTimer) GetInPortCount ¶
func (em CreateTimer) GetInPortCount() 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 (CreateTimer) IsOutPortExec ¶
func (CreateTimer) PrepareMaxInPortId ¶
func (em CreateTimer) PrepareMaxInPortId(maxInPortId int)
func (CreateTimer) PrepareMaxOutPortId ¶
func (em CreateTimer) PrepareMaxOutPortId(maxOutPortId int)
func (CreateTimer) SetInPortById ¶
func (CreateTimer) SetOutPortById ¶
type DebugOutput ¶
type DebugOutput struct {
BaseExecNode
}
func (DebugOutput) CloneInOutPort ¶
func (*DebugOutput) Exec ¶
func (em *DebugOutput) Exec() (int, error)
func (DebugOutput) GetInPortCount ¶
func (em DebugOutput) GetInPortCount() int
func (*DebugOutput) GetName ¶
func (em *DebugOutput) GetName() string
func (DebugOutput) GetOutPortCount ¶
func (em DebugOutput) GetOutPortCount() int
func (DebugOutput) GetOutPortParamStartIndex ¶
func (em DebugOutput) GetOutPortParamStartIndex() int
func (DebugOutput) IsInPortExec ¶
func (DebugOutput) IsOutPortExec ¶
func (DebugOutput) PrepareMaxInPortId ¶
func (em DebugOutput) PrepareMaxInPortId(maxInPortId int)
func (DebugOutput) PrepareMaxOutPortId ¶
func (em DebugOutput) PrepareMaxOutPortId(maxOutPortId int)
func (DebugOutput) SetInPortById ¶
func (DebugOutput) SetOutPortById ¶
type DivInt ¶
type DivInt struct {
BaseExecNode
}
DivInt 除(int)
func (DivInt) CloneInOutPort ¶
func (DivInt) GetInPortCount ¶
func (em DivInt) GetInPortCount() int
func (DivInt) GetOutPortCount ¶
func (em DivInt) GetOutPortCount() int
func (DivInt) GetOutPortParamStartIndex ¶
func (em DivInt) GetOutPortParamStartIndex() int
func (DivInt) IsInPortExec ¶
func (DivInt) IsOutPortExec ¶
func (DivInt) PrepareMaxInPortId ¶
func (em DivInt) PrepareMaxInPortId(maxInPortId int)
func (DivInt) PrepareMaxOutPortId ¶
func (em DivInt) PrepareMaxOutPortId(maxOutPortId int)
func (DivInt) SetInPortById ¶
func (DivInt) SetOutPortById ¶
type Entrance_ArrayParam ¶
type Entrance_ArrayParam struct {
BaseExecNode
}
func (Entrance_ArrayParam) CloneInOutPort ¶
func (*Entrance_ArrayParam) Exec ¶
func (em *Entrance_ArrayParam) Exec() (int, error)
func (Entrance_ArrayParam) GetInPortCount ¶
func (em Entrance_ArrayParam) GetInPortCount() 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 (Entrance_ArrayParam) IsOutPortExec ¶
func (Entrance_ArrayParam) PrepareMaxInPortId ¶
func (em Entrance_ArrayParam) PrepareMaxInPortId(maxInPortId int)
func (Entrance_ArrayParam) PrepareMaxOutPortId ¶
func (em Entrance_ArrayParam) PrepareMaxOutPortId(maxOutPortId int)
func (Entrance_ArrayParam) SetInPortById ¶
func (Entrance_ArrayParam) SetOutPortById ¶
type Entrance_IntParam ¶
type Entrance_IntParam struct {
BaseExecNode
}
func (Entrance_IntParam) CloneInOutPort ¶
func (*Entrance_IntParam) Exec ¶
func (em *Entrance_IntParam) Exec() (int, error)
func (Entrance_IntParam) GetInPortCount ¶
func (em Entrance_IntParam) GetInPortCount() 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 (Entrance_IntParam) IsOutPortExec ¶
func (Entrance_IntParam) PrepareMaxInPortId ¶
func (em Entrance_IntParam) PrepareMaxInPortId(maxInPortId int)
func (Entrance_IntParam) PrepareMaxOutPortId ¶
func (em Entrance_IntParam) PrepareMaxOutPortId(maxOutPortId int)
func (Entrance_IntParam) SetInPortById ¶
func (Entrance_IntParam) SetOutPortById ¶
type Entrance_Timer ¶
type Entrance_Timer struct {
BaseExecNode
}
func (Entrance_Timer) CloneInOutPort ¶
func (*Entrance_Timer) Exec ¶
func (em *Entrance_Timer) Exec() (int, error)
func (Entrance_Timer) GetInPortCount ¶
func (em Entrance_Timer) GetInPortCount() 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 (Entrance_Timer) IsOutPortExec ¶
func (Entrance_Timer) PrepareMaxInPortId ¶
func (em Entrance_Timer) PrepareMaxInPortId(maxInPortId int)
func (Entrance_Timer) PrepareMaxOutPortId ¶
func (em Entrance_Timer) PrepareMaxOutPortId(maxOutPortId int)
func (Entrance_Timer) SetInPortById ¶
func (Entrance_Timer) SetOutPortById ¶
type EqualInteger ¶
type EqualInteger struct {
BaseExecNode
}
EqualInteger 等于(整型)==
func (EqualInteger) CloneInOutPort ¶
func (*EqualInteger) Exec ¶
func (em *EqualInteger) Exec() (int, error)
func (EqualInteger) GetInPortCount ¶
func (em EqualInteger) GetInPortCount() 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 (EqualInteger) IsOutPortExec ¶
func (EqualInteger) PrepareMaxInPortId ¶
func (em EqualInteger) PrepareMaxInPortId(maxInPortId int)
func (EqualInteger) PrepareMaxOutPortId ¶
func (em EqualInteger) PrepareMaxOutPortId(maxOutPortId int)
func (EqualInteger) SetInPortById ¶
func (EqualInteger) SetOutPortById ¶
type EqualSwitch ¶
type EqualSwitch struct {
BaseExecNode
}
EqualSwitch 等于分支==
func (EqualSwitch) CloneInOutPort ¶
func (*EqualSwitch) Exec ¶
func (em *EqualSwitch) Exec() (int, error)
func (EqualSwitch) GetInPortCount ¶
func (em EqualSwitch) GetInPortCount() int
func (*EqualSwitch) GetName ¶
func (em *EqualSwitch) GetName() string
func (EqualSwitch) GetOutPortCount ¶
func (em EqualSwitch) GetOutPortCount() int
func (EqualSwitch) GetOutPortParamStartIndex ¶
func (em EqualSwitch) GetOutPortParamStartIndex() int
func (EqualSwitch) IsInPortExec ¶
func (EqualSwitch) IsOutPortExec ¶
func (EqualSwitch) PrepareMaxInPortId ¶
func (em EqualSwitch) PrepareMaxInPortId(maxInPortId int)
func (EqualSwitch) PrepareMaxOutPortId ¶
func (em EqualSwitch) PrepareMaxOutPortId(maxOutPortId int)
func (EqualSwitch) SetInPortById ¶
func (EqualSwitch) SetOutPortById ¶
type ExecContext ¶
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
type Foreach ¶
type Foreach struct {
BaseExecNode
}
func (Foreach) CloneInOutPort ¶
func (Foreach) GetInPortCount ¶
func (em Foreach) GetInPortCount() int
func (Foreach) GetOutPortCount ¶
func (em Foreach) GetOutPortCount() int
func (Foreach) GetOutPortParamStartIndex ¶
func (em Foreach) GetOutPortParamStartIndex() int
func (Foreach) IsInPortExec ¶
func (Foreach) IsOutPortExec ¶
func (Foreach) PrepareMaxInPortId ¶
func (em Foreach) PrepareMaxInPortId(maxInPortId int)
func (Foreach) PrepareMaxOutPortId ¶
func (em Foreach) PrepareMaxOutPortId(maxOutPortId int)
func (Foreach) SetInPortById ¶
func (Foreach) SetOutPortById ¶
type ForeachIntArray ¶
type ForeachIntArray struct {
BaseExecNode
}
func (ForeachIntArray) CloneInOutPort ¶
func (*ForeachIntArray) Exec ¶
func (em *ForeachIntArray) Exec() (int, error)
func (ForeachIntArray) GetInPortCount ¶
func (em ForeachIntArray) GetInPortCount() int
func (*ForeachIntArray) GetName ¶
func (em *ForeachIntArray) GetName() string
func (ForeachIntArray) GetOutPortCount ¶
func (em ForeachIntArray) GetOutPortCount() int
func (ForeachIntArray) GetOutPortParamStartIndex ¶
func (em ForeachIntArray) GetOutPortParamStartIndex() int
func (ForeachIntArray) IsInPortExec ¶
func (ForeachIntArray) IsOutPortExec ¶
func (ForeachIntArray) PrepareMaxInPortId ¶
func (em ForeachIntArray) PrepareMaxInPortId(maxInPortId int)
func (ForeachIntArray) PrepareMaxOutPortId ¶
func (em ForeachIntArray) PrepareMaxOutPortId(maxOutPortId int)
func (ForeachIntArray) SetInPortById ¶
func (ForeachIntArray) SetOutPortById ¶
type GetArrayInt ¶
type GetArrayInt struct {
BaseExecNode
}
func (GetArrayInt) CloneInOutPort ¶
func (*GetArrayInt) Exec ¶
func (em *GetArrayInt) Exec() (int, error)
func (GetArrayInt) GetInPortCount ¶
func (em GetArrayInt) GetInPortCount() 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 (GetArrayInt) IsOutPortExec ¶
func (GetArrayInt) PrepareMaxInPortId ¶
func (em GetArrayInt) PrepareMaxInPortId(maxInPortId int)
func (GetArrayInt) PrepareMaxOutPortId ¶
func (em GetArrayInt) PrepareMaxOutPortId(maxOutPortId int)
func (GetArrayInt) SetInPortById ¶
func (GetArrayInt) SetOutPortById ¶
type GetArrayLen ¶
type GetArrayLen struct {
BaseExecNode
}
func (GetArrayLen) CloneInOutPort ¶
func (*GetArrayLen) Exec ¶
func (em *GetArrayLen) Exec() (int, error)
func (GetArrayLen) GetInPortCount ¶
func (em GetArrayLen) GetInPortCount() 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 (GetArrayLen) IsOutPortExec ¶
func (GetArrayLen) PrepareMaxInPortId ¶
func (em GetArrayLen) PrepareMaxInPortId(maxInPortId int)
func (GetArrayLen) PrepareMaxOutPortId ¶
func (em GetArrayLen) PrepareMaxOutPortId(maxOutPortId int)
func (GetArrayLen) SetInPortById ¶
func (GetArrayLen) SetOutPortById ¶
type GetArrayString ¶
type GetArrayString struct {
BaseExecNode
}
func (GetArrayString) CloneInOutPort ¶
func (*GetArrayString) Exec ¶
func (em *GetArrayString) Exec() (int, error)
func (GetArrayString) GetInPortCount ¶
func (em GetArrayString) GetInPortCount() 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 (GetArrayString) IsOutPortExec ¶
func (GetArrayString) PrepareMaxInPortId ¶
func (em GetArrayString) PrepareMaxInPortId(maxInPortId int)
func (GetArrayString) PrepareMaxOutPortId ¶
func (em GetArrayString) PrepareMaxOutPortId(maxOutPortId int)
func (GetArrayString) SetInPortById ¶
func (GetArrayString) SetOutPortById ¶
type GetVariablesNode ¶
type GetVariablesNode struct {
BaseExecNode
// contains filtered or unexported fields
}
func (GetVariablesNode) CloneInOutPort ¶
func (*GetVariablesNode) Exec ¶
func (g *GetVariablesNode) Exec() (int, error)
func (GetVariablesNode) GetInPortCount ¶
func (em GetVariablesNode) GetInPortCount() 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 (GetVariablesNode) IsOutPortExec ¶
func (GetVariablesNode) PrepareMaxInPortId ¶
func (em GetVariablesNode) PrepareMaxInPortId(maxInPortId int)
func (GetVariablesNode) PrepareMaxOutPortId ¶
func (em GetVariablesNode) PrepareMaxOutPortId(maxOutPortId int)
func (GetVariablesNode) SetInPortById ¶
func (GetVariablesNode) SetOutPortById ¶
type Graph ¶
type Graph struct {
IBlueprintModule
// contains filtered or unexported fields
}
func (*Graph) GetAndCreateReturnPort ¶
func (*Graph) GetGraphFileName ¶
func (*Graph) GetNodeInPortValue ¶
func (*Graph) GetNodeOutPortValue ¶
type GraphPool ¶
type GraphPool struct {
// contains filtered or unexported fields
}
func (*GraphPool) GetBaseGraph ¶
type GreaterThanInteger ¶
type GreaterThanInteger struct {
BaseExecNode
}
GreaterThanInteger 大于(整型) >
func (GreaterThanInteger) CloneInOutPort ¶
func (*GreaterThanInteger) Exec ¶
func (em *GreaterThanInteger) Exec() (int, error)
func (GreaterThanInteger) GetInPortCount ¶
func (em GreaterThanInteger) GetInPortCount() 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 (GreaterThanInteger) IsOutPortExec ¶
func (GreaterThanInteger) PrepareMaxInPortId ¶
func (em GreaterThanInteger) PrepareMaxInPortId(maxInPortId int)
func (GreaterThanInteger) PrepareMaxOutPortId ¶
func (em GreaterThanInteger) PrepareMaxOutPortId(maxOutPortId int)
func (GreaterThanInteger) SetInPortById ¶
func (GreaterThanInteger) SetOutPortById ¶
type IBaseExecNode ¶
type IBaseExecNode interface {
GetPorts() ([]IPort, []IPort)
GetBlueprintModule() IBlueprintModule
// contains filtered or unexported methods
}
IBaseExecNode 实际注册的执行结点的基础结构体
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 {
IBaseExecNode
GetName() string
DoNext(index int) error
Exec() (int, error) // 返回后续执行的Node的Index
GetNextExecLen() int
// contains filtered or unexported methods
}
IExecNode 实际注册的执行结点
type IExecNodeType ¶
type IGraph ¶
type IGraph interface {
Do(entranceID int64, args ...any) (Port_Array, error)
Release()
GetGraphFileName() string
HotReload(newBaseGraph *baseGraph)
}
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
GetOutPortParamStartIndex() int
}
IInnerExecNode 配置生成的结点
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 NewPortExec ¶
func NewPortExec() IPort
func NewPortFloat ¶
func NewPortFloat() IPort
func NewPortInt ¶
func NewPortInt() IPort
func NewPortStr ¶
func NewPortStr() IPort
type InputConfig ¶
type LessThanInteger ¶
type LessThanInteger struct {
BaseExecNode
}
LessThanInteger 小于(整型) <
func (LessThanInteger) CloneInOutPort ¶
func (*LessThanInteger) Exec ¶
func (em *LessThanInteger) Exec() (int, error)
func (LessThanInteger) GetInPortCount ¶
func (em LessThanInteger) GetInPortCount() 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 (LessThanInteger) IsOutPortExec ¶
func (LessThanInteger) PrepareMaxInPortId ¶
func (em LessThanInteger) PrepareMaxInPortId(maxInPortId int)
func (LessThanInteger) PrepareMaxOutPortId ¶
func (em LessThanInteger) PrepareMaxOutPortId(maxOutPortId int)
func (LessThanInteger) SetInPortById ¶
func (LessThanInteger) SetOutPortById ¶
type ModInt ¶
type ModInt struct {
BaseExecNode
}
ModInt 取模(int)
func (ModInt) CloneInOutPort ¶
func (ModInt) GetInPortCount ¶
func (em ModInt) GetInPortCount() int
func (ModInt) GetOutPortCount ¶
func (em ModInt) GetOutPortCount() int
func (ModInt) GetOutPortParamStartIndex ¶
func (em ModInt) GetOutPortParamStartIndex() int
func (ModInt) IsInPortExec ¶
func (ModInt) IsOutPortExec ¶
func (ModInt) PrepareMaxInPortId ¶
func (em ModInt) PrepareMaxInPortId(maxInPortId int)
func (ModInt) PrepareMaxOutPortId ¶
func (em ModInt) PrepareMaxOutPortId(maxOutPortId int)
func (ModInt) SetInPortById ¶
func (ModInt) SetOutPortById ¶
type MulInt ¶
type MulInt struct {
BaseExecNode
}
MulInt 乘(int)
func (MulInt) CloneInOutPort ¶
func (MulInt) GetInPortCount ¶
func (em MulInt) GetInPortCount() int
func (MulInt) GetOutPortCount ¶
func (em MulInt) GetOutPortCount() int
func (MulInt) GetOutPortParamStartIndex ¶
func (em MulInt) GetOutPortParamStartIndex() int
func (MulInt) IsInPortExec ¶
func (MulInt) IsOutPortExec ¶
func (MulInt) PrepareMaxInPortId ¶
func (em MulInt) PrepareMaxInPortId(maxInPortId int)
func (MulInt) PrepareMaxOutPortId ¶
func (em MulInt) PrepareMaxOutPortId(maxOutPortId int)
func (MulInt) SetInPortById ¶
func (MulInt) SetOutPortById ¶
type MultiTypeValue ¶
type MultiTypeValue struct {
Value any
}
func (*MultiTypeValue) UnmarshalJSON ¶
func (v *MultiTypeValue) UnmarshalJSON(data []byte) error
实现json.Unmarshaler接口,自定义解码逻辑
type OutputConfig ¶
type Port ¶
type Port[T iPortType] struct {
PortVal T
}
func (*Port[T]) AppendArrayData ¶
func (*Port[T]) AppendArrayValInt ¶
func (*Port[T]) AppendArrayValStr ¶
func (*Port[T]) GetArray ¶
func (em *Port[T]) GetArray() (Port_Array, bool)
func (*Port[T]) GetArrayLen ¶
func (*Port[T]) GetFloat ¶
func (em *Port[T]) GetFloat() (Port_Float, bool)
func (*Port[T]) IsPortExec ¶
func (*Port[T]) SetFloat ¶
func (em *Port[T]) SetFloat(val Port_Float) bool
type Port_Array ¶
type Port_Array []ArrayData
type Port_Float ¶
type Port_Float = float64
type Probability ¶
type Probability struct {
BaseExecNode
}
Probability 概率判断(万分比)
func (Probability) CloneInOutPort ¶
func (*Probability) Exec ¶
func (em *Probability) Exec() (int, error)
func (Probability) GetInPortCount ¶
func (em Probability) GetInPortCount() 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 (Probability) IsOutPortExec ¶
func (Probability) PrepareMaxInPortId ¶
func (em Probability) PrepareMaxInPortId(maxInPortId int)
func (Probability) PrepareMaxOutPortId ¶
func (em Probability) PrepareMaxOutPortId(maxOutPortId int)
func (Probability) SetInPortById ¶
func (Probability) SetOutPortById ¶
type RandNumber ¶
type RandNumber struct {
BaseExecNode
}
RandNumber 范围随机[0,99]
func (RandNumber) CloneInOutPort ¶
func (*RandNumber) Exec ¶
func (em *RandNumber) Exec() (int, error)
func (RandNumber) GetInPortCount ¶
func (em RandNumber) GetInPortCount() 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 (RandNumber) IsOutPortExec ¶
func (RandNumber) PrepareMaxInPortId ¶
func (em RandNumber) PrepareMaxInPortId(maxInPortId int)
func (RandNumber) PrepareMaxOutPortId ¶
func (em RandNumber) PrepareMaxOutPortId(maxOutPortId int)
func (RandNumber) SetInPortById ¶
func (RandNumber) SetOutPortById ¶
type RangeCompare ¶
type RangeCompare struct {
BaseExecNode
}
RangeCompare 范围比较<=
func (RangeCompare) CloneInOutPort ¶
func (*RangeCompare) Exec ¶
func (em *RangeCompare) Exec() (int, error)
func (RangeCompare) GetInPortCount ¶
func (em RangeCompare) GetInPortCount() 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 (RangeCompare) IsOutPortExec ¶
func (RangeCompare) PrepareMaxInPortId ¶
func (em RangeCompare) PrepareMaxInPortId(maxInPortId int)
func (RangeCompare) PrepareMaxOutPortId ¶
func (em RangeCompare) PrepareMaxOutPortId(maxOutPortId int)
func (RangeCompare) SetInPortById ¶
func (RangeCompare) SetOutPortById ¶
type Sequence ¶
type Sequence struct {
BaseExecNode
}
func (Sequence) CloneInOutPort ¶
func (Sequence) GetInPortCount ¶
func (em Sequence) GetInPortCount() int
func (Sequence) GetOutPortCount ¶
func (em Sequence) GetOutPortCount() int
func (Sequence) GetOutPortParamStartIndex ¶
func (em Sequence) GetOutPortParamStartIndex() int
func (Sequence) IsInPortExec ¶
func (Sequence) IsOutPortExec ¶
func (Sequence) PrepareMaxInPortId ¶
func (em Sequence) PrepareMaxInPortId(maxInPortId int)
func (Sequence) PrepareMaxOutPortId ¶
func (em Sequence) PrepareMaxOutPortId(maxOutPortId int)
func (Sequence) SetInPortById ¶
func (Sequence) SetOutPortById ¶
type SetVariablesNode ¶
type SetVariablesNode struct {
BaseExecNode
// contains filtered or unexported fields
}
func (SetVariablesNode) CloneInOutPort ¶
func (*SetVariablesNode) Exec ¶
func (g *SetVariablesNode) Exec() (int, error)
func (SetVariablesNode) GetInPortCount ¶
func (em SetVariablesNode) GetInPortCount() 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 (SetVariablesNode) IsOutPortExec ¶
func (SetVariablesNode) PrepareMaxInPortId ¶
func (em SetVariablesNode) PrepareMaxInPortId(maxInPortId int)
func (SetVariablesNode) PrepareMaxOutPortId ¶
func (em SetVariablesNode) PrepareMaxOutPortId(maxOutPortId int)
func (SetVariablesNode) SetInPortById ¶
func (SetVariablesNode) SetOutPortById ¶
type SubInt ¶
type SubInt struct {
BaseExecNode
}
SubInt 减(int)
func (SubInt) CloneInOutPort ¶
func (SubInt) GetInPortCount ¶
func (em SubInt) GetInPortCount() int
func (SubInt) GetOutPortCount ¶
func (em SubInt) GetOutPortCount() int
func (SubInt) GetOutPortParamStartIndex ¶
func (em SubInt) GetOutPortParamStartIndex() int
func (SubInt) IsInPortExec ¶
func (SubInt) IsOutPortExec ¶
func (SubInt) PrepareMaxInPortId ¶
func (em SubInt) PrepareMaxInPortId(maxInPortId int)
func (SubInt) PrepareMaxOutPortId ¶
func (em SubInt) PrepareMaxOutPortId(maxOutPortId int)
func (SubInt) SetInPortById ¶
func (SubInt) SetOutPortById ¶
Click to show internal directories.
Click to hide internal directories.