FAMIXAssociation is an abstract superclass for relationships between Famix named entities. It defines a polymorphic API refined by subclasses: essentially from, to, next and previous.
From and To properties are abstract at this level, but specific
implementations can have multiple ends and properties. For example, FAMIXInheritance has: (i) From mapped to the subclass; (ii) To mapped to the superclass. Next and Previous properties provide an order of the appearence of these associations in code. The order is calculated within a particular relationship for example, method invocation order within a calling method (from). For example in java, the following code method a() { b(); c(); } will produce two invocation associations first from method a to method b, and second from method a to method c. These associations are bound together and can be navigated with previous and next.
Excellent.
Doru
On Wed, Nov 23, 2011 at 3:56 PM, Usman Bhatti usman.bhatti@gmail.com wrote:
FAMIXAssociation is an abstract superclass for relationships between Famix named entities. It defines a polymorphic API refined by subclasses: essentially from, to, next and previous. From and To properties are abstract at this level, but specific implementations can have multiple ends and properties. For example, FAMIXInheritance has: (i) From mapped to the subclass; (ii) To mapped to the superclass. Next and Previous properties provide an order of the appearence of these associations in code. The order is calculated within a particular relationship for example, method invocation order within a calling method (from). For example in java, the following code method a() { b(); c(); } will produce two invocation associations first from method a to method b, and second from method a to method c. These associations are bound together and can be navigated with previous and next.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
For example in java, the following code method a() { b(); c(); } will produce two invocation associations first from method a to method b, and second from method a to method c. These associations are bound together and can be navigated with previous and next.
Maybe use another example:
method a() { b(); c(); c(); a() }
How many associations?
Alexandre
----- Mail original -----
De: "Alexandre Bergel" alexandre.bergel@me.com À: "Moose-related development" moose-dev@iam.unibe.ch Envoyé: Mercredi 23 Novembre 2011 16:50:46 Objet: [Moose-dev] Re: [Better Comment Initiative] FamixAssociation
For example in java, the following code method a() { b(); c(); } will produce two invocation associations first from method a to method b, and second from method a to method c. These associations are bound together and can be navigated with previous and next.
Maybe use another example:
method a() { b(); c(); c(); a() }
How many associations?
4 invocations:
a->b next: a->c next: a->c next: a->a
nicolas
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