|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.equations.AbstractFunction
public abstract class AbstractFunction
| Constructor Summary | |
|---|---|
protected |
AbstractFunction(ArgDescriptor[] argDescriptors)
|
| Method Summary | |
|---|---|
protected boolean |
argTypesAreValid(Class[] argTypes)
|
abstract Object |
evaluateFunction(Object[] args)
Used to invoke this function. |
abstract String |
getFunctionSummary()
Used to provide help for users. |
abstract String |
getName()
Used to parse the function string. |
List<Class> |
getPossibleArgTypes(Class[] leadingArgs)
Used with the equation builder. |
abstract Class |
getReturnType()
|
String |
getUsageDescription()
Used to provide help for users. |
Class |
validateArgTypes(Class[] argTypes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractFunction(ArgDescriptor[] argDescriptors)
| Method Detail |
|---|
public abstract String getName()
getName in interface Functionpublic abstract String getFunctionSummary()
getFunctionSummary in interface Functionpublic final String getUsageDescription()
getUsageDescription in interface Functionpublic abstract Class getReturnType()
getReturnType in interface Functionprotected final boolean argTypesAreValid(Class[] argTypes)
public final Class validateArgTypes(Class[] argTypes)
validateArgTypes in interface Function
public abstract Object evaluateFunction(Object[] args)
throws FunctionError
evaluateFunction in interface Functionargs - the function arguments which must correspond in type and number to what getParameterTypes() returns.
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.
FunctionErrorpublic final List<Class> getPossibleArgTypes(Class[] leadingArgs)
getPossibleArgTypes in interface FunctionleadingArgs - the types of the arguments that have already been selected by the user.
|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||