public class FVAResult extends AnalysisResult
Modifier and Type | Class and Description |
---|---|
(package private) class |
FVAResult.MyDocumentListener |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<parsebionet.biodata.BioEntity,double[]> |
map
Map containig all result values.
|
private javax.swing.JTextField |
maxField
Field to search for entities in the plot.
|
private javax.swing.JTextField |
minField
Field to search for entities in the plot.
|
private double |
objValue
Value of the original objective value that was used as a constraint.
|
private javax.swing.JTable |
resultTable
Table with all results.
|
private javax.swing.JTextField |
searchField
Field to search for entities in the plot.
|
(package private) javax.swing.table.TableRowSorter<javax.swing.table.TableModel> |
sorter |
Constructor and Description |
---|
FVAResult(double objValue) |
Modifier and Type | Method and Description |
---|---|
void |
addLine(parsebionet.biodata.BioEntity entity,
double[] values)
Adds a line to the plot.
|
java.util.List<parsebionet.biodata.BioEntity> |
getEssentialReactions() |
java.util.Map<parsebionet.biodata.BioEntity,double[]> |
getMap() |
double |
getObjValue() |
javax.swing.JPanel |
getReactionsPanel(java.util.List<parsebionet.biodata.BioEntity> essentialReactions)
Creates a JPanel for reactions.
|
double[] |
getValuesForEntity(parsebionet.biodata.BioEntity ent)
Get the values for an entity
|
void |
plot()
Plots the results.
|
void |
setMax(parsebionet.biodata.BioEntity entity,
double max)
Set the maximum value of an entity.
|
void |
setMin(parsebionet.biodata.BioEntity entity,
double min)
Set the minimum value of an entity.
|
private void |
updateTable(javax.swing.table.TableRowSorter<javax.swing.table.TableModel> sorter,
javax.swing.event.DocumentEvent arg0)
Update the table when a search is made.
|
void |
writeToFile(java.lang.String path)
Writes the results to a file.
|
private double objValue
protected java.util.Map<parsebionet.biodata.BioEntity,double[]> map
javax.swing.table.TableRowSorter<javax.swing.table.TableModel> sorter
private javax.swing.JTextField searchField
private javax.swing.JTextField minField
private javax.swing.JTextField maxField
private javax.swing.JTable resultTable
public void addLine(parsebionet.biodata.BioEntity entity, double[] values)
entity
- The entity to addvalues
- Its values.public void setMin(parsebionet.biodata.BioEntity entity, double min)
entity
- The entity to set.min
- Its minimum value.public void setMax(parsebionet.biodata.BioEntity entity, double max)
entity
- The entity to set.max
- Its maximum value.public double[] getValuesForEntity(parsebionet.biodata.BioEntity ent)
ent
- The entity to get.public double getObjValue()
public java.util.Map<parsebionet.biodata.BioEntity,double[]> getMap()
public java.util.List<parsebionet.biodata.BioEntity> getEssentialReactions()
public void writeToFile(java.lang.String path)
AnalysisResult
writeToFile
in class AnalysisResult
path
- Path to the file to write the results.public void plot()
AnalysisResult
plot
in class AnalysisResult
private void updateTable(javax.swing.table.TableRowSorter<javax.swing.table.TableModel> sorter, javax.swing.event.DocumentEvent arg0)
public javax.swing.JPanel getReactionsPanel(java.util.List<parsebionet.biodata.BioEntity> essentialReactions)
essentialReactions
- Essential reaction.