Class: Ports

Ports(options, portsStruct)

Processes and stores the values and meta data of a given port array structure

Constructor

new Ports(options, portsStruct)

Parameters:
Name Type Description
options Object Error, warning and debug function references
portsStruct Object Ports node to process
Source:

Members

(readonly) attrib :Object

Provides default `attrib` property to ensure node processing, always returns current meta values
Type:
  • Object
Source:

attrib

Continues node walking recursion through the current attrib node
Source:

(readonly) data :Object

Returns all processed data, including child data, of the this class
Type:
  • Object
Source:

(readonly) extraports :Object

Provides default `extraports` property to ensure node processing, always returns current meta values
Type:
  • Object
Source:

extraports

Loops through the `extraports` node and continues processing
Source:

meta :Array

Holds port meta data
Type:
  • Array
Source:

options :Object

Merge default options with given options
Type:
  • Object
Source:

(readonly) port :Array

Provides default `port` property to ensure node processing, always returns current port array values
Type:
  • Array
Source:

port

Continues node walking recursion through the current port node, creating child classes as needed
Source:

portArray :Array

Holds PortData children
Type:
  • Array
Source:

Methods

addPortMeta(portMeta)

Stores the port meta data by type
Parameters:
Name Type Description
portMeta Object Target port meta
Source:

parseStruct(curStruct)

Recursive parsing function, sets the value of this classes properties (if it exists), or calls the proper processing function, or builds required child classes for further processing
Parameters:
Name Type Description
curStruct Object Current node being processed
Source: