org.cytoscape.equations.interpreter
Class Interpreter
java.lang.Object
org.cytoscape.equations.interpreter.Interpreter
public class Interpreter
- extends Object
Method Summary |
Object |
run()
Executes the code that was passed into the constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Interpreter
public Interpreter(Equation equation,
Map<String,IdentDescriptor> nameToDescriptorMap)
throws IllegalStateException
- Throws:
IllegalStateException
run
public Object run()
throws ArithmeticException,
IllegalArgumentException,
IllegalStateException
- Executes the code that was passed into the constructor.
- Returns:
- a Double, Boolean or String object that is the result of a successful execution.
- Throws:
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
Copyright 2010 Cytoscape Consortium. All rights reserved.