Skip to main content


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 nameFriend
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
Previous Topic:Unregistering an EValidator
Next Topic:[Announce] Final Eclipse OCL 3.1.0 (Indigo Release) is now available
Goto Forum:
  


Current Time: Thu Apr 25 09:50:27 GMT 2024

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

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

Back to the top