I am using NSUML for a university project in which I need to navigate relatively freely through an NSUML model graph (I am using the NSUML version from the nsuml1_4 archive). Now, while the interface MAssociationEnd contains a method getParticipant() which allows me to navigate to the participating classifier, the interface MClassifier has no symmetric method that would allow me to navigate to the association ends it is connected to. In the UML 1.4 meta model, there is a 1:n association between Classifier and AssociationEnd. This missing method makes it quite hard to navigate through the model graph.
The class UMLClassifierImpl realizing the MClassifier interface, however, contains a method called getAssociation172() which would do that job. So I am wondering why the interface does not contain it.
Can anybody help me?
Thanks in advance.
Nils Bandener
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I am using NSUML for a university project in which I need to navigate relatively freely through an NSUML model graph (I am using the NSUML version from the nsuml1_4 archive). Now, while the interface MAssociationEnd contains a method getParticipant() which allows me to navigate to the participating classifier, the interface MClassifier has no symmetric method that would allow me to navigate to the association ends it is connected to. In the UML 1.4 meta model, there is a 1:n association between Classifier and AssociationEnd. This missing method makes it quite hard to navigate through the model graph.
The class UMLClassifierImpl realizing the MClassifier interface, however, contains a method called getAssociation172() which would do that job. So I am wondering why the interface does not contain it.
Can anybody help me?
Thanks in advance.
Nils Bandener
You could access opposite end of any association using association object. Look at AssociationUsingSample in samples directory on how to do it.
Needed association type is MAParticipantAssociation.