From 4aaf77a4233c240fa81fc08cfd4cc679cc9e0c1a Mon Sep 17 00:00:00 2001 From: zhu4ling3 Date: Mon, 9 Apr 2018 20:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EDataEngine=E7=9A=84=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UML/dataRecord.puml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/UML/dataRecord.puml b/UML/dataRecord.puml index 97b129db..df16137e 100644 --- a/UML/dataRecord.puml +++ b/UML/dataRecord.puml @@ -4,7 +4,7 @@ participant runDataRecord as rundr participant Process as run participant MainEngine as me participant LogEngine as runle -participant DataEngine as dt +participant DataEngine as dte participant LogEngine as le participant DrEngine as dr participant Queue as drq @@ -49,9 +49,24 @@ run->me ** : new mainEngine(ee) ee->eet ++ #red : thread.start() ee->eetm ++ #green : timer.start() ee-->me--: return - me->dt ** :创建DataEngine() - activate dt - dt->dt ++ : init() + me->dte ** :创建DataEngine() + activate dte + dte->dte ++ : init() + dte->dte ++ : registerEvent() + dte->ee ++ : ee.register(EVENT_CONTRACT, self.processContractEvent) + return + dte->ee ++ : ee.register(EVENT_ORDER, self.processOrderEvent) + return + dte->ee ++ : ee.register(EVENT_TRADE, self.processTradeEvent) + return + dte->ee ++ : ee.register(EVENT_POSITION, self.processPositionEvent) + return + dte->ee ++ : ee.register(EVENT_ACCOUNT, self.processAccountEvent) + return + dte->ee ++ : ee.register(EVENT_LOG, self.processLogEvent) + return + dte->ee ++ : ee.register(EVENT_ERROR, self.processErrorEvent) + return return return object me->le ** :创建LogEngine()