eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[library] Make allInstances an iterator #606

Closed eclipse-ocl-bot closed 2 hours ago

eclipse-ocl-bot commented 2 hours ago

| --- | --- | | Bugzilla Link | 327386 | | Status | RESOLVED WONTFIX | | Importance | P3 enhancement | | Reported | Oct 09, 2010 06:35 EDT | | Modified | Feb 27, 2021 03:50 EDT | | Version | 3.0.0 | | Reporter | Ed Willink |

Description

The IterationTemplate allows early temination through setDone().

If allInstances() used this framework, the total model traversal could be terminated early.

NB. The partial traversal must be cached so that a further query completes it if necessary.

eclipse-ocl-bot commented 2 hours ago

By Ed Willink on Feb 27, 2021 03:50

The new LazyEcoreModelManager does a full model traversal once cachiing all possible subsequent accesses. An early termination does not make sense.