Access to static fields in cytoscape core

Skip to first unread message

Thomas Pfau

Jul 20, 2016, 3:32:29 AM7/20/16
to cytoscape-discuss

I was wondering, whether it would be possible to make static fields in
internal cytoscape classes accessible via the API.
The reason I ask this, is that currently, when trying to build code that
uses some "implementation detail" from internal classes (like the name
given to a column when parsing sbml files with the default parser), it
is impossible to do so in a way that is not using local strings.
However, this makes an app dependent on the actual implementation of the
code used by cytoscape, which might simply change. Or one has to have
loads of "selection" dialogs, which is terribly annoying to the end user.
So, from a design point, would it make sense to have static field
classes in the API, that simply provide these types of objects?
In the sbml example: Having an SBMLFields class with all the static
final field declarations from the SBMLNetworkViewReader class?



Université du Luxembourg
Faculté des Sciences, de la Technologie et de la Communication
Campus Belval, Biotech II 423
6 avenue du Swing
L-4367 Belvaux
Tel: (+352) 46 66 44 5309

Matthias König

Jul 20, 2016, 4:00:19 AM7/20/16
to cytoscape-discuss
I also want to access the SBMLReader fields (mainly to provide the identical column names than the core reader).

People writing apps using networks read from core network parsers should be able to get the column names which are created.
I.e. there should be a static class for all the core readers which is exported by the reader app.
Not only SBML, but also biopax, graphml, ...
This will allow to easily write apps on top of standard file formats.

Matthias König

Jul 20, 2016, 5:54:45 AM7/20/16
to cytoscape-discuss
I opened an issue
I would be willing to contribute this if there is a core developer mentoring me

Reply all
Reply to author
0 new messages