Hi!
Is it okay to assume that some FAMIX object may leave outside a model? There is the following method:
DSMCell>>configurationForNamespace
self accesses: (self from mooseModel sourceLanguage = #Smalltalk ifTrue: [ self from outgoingReferencesTo: self to ] ifFalse: [ (self from outgoingReferencesTo: self to) union: (self from accessTo: self to) ]). ... ^ self dependencies
What do you think about adding: self mooseModel ifNil: [ ^ self dependencies ]
It would make the DSM more robust. I tried to open a DSM on a namespace group defined as:
group := FAMIXNamespaceGroup new. group add: (FAMIXNamespace new name: 'name1'); add: (FAMIXNamespace new name: 'name2'); add: (FAMIXNamespace new name: 'name3').
It raises an error.
Alexandre
Good idea :) Thank you alex for your proposition :)
Cheers, Jannik
On Oct 12, 2010, at 20:02 , Alexandre Bergel wrote:
Hi!
Is it okay to assume that some FAMIX object may leave outside a model? There is the following method:
DSMCell>>configurationForNamespace
self accesses: (self from mooseModel sourceLanguage = #Smalltalk ifTrue: [ self from outgoingReferencesTo: self to ] ifFalse: [ (self from outgoingReferencesTo: self to) union: (self from accessTo: self to) ]). ... ^ self dependencies
What do you think about adding: self mooseModel ifNil: [ ^ self dependencies ]
It would make the DSM more robust. I tried to open a DSM on a namespace group defined as:
group := FAMIXNamespaceGroup new. group add: (FAMIXNamespace new name: 'name1'); add: (FAMIXNamespace new name: 'name2'); add: (FAMIXNamespace new name: 'name3').
It raises an error.
Alexandre
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--- Jannik Laval