# Class: AggRoom

## core/agg-room~AggRoom

Class that controls one aggregator.

## Constructor

#### new AggRoom(aggregatornon-null, aggHousenon-null)

Initialize an AggRoom.

##### Parameters:

Name | Type | Description
--- | --- | ---
`aggregator` | Aggregator | The aggregator to manage.
`aggHouse` | AggHouse | The AggHouse instance.

Source:
  - core/agg-room.js, line 5

### Members

#### name

Get aggregator name.

Source:
  - core/agg-room.js, line 51

#### version

Get aggregator version.

Source:
  - core/agg-room.js, line 59

### Methods

#### containsClass(classId) → {boolean}

Check if the aggregator is responsible for some class.

##### Parameters:

Name | Type | Description
--- | --- | ---
`classId` | number | ID of class to check.

Source:
  - core/agg-room.js, line 79

##### Returns:

Responsible or not.

Type
  boolean

#### dispose()

Dispose worker.

Source:
  - core/agg-room.js, line 100

#### sendUpdate(input)

Send updated input to aggregator.

##### Parameters:

Name | Type | Description
--- | --- | ---
`input` | Object | Input data.

Source:
  - core/agg-room.js, line 89

##### Throws:

Throw an error when update is sent to a disposed AggRoom.

Type
  AggHouseRoomError

#### toString() → {string}

Get AggHouse info string.

Source:
  - core/agg-room.js, line 110

##### Returns:

AggHouse info string.

Type
  string