Home Reference Source Test
public class | source

FZPBus

FZP Bus class

Example:

const {FZBus} = require('fzp-js')

let bus = new FZBus()
bus.setId('sample')
bus.setModeMember('mode')

Constructor Summary

Public Constructor
public

FZPBus constructor

Member Summary

Public Members
public

Store the FZP bus id

public

Store the FZP node members as an array

Method Summary

Public Methods
public

check if the given node member name does not exist at the nodeMembers array

public

Return the id

public

Return the nodeMembers array

public

set(v: Object | String, m: Array)

public

Set the FZP bus id

public

add a new node member if not exist

public

Return the total number of nodeMembers

Public Constructors

public constructor() source

FZPBus constructor

Public Members

public id: String source

Store the FZP bus id

public nodeMembers: Array source

Store the FZP node members as an array

Public Methods

public existModeMember(m: String): Boolean source

check if the given node member name does not exist at the nodeMembers array

Params:

NameTypeAttributeDescription
m String

Return:

Boolean

public getId(): String source

Return the id

Return:

String

public getNodeMembers(): Array source

Return the nodeMembers array

Return:

Array

public set(v: Object | String, m: Array) source

Params:

NameTypeAttributeDescription
v Object | String
m Array

public setId(id: String): FZPBus source

Set the FZP bus id

Params:

NameTypeAttributeDescription
id String

Return:

FZPBus

public setNodeMember(m: String): FZPBus source

add a new node member if not exist

Params:

NameTypeAttributeDescription
m String

Return:

FZPBus

public totalNodeMembers(): Number source

Return the total number of nodeMembers

Return:

Number