新增DataEngine的处理
This commit is contained in:
parent
a0575aa7bf
commit
4aaf77a423
@ -4,7 +4,7 @@ participant runDataRecord as rundr
|
|||||||
participant Process as run
|
participant Process as run
|
||||||
participant MainEngine as me
|
participant MainEngine as me
|
||||||
participant LogEngine as runle
|
participant LogEngine as runle
|
||||||
participant DataEngine as dt
|
participant DataEngine as dte
|
||||||
participant LogEngine as le
|
participant LogEngine as le
|
||||||
participant DrEngine as dr
|
participant DrEngine as dr
|
||||||
participant Queue as drq
|
participant Queue as drq
|
||||||
@ -49,9 +49,24 @@ run->me ** : new mainEngine(ee)
|
|||||||
ee->eet ++ #red : thread.start()
|
ee->eet ++ #red : thread.start()
|
||||||
ee->eetm ++ #green : timer.start()
|
ee->eetm ++ #green : timer.start()
|
||||||
ee-->me--: return
|
ee-->me--: return
|
||||||
me->dt ** :创建DataEngine()
|
me->dte ** :创建DataEngine()
|
||||||
activate dt
|
activate dte
|
||||||
dt->dt ++ : init()
|
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
|
||||||
return object
|
return object
|
||||||
me->le ** :创建LogEngine()
|
me->le ** :创建LogEngine()
|
||||||
|
Loading…
Reference in New Issue
Block a user