|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Interpreter
Executes the code represented by an equation.
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 |
execute(Equation equation,
Map<String,IdentDescriptor> variableNameToDescriptorMap)
Executes the code represented by "equation". |
Method Detail |
---|
Object execute(Equation equation, Map<String,IdentDescriptor> variableNameToDescriptorMap) throws NullPointerException, ArithmeticException, IllegalArgumentException, IllegalStateException
equation
- compiled code and metadatavariableNameToDescriptorMap
- a mapping of equation variable references to their types and current values
NullPointerException
- thrown if either "equation" or "variableNameToDescriptorMap" are null
ArithmeticException
- thrown if an arithmetic error was detected like a division by zero etc.
IllegalArgumentException
- thrown if a function invocation resulted in a function detecting an invalid argument
IllegalStateException
- thrown if an invalid interpreter internal state was reached
Please note that for each variable reference in "equation" there needs to be an entry in "variableNameToDescriptorMap"
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |