|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.graphmodel.AbstractGraphMetaphor
edu.iastate.metnet.graphmodel.ChemicalReactionMetaphor
public class ChemicalReactionMetaphor
flux analysis on this
| Field Summary | |
|---|---|
(package private) java.lang.Integer |
currentBlockID
current focus blockunit, if null, none is selected |
(package private) org.apache.commons.collections.map.MultiKeyMap |
currentBlockIDSubSystemMap
since node is not always same hash I have to create another map say currentBlockIDSubSystemMap, the key is (blockid, blockunittype) |
(package private) java.lang.Object[] |
currentCells
current graph cells in the jgraph instance |
(package private) org.jgraph.JGraph |
currentGraph
current jgraph instance |
(package private) java.util.Map |
currentIntermediumMap
hold the information of the intermedium compound the key is node->{blockid, incomingreactionids, outgoingreactionids, subsystem, } |
(package private) java.util.Map |
currentNodeSubSystemMap
node and their corresponding sub-system-id |
(package private) java.util.Map |
currentValidEdgeMap
edges covered by current chemical reaction set |
(package private) java.util.Map |
currentValidNodeMap
current chemical reaction nodes and their substrate nodes |
(package private) static org.apache.log4j.Logger |
logger
log4j facility |
(package private) java.util.Map |
reactionRateMap
hold the chemical reaction rates |
(package private) int |
subSystem
current sub-system label, if 0, none is selected |
| Fields inherited from class edu.iastate.metnet.graphmodel.AbstractGraphMetaphor |
|---|
DEFAULT_BACKGROUND, DEFAULT_FOREGROUND, DEFAULT_LINE_WIDTH |
| Constructor Summary | |
|---|---|
ChemicalReactionMetaphor()
|
|
| Method Summary | |
|---|---|
java.util.List |
collectInteractionIDListInSubSystem(java.lang.Integer subSystem)
collect the interaction in the sub-system |
int |
computeDegreeOfFreedom(int totalChemicalReactionCount,
int providedRateCount)
compute the degree of the freedom of the linear equation system. |
java.lang.Integer |
getCurrentBlockID()
|
org.apache.commons.collections.map.MultiKeyMap |
getCurrentBlockIDSubSystemMap()
|
java.util.Map |
getCurrentIntermediumMap()
|
java.util.Map |
getCurrentNodeSubSystemMap()
|
java.util.Map |
getCurrentValidEdgeMap()
|
java.util.Map |
getCurrentValidNodeMap()
|
java.util.Map |
getReactionRateMap()
|
int |
getSubSystem()
|
void |
run(org.jgraph.JGraph graph,
java.lang.Object[] cells)
make the graph black and white |
void |
runGlobalMetaphor(org.jgraph.JGraph graph,
java.lang.Object[] cells)
label all valid interaction as red |
void |
runPartialMetaphor(org.jgraph.JGraph graph,
java.lang.Object[] cells,
int subSystem)
visualize the selected sub-system, for simplicity, we only change the color of the node, and ignore all edges. |
void |
runSpecialMetaphor(org.jgraph.JGraph graph,
java.lang.Object[] cells,
java.lang.Integer selectedBlockID)
metaphor the selection as blue |
void |
runSpecialMetaphor(org.jgraph.JGraph graph,
java.lang.Object[] cells,
java.util.Map reactionRateMap)
change the width of the reaction based on the rate |
void |
setCurrentBlockID(java.lang.Integer currentBlockID)
|
void |
setCurrentBlockIDSubSystemMap(org.apache.commons.collections.map.MultiKeyMap currentBlockIDSubSystemMap)
|
void |
setCurrentNodeSubSystemMap(java.util.Map nodeSubSystemMap)
|
void |
setCurrentValidEdgeMap(java.util.Map validEdgeMap)
|
void |
setCurrentValidNodeMap(java.util.Map validNodeMap)
|
void |
setReactionRateMap(java.util.Map reactionRateMap)
|
void |
setSubSystem(int subSystem)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.log4j.Logger logger
int subSystem
java.lang.Integer currentBlockID
java.util.Map currentValidNodeMap
java.util.Map currentValidEdgeMap
java.util.Map currentNodeSubSystemMap
org.apache.commons.collections.map.MultiKeyMap currentBlockIDSubSystemMap
org.jgraph.JGraph currentGraph
java.lang.Object[] currentCells
java.util.Map reactionRateMap
java.util.Map currentIntermediumMap
| Constructor Detail |
|---|
public ChemicalReactionMetaphor()
| Method Detail |
|---|
public void setCurrentNodeSubSystemMap(java.util.Map nodeSubSystemMap)
nodeSubSystemMap - The nodeSubSystem to set.public void setCurrentValidEdgeMap(java.util.Map validEdgeMap)
validEdgeMap - The validEdgeMap to set.public void setCurrentValidNodeMap(java.util.Map validNodeMap)
validNodeMap - The validNodeMap to set.
public void runGlobalMetaphor(org.jgraph.JGraph graph,
java.lang.Object[] cells)
public void runPartialMetaphor(org.jgraph.JGraph graph,
java.lang.Object[] cells,
int subSystem)
graph - the jgraph instancecells - the graph cell in the jgraph instancesubSystem - the selected sub-system
public void runSpecialMetaphor(org.jgraph.JGraph graph,
java.lang.Object[] cells,
java.lang.Integer selectedBlockID)
graph - the jgraph instancecells - the graph cells in the jgraph instanceselectedBlockID - the selected blockunit id
public void runSpecialMetaphor(org.jgraph.JGraph graph,
java.lang.Object[] cells,
java.util.Map reactionRateMap)
graph - cells - reactionRateMap -
public void run(org.jgraph.JGraph graph,
java.lang.Object[] cells)
AbstractGraphMetaphor
run in interface IGraphMetaphorrun in class AbstractGraphMetaphorgraph - the jgraph instancecells - the selected cells or all cellspublic int getSubSystem()
public void setSubSystem(int subSystem)
subSystem - The subSystem to set.public java.util.Map getCurrentNodeSubSystemMap()
public java.util.Map getCurrentValidEdgeMap()
public java.util.Map getCurrentValidNodeMap()
public java.util.List collectInteractionIDListInSubSystem(java.lang.Integer subSystem)
subSystem - the subsystem
public java.lang.Integer getCurrentBlockID()
public void setCurrentBlockID(java.lang.Integer currentBlockID)
currentBlockID - The currentBlockID to set.public java.util.Map getReactionRateMap()
public void setReactionRateMap(java.util.Map reactionRateMap)
reactionRateMap - The reactionRateMap to set.
public int computeDegreeOfFreedom(int totalChemicalReactionCount,
int providedRateCount)
suppose
x is the number of the total chemical reactions in the sub-system
y is the number of intermdium compounds in the sub-system
z is the number of the chemical reactions that user provides the rates
d is the degree of freedom
d = x - (y + z)
totalChemicalReactionCount - total checmical reaction countprovidedRateCount - provided rate parameter count
public org.apache.commons.collections.map.MultiKeyMap getCurrentBlockIDSubSystemMap()
public void setCurrentBlockIDSubSystemMap(org.apache.commons.collections.map.MultiKeyMap currentBlockIDSubSystemMap)
currentBlockIDSubSystemMap - The currentBlockIDSubSystemMap to set.public java.util.Map getCurrentIntermediumMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||