public interface 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>| Modifier and Type | Method and Description |
|---|---|
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) |
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.FunctionErrorArithmeticException - 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.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.