-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
38 lines (28 loc) · 1.07 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
'use strict'
// import { VALIDATOR } from './Utils/Validator';
import { LOGGER as logger } from './Utils/Logger';
import { VALIDATOR as validator } from './Utils/Validator'
import { Aggregator } from './Components/Aggregator/Aggregator';
import { DataGrid } from './Utils/Model/DataGrid';
import { Block } from './Utils/Model/Block';
import { Link } from './Utils/Model/Link';
// logger.info('roger');
// LOGGER.info(VALIDATOR.IF_EMPTY(null));
logger.info("trying to initialize aggregator...");
var dataGrid = new DataGrid({
_root: new Block()
// locator: new Map<string,Block>()
});
logger.info("printing datagrid after creation...");
logger.debug(dataGrid);
var newBlock = new Block();
dataGrid.addBlock(dataGrid.root, newBlock);
logger.info("printing datagrid after adding new block...");
logger.debug(dataGrid);
logger.info("printing complete data grid...");
logger.debug(JSON.stringify(dataGrid, null, '\t'));
// var link = new Link({
// block: new Block()
// });
// logger.info(link);
// var agg = new Aggregator({ grid: });