# Class: AggHouse

## AggHouse

Class that manages aggregators.

## Constructor

#### new AggHouse(optionalConfig)

Initialize an AggHouse.

##### Parameters:

Name | Type | Description
--- | --- | ---
`optionalConfig` | Object | Optional configurations.

Source:
  - agg-house.js, line 6

### Methods

#### getConfig(name) → {*}

Get configuration.

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | string | Configuration name.

Source:
  - agg-house.js, line 27

##### Returns:

Configuration value.

Type
  *

#### getData(aggregatorName) → (non-null) {Object}

Get data of an aggregator.

##### Parameters:

Name | Type | Description
--- | --- | ---
`aggregatorName` | string | Name of aggregator name to get data from.

Source:
  - agg-house.js, line 36

##### Returns:

Aggregator data.

Type
  Object

#### loadAggregator(aggregatornon-null)

Create an AggRoom for an aggregator add it to control list.

##### Parameters:

Name | Type | Description
--- | --- | ---
`aggregator` | Aggregator | Aggregator to load.

Source:
  - agg-house.js, line 59

#### unloadAggregator(aggregator)

Unload an aggregator and dispose its AggRoom.

##### Parameters:

Name | Type | Description
--- | --- | ---
`aggregator` | Aggregator | string | The aggregator to unload.

Source:
  - agg-house.js, line 75

#### updateData(aggregatorName, newData, isAppending)

Update data produced by an aggregator.

##### Parameters:

Name | Type | Description
--- | --- | ---
`aggregatorName` | string | Name of aggregator name to get data from.
`newData` | string | New data from aggregator.
`isAppending` | boolean | null | If is appending to or replacing original.

Source:
  - agg-house.js, line 47