Ana içeriğe geç

Class: SimpleToolNodeMapping

Hierarchy

Constructors

constructor

new SimpleToolNodeMapping(objs?): SimpleToolNodeMapping

Parameters

NameTypeDefault value
objsBaseTool[][]

Returns

SimpleToolNodeMapping

Overrides

BaseObjectNodeMapping.constructor

Defined in

packages/core/src/objects/base.ts:93

Properties

_tools

Private _tools: Record<string, BaseTool>

Defined in

packages/core/src/objects/base.ts:91

Methods

_addObj

_addObj(tool): void

Parameters

NameType
toolBaseTool

Returns

void

Overrides

BaseObjectNodeMapping._addObj

Defined in

packages/core/src/objects/base.ts:109


_fromNode

_fromNode(node): BaseTool

Parameters

NameType
nodeBaseNode<Metadata>

Returns

BaseTool

Overrides

BaseObjectNodeMapping._fromNode

Defined in

packages/core/src/objects/base.ts:113


addObj

addObj(obj): void

Parameters

NameType
objBaseTool

Returns

void

Overrides

BaseObjectNodeMapping.addObj

Defined in

packages/core/src/objects/base.ts:128


fromNode

fromNode(node): BaseTool

Parameters

NameType
nodeBaseNode<Metadata>

Returns

BaseTool

Overrides

BaseObjectNodeMapping.fromNode

Defined in

packages/core/src/objects/base.ts:132


fromObjects

fromObjects<OT>(objs, ...args): BaseObjectNodeMapping

Type parameters

Name
OT

Parameters

NameType
objsany
...argsany[]

Returns

BaseObjectNodeMapping

Overrides

BaseObjectNodeMapping.fromObjects

Defined in

packages/core/src/objects/base.ts:140


objNodeMapping

objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Overrides

BaseObjectNodeMapping.objNodeMapping

Defined in

packages/core/src/objects/base.ts:101


persist

persist(persistDir, objNodeMappingFilename): void

Parameters

NameType
persistDirstring
objNodeMappingFilenamestring

Returns

void

Overrides

BaseObjectNodeMapping.persist

Defined in

packages/core/src/objects/base.ts:120


toNode

toNode(tool): TextNode<Metadata>

Parameters

NameType
toolBaseTool

Returns

TextNode<Metadata>

Overrides

BaseObjectNodeMapping.toNode

Defined in

packages/core/src/objects/base.ts:105


toNodes

toNodes(objs): TextNode<Metadata>[]

Parameters

NameType
objsBaseTool[]

Returns

TextNode<Metadata>[]

Overrides

BaseObjectNodeMapping.toNodes

Defined in

packages/core/src/objects/base.ts:124


validateObject

validateObject(obj): void

Parameters

NameType
objany

Returns

void

Inherited from

BaseObjectNodeMapping.validateObject

Defined in

packages/core/src/objects/base.ts:18


fromObjects

fromObjects(objs, ...args): BaseObjectNodeMapping

Parameters

NameType
objsany
...argsany[]

Returns

BaseObjectNodeMapping

Defined in

packages/core/src/objects/base.ts:136