Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » creating and calculating concrete using threading
creating and calculating concrete using threading [message #686511] Wed, 22 June 2011 11:53
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
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
Previous Topic:Unregistering an EValidator
Next Topic:[Announce] Final Eclipse OCL 3.1.0 (Indigo Release) is now available
Goto Forum:
  


Current Time: Tue Sep 16 13:35:52 GMT 2014

Powered by FUDForum. Page generated in 0.03511 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software