public final class Equation 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>
Constructor and Description |
---|
Equation(String equation,
Set<String> variableReferences,
Map<String,Object> defaultVariableValues,
Object[] code,
int[] sourceLocations,
Class<?> type)
Constructs an
Equation . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compares one
Equation to another. |
Object[] |
getCode()
Returns the compiled code (not Java byte code!) for the VM representing this
Equation . |
Map<String,Object> |
getDefaultVariableValues()
Returns default values for variable references, if any.
|
int[] |
getSourceLocations()
Returns the starting points in the original equation for each node in the parse tree that
resulted from the original equation.
|
Class<?> |
getType()
The overall type of the Equation, e.g.
|
Set<String> |
getVariableReferences()
Returns all the variable references that occur as part if this
Equation . |
int |
hashCode() |
String |
toString()
Returns a textual representation of an
Equation . |
public Equation(String equation, Set<String> variableReferences, Map<String,Object> defaultVariableValues, Object[] code, int[] sourceLocations, Class<?> type)
Equation
.equation
- the string representing this equationvariableReferences
- other variables that are referenced by this equationdefaultVariableValues
- code
- the instruction sequence representing the compiled equationsourceLocations
- the starting points in the original equation for each node
in the parse tree that resulted from the original equationtype
- the type of the equation, String.class, Boolean.class or Double.classpublic String toString()
Equation
.public boolean equals(Object other)
Equation
to another.public Set<String> getVariableReferences()
Equation
.Equation
public Map<String,Object> getDefaultVariableValues()
public Object[] getCode()
Equation
.Equation
public int[] getSourceLocations()
public Class<?> getType()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.