Echtzeitsysteme / java-refactoring-ttc

Object-oriented Refactoring of Java Programs using Graph Transformation (TTC'2015)
0 stars 0 forks source link

Making the inheritance reference bidirectional #8

Closed tsdh closed 9 years ago

tsdh commented 9 years ago

Currently, the inheritance reference (which should actually be named superclass) is unidirectional. A TClass references its superclass if it has one but there's no efficient way to get the subclasses of a given class. But sadly, the refactorings pretty much depend on that.

Is it allowed to make that reference bidirectional or is that forbidden by "It is not allowed to make additional information available in the PG." in the case description? (I'd argue that this is no additional information but only a way to make existing information efficiently accessible.)

SvenPeldszus commented 9 years ago

Yes, I see that also not as additional information

I will include the bidirectional edge into the type graph so that everyone notices this.

tsdh commented 9 years ago

Perfect.