Cytoscape 2.8.0 API

org.cytoscape.equations.interpreter
Class Interpreter

java.lang.Object
  extended by org.cytoscape.equations.interpreter.Interpreter

public class Interpreter
extends Object


Constructor Summary
Interpreter(Equation equation, Map<String,IdentDescriptor> nameToDescriptorMap)
           
 
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
 

Constructor Detail

Interpreter

public Interpreter(Equation equation,
                   Map<String,IdentDescriptor> nameToDescriptorMap)
            throws IllegalStateException
Throws:
IllegalStateException
Method Detail

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

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.