Differences between revisions 2 and 3
Revision 2 as of 2010-07-08 17:42:46
Size: 1029
Editor: malbec
Comment:
Revision 3 as of 2010-07-08 17:43:25
Size: 1111
Editor: malbec
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
Should you choose to or are required to implement a new function entirely from scratch, you can derive a class either from org.cytoscape.equations.Function or org.cytoscape.equations.!AbstractFunction. While you gain some additional flexibility in the choice of arguments that your function may have by deriving your class directly from the Function class, this is not recommended and we suggest to derive your function from the !AbstractFunction class instead. Should you choose to or are required to implement a new function entirely from scratch, you can derive a class either from org.cytoscape.equations.Function or org.cytoscape.equations.!AbstractFunction. While you gain some additional flexibility in the choice of arguments that your function may have by deriving your class directly from the Function class, this is not recommended and we suggest to derive your function from the !AbstractFunction class instead.  Deriving from !AbstractFunction will greatly reduce the complexity of your task!

Implementing Attribute Equations Functions

You need the equations.jar file for this which comes with Cytoscape 2.8 and later. But, it is will be extremely helpful to study the source code for the built-in functions that are in the "equations" core Cytoscape library under src/org/cytoscape/equations/builtins. In fact, in many cases you may want to implement a function with a signature (= argument list) identical to that of an existing function, in which case you should probably start with a copy of an existing function with the same argument list.

Should you choose to or are required to implement a new function entirely from scratch, you can derive a class either from org.cytoscape.equations.Function or org.cytoscape.equations.AbstractFunction. While you gain some additional flexibility in the choice of arguments that your function may have by deriving your class directly from the Function class, this is not recommended and we suggest to derive your function from the AbstractFunction class instead. Deriving from AbstractFunction will greatly reduce the complexity of your task!

Implementing_Attribute_Equations_Functions (last edited 2010-07-08 20:21:42 by malbec)

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux