From 727ea4bae2d6f7aa1bb2eb3dd72321a197a63262 Mon Sep 17 00:00:00 2001 From: zhu4ling3 Date: Thu, 12 Apr 2018 23:56:30 -0400 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90dataRecord?= =?UTF-8?q?=E7=9A=84=E5=85=A8=E8=BF=87=E7=A8=8B=E6=97=B6=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UML/dataRecord.puml | 28 ++++------------------------ UML/version.puml | 3 +++ 2 files changed, 7 insertions(+), 24 deletions(-) create mode 100644 UML/version.puml diff --git a/UML/dataRecord.puml b/UML/dataRecord.puml index 461f2262..feb44325 100644 --- a/UML/dataRecord.puml +++ b/UML/dataRecord.puml @@ -1,4 +1,7 @@ @startuml + +title Data Recording + database mongoDB as db participant runDataRecord as rundr participant Process as run @@ -33,7 +36,6 @@ activate rundr run->runle ** : create runle ||| -||| run->ee ** :create evnetEngine object activate ee ee->ee ++ : init() @@ -45,7 +47,6 @@ run->ee ** :create evnetEngine object return return object ||| -||| run->me ** : new mainEngine(ee) activate me me->me ++ : init() @@ -85,7 +86,6 @@ run->me ** : new mainEngine(ee) me-->me--:return me-->run--: object ||| -||| run->me ++ : addGateway(ibGateway) me->gw ** : Create IbGateway(ee, "IB") activate gw @@ -96,15 +96,7 @@ run->me ++ : addGateway(ibGateway) ** 获取连接IB G/W的信息 end note gw->wrap ** : Create IbWrapper(self) - note right - IbApi是基于Boost.python的封装。 - 用C++实现,但是可以提供给Python程序使用。 - IbApi使用IB提供的C++接口源代码, - 来和IB网关进行数据交互 - IbApi提供两类函数功能: - 主动请求IB网关的功能 - 接收IB网关异步返回数据的功能 - end note + note right: IbApi是基于Boost.python的封装。\n用C++实现,但是可以提供给Python程序使用。 activate wrap wrap->wrap ++ : 构造函数() return object @@ -113,7 +105,6 @@ run->me ++ : addGateway(ibGateway) return object return ||| -||| run->me ++ : addApp() me->dr**: new DrEngine(me,ee) activate dr @@ -137,7 +128,6 @@ run->me ++ : addApp() run<--me -- : return ||| -||| run->ee: ee.regiser() 注册日志处理事件 activate ee note right @@ -146,7 +136,6 @@ run->ee: ee.regiser() 注册日志处理事件 end note return ||| -||| run->me++: me.Connect(IB) note right: 连接IB网关 me->gw ++ : gw.connect() @@ -201,29 +190,21 @@ run->me++: me.Connect(IB) return return run<--me--:return - -||| ||| run->ee ++ : ee.register(EVENT_LOG, le.processLogEvent) return - -||| ||| run->ee ++ : ee.register(EVENT_ERROR, le.processErrorEvent) return - -||| ||| loop run->run: sleep(1) end loop deactivate run ||| -||| gw->eeq ++: queue.put(tick/bar) return ||| -||| eetm->ee -- : ee.__runTimer() activate ee #green loop @@ -233,7 +214,6 @@ eetm->ee -- : ee.__runTimer() end loop deactivate ee ||| -||| eet->ee--: ee.run() activate ee #red loop diff --git a/UML/version.puml b/UML/version.puml new file mode 100644 index 00000000..f03b2d89 --- /dev/null +++ b/UML/version.puml @@ -0,0 +1,3 @@ +@startuml +version +@enduml \ No newline at end of file