On Jul 15, 2011, at 8:02 PM, Tudor Girba wrote:
Hi,
I discussed a bit with Andre, and we came to the following conclusion:
- the meta-model already acts as a context for the Fame import/export. Thus we do not
need to pass another context to the basic mechanism
I do not think it does. And we should pass the information at least up to the FMrepository
because else we cannot sort it out.
- the MooseImportingContext can be used to produce a
sub-meta-model that can easily be passed to the export
It looks a bit too meta for me. so we will have to filter meta model before filtering
model :(
Now this is clear that linked MooseContext to fame is ugly. It would be good that FAME
take this idea of context a bit better.
Because right now there is no dependencies checks done so we could filter out inconsistent
model.
Still the question was also about passing another param vs. storing the context in a moose
object.
Finally the FMmodel serialization has a problem because it does not have any idea of the
model. so we cannot simply
save a model with for example a version number that is passed by the model. so the API of
basing everything on elements
and not on a holder of elements which can have extra properties is not really good because
we lose the opportunity to hook more information in it.
So I was thinking to add
addModel: to FMRepository and to be able to query this model to get extra information.
I think that tracability is important.
Cheers,
Doru
On 15 Jul 2011, at 18:14, Andre Hora wrote:
we could add an extra parameter to a lot of
methods (exportingContext:...) or we could just set the context in the moose model
and the exporter ask the model for its exportingContext.
What do you think is the best?
We have the impression that the second is better.
we will implement it like that and write tests of course :) so this can be changed if
necessary.
On Fri, Jul 15, 2011 at 6:12 PM, Andre Hora <andrehoraa(a)gmail.com> wrote:
Hi guys
We are implementing a way to export a model and filter some entities.
Now we have a question:
--
Andre Hora
stef and andre
--
Andre Hora
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"We cannot reach the flow of things unless we let go."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev