creating and calculating concrete using threading [message #686511] |
Wed, 22 June 2011 11:53 |
ModelGeek Mising name Messages: 550 Registered: June 2011 |
Senior Member |
|
|
Hi,
I create ecore model in a standalone java application programatically and i want to create and calculate 1000 XMI models using threading.
I am using
EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
new OCLInvocationDelegateFactory.Global());
EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI, new OCLSettingDelegateFactory.Global());
When i create 1000 model in one thread then every thing works fine but it takes long time to calculate as i go through all objects and try to invoke eGet method for all derived attributes and properties and as we know that OCL evaluation environments is not thread safe and i can not use multithreading so can you
please suggest a way to improve the processing time?
Is code generation can solve problem?
Please help me
|
|
|
Powered by
FUDForum. Page generated in 0.02414 seconds