public final class EquationUtil extends Object
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>
Modifier and Type | Method and Description |
---|---|
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.
|
static boolean |
eqnTypeIsCompatible(Class<?> columnType,
Class<?> listElementType,
Class<?> eqnType)
Returns whether the given column type is compatible with an equation type
|
static String |
getUnqualifiedName(Class<?> type)
Returns the unqualified name of the given class
|
static void |
refreshEquations(CyTable table,
EquationCompiler compiler)
Refreshes all the equations in the given CyTable
|
public static String attribNameAsReference(String attribName)
attribName
- the bare name that will be convertedpublic static long doubleToLong(double d)
d
- the number that will be convertedIllegalArgumentException
- if "d" is outside the range of a longpublic static void refreshEquations(CyTable table, EquationCompiler compiler)
table
- the CyTablecompiler
- an EquationCompilerpublic static boolean eqnTypeIsCompatible(Class<?> columnType, Class<?> listElementType, Class<?> eqnType)
columnType
- the column typelistElementType
- the list element type, if columnType is ListeqnType
- the equation typeCopyright 2011-2015 Cytoscape Consortium. All rights reserved.