|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Function
The basic description of a Function.
Module: equations-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>equations-api</artifactId> </dependency>
Method Summary | |
---|---|
Object |
evaluateFunction(Object[] args)
Used to invoke this function. |
String |
getFunctionSummary()
Used to provide help for users. |
String |
getName()
Used to parse the function string. |
List<Class<?>> |
getPossibleArgTypes(Class<?>[] leadingArgs)
Used with the equation builder. |
Class<?> |
getReturnType()
|
String |
getUsageDescription()
Used to provide help for users. |
Class<?> |
validateArgTypes(Class<?>[] argTypes)
|
Method Detail |
---|
String getName()
String getFunctionSummary()
String getUsageDescription()
Class<?> getReturnType()
Class<?> validateArgTypes(Class<?>[] argTypes)
Object evaluateFunction(Object[] args) throws FunctionError
args
- the function arguments which must correspond in type and number to what getParameterTypes() returns.
FunctionError
ArithmeticException
- thrown if a numeric error, e.g. a division by zero occurred.
IllegalArgumentException
- thrown for any error that is not a numeric error, for example if a function only accepts positive numbers and a negative number was passed in.List<Class<?>> getPossibleArgTypes(Class<?>[] leadingArgs)
leadingArgs
- the types of the arguments that have already been selected by the user.
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |