|
classNetworkController{constructor(options:INetworkControllerOptions){this.init();}init(){this.versionManager=newVersionManager();//版本管理this.connectLayer=newConnectLayer();//连接层this.netWorkManager=newNetWorkManager();//网络状态管理this.taskListManager=newTaskListManager(this.versionManager);//任务队列管理this.dataListManager=newDataListManager();//待提交数据队列this.sendDataController=newSendDataController(this.taskListManager,this.dataListManager);//发送数据控制器this.receiveDataController=newReceiveDataController(this.taskListManager,this.dataListManager,this.netWorkManager);//接受数据控制器}}
|
|