dgarijo / FragFlow

Project desinged for detecting common fragments in scientific workflows by reusing several existing graph mining techniques
2 stars 1 forks source link

OPMWTemplate2GraphWings and OPMWTemplate2GraphTaverna duplicate code #119

Open dgarijo opened 9 years ago

dgarijo commented 9 years ago

The only difference is a line which implements a different type of node. Separate the method into a more generic class (OPMWTemplate2Graph) and then 2 extensions. The method could be separated into an initialization in the extended class with the particular type of node and then the resto of the method in the generalized class.

dgarijo commented 9 years ago

There might be other differences. For example, the Taverna method reads files while the Wings one queries for URIs.