Cytoscape 3.0.1 API

org.cytoscape.equations
Class EquationUtil

java.lang.Object
  extended by org.cytoscape.equations.EquationUtil

public final class EquationUtil
extends Object

Various static utility methods relating to equations.


Cytoscape Backwards Compatibility (Static Class): This class is static and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.

Method Summary
static String attribNameAsReference(String attribName)
          Converts a bare name to a variable reference.
static long doubleToLong(double d)
          Checked conversion of a double to a long following the Excel™ rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

attribNameAsReference

public static String attribNameAsReference(String attribName)
Converts a bare name to a variable reference.

Parameters:
attribName - the bare name that will be converted
Returns:
"attribName" written as an attribute reference with a leading $-sign

doubleToLong

public static long doubleToLong(double d)
Checked conversion of a double to a long following the Excel™ rules.

Parameters:
d - the number that will be converted
Returns:
"d" converted to a Long using Excel™ rules
Throws:
IllegalArgumentException - if "d" is outside the range of a long

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.