Home Reference Source
public class | source

InterfaceTreeNode

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

edges: *

public

id: *

public

parent: *

public

root: *

public

value: *

Method Summary

Public Methods
public

createNewEdge(node: *): *

public

createNewNode(parent: *, edges: *[], value: undefined, hash: undefined): *

public

deserializeNode(buffer: *, offset: *, includeEdges: *, includeHashes: *): *

public

deserializeNodeData(buffer: *, offset: *): *

public
public

edgesPush(edge: *)

public

isLeaf(): *

public

serializeNode(includeEdges: *): *

public
public

It will also Validate its children automatically

public
Private Methods
private

_changedNode(node: *)

Public Constructors

public constructor() source

Public Members

public edges: * source

public id: * source

public parent: * source

public root: * source

public value: * source

Public Methods

public createNewEdge(node: *): * source

Params:

NameTypeAttributeDescription
node *

Return:

*

public createNewNode(parent: *, edges: *[], value: undefined, hash: undefined): * source

Params:

NameTypeAttributeDescription
parent *
edges *[]
  • optional
  • default: []
value undefined
  • optional
  • default: undefined
hash undefined
  • optional
  • default: undefined

Return:

*

public deserializeNode(buffer: *, offset: *, includeEdges: *, includeHashes: *): * source

Params:

NameTypeAttributeDescription
buffer *
offset *
includeEdges *
includeHashes *

Return:

*

public deserializeNodeData(buffer: *, offset: *): * source

Params:

NameTypeAttributeDescription
buffer *
offset *

Return:

*

public destroyNode() source

public edgesPush(edge: *) source

Params:

NameTypeAttributeDescription
edge *

public isLeaf(): * source

Return:

*

public serializeNode(includeEdges: *): * source

Params:

NameTypeAttributeDescription
includeEdges *

Return:

*

public serializeNodeData(): * source

Return:

*

public validateCompleteTreeNode(): boolean source

It will also Validate its children automatically

Return:

boolean

public validateTreeNode(): boolean source

Return:

boolean

Private Methods

private _changedNode(node: *) source

Params:

NameTypeAttributeDescription
node *