Class: SimpleToolNodeMapping
Hierarchy
-
↳
SimpleToolNodeMapping
Constructors
constructor
• new SimpleToolNodeMapping(objs?
): SimpleToolNodeMapping
Parameters
Name | Type | Default value |
---|---|---|
objs | BaseTool <any >[] | [] |
Returns
Overrides
BaseObjectNodeMapping.constructor
Defined in
packages/core/src/objects/base.ts:99
Properties
_tools
• Private
_tools: Record
<string
, BaseTool
<any
>>
Defined in
packages/core/src/objects/base.ts:97
Methods
_addObj
▸ _addObj(tool
): void
Parameters
Name | Type |
---|---|
tool | BaseTool <any > |
Returns
void
Overrides
Defined in
packages/core/src/objects/base.ts:115
_fromNode
▸ _fromNode(node
): BaseTool
<any
>
Parameters
Name | Type |
---|---|
node | BaseNode <Metadata > |
Returns
BaseTool
<any
>
Overrides
BaseObjectNodeMapping._fromNode
Defined in
packages/core/src/objects/base.ts:119
addObj
▸ addObj(obj
): void
Parameters
Name | Type |
---|---|
obj | BaseTool <any > |
Returns
void
Overrides
Defined in
packages/core/src/objects/base.ts:134
fromNode
▸ fromNode(node
): BaseTool
<any
>
Parameters
Name | Type |
---|---|
node | BaseNode <Metadata > |
Returns
BaseTool
<any
>
Overrides
BaseObjectNodeMapping.fromNode
Defined in
packages/core/src/objects/base.ts:138
fromObjects
▸ fromObjects<OT
>(objs
, ...args
): BaseObjectNodeMapping
Type parameters
Name |
---|
OT |
Parameters
Name | Type |
---|---|
objs | any |
...args | any [] |
Returns
Overrides
BaseObjectNodeMapping.fromObjects
Defined in
packages/core/src/objects/base.ts:146
objNodeMapping
▸ objNodeMapping(): Record
<any
, any
>
Returns
Record
<any
, any
>
Overrides
BaseObjectNodeMapping.objNodeMapping
Defined in
packages/core/src/objects/base.ts:107
persist
▸ persist(persistDir
, objNodeMappingFilename
): void
Parameters
Name | Type |
---|---|
persistDir | string |
objNodeMappingFilename | string |
Returns
void
Overrides
Defined in
packages/core/src/objects/base.ts:126
toNode
▸ toNode(tool
): TextNode
<Metadata
>
Parameters
Name | Type |
---|---|
tool | BaseTool <any > |
Returns
Overrides
Defined in
packages/core/src/objects/base.ts:111
toNodes
▸ toNodes(objs
): TextNode
<Metadata
>[]
Parameters
Name | Type |
---|---|
objs | BaseTool <any >[] |
Returns
Overrides
Defined in
packages/core/src/objects/base.ts:130