|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfr.umlv.gramofone.graphs.SubGraphResult
public class SubGraphResult
Manage a subgraph representing a solution
| Field Summary | |
|---|---|
static java.lang.String |
DELETION_KEY
|
static java.lang.String |
INSERTION_VALUE
|
| Constructor Summary | |
|---|---|
SubGraphResult(java.util.List<CyNode> nodes,
java.util.List<CyEdge> edges,
java.util.List<java.lang.Integer> subIds,
java.lang.Number score,
MyGraph parentMyGraph,
int[] model,
Constraints constraints)
Create a solution from this list of nodes and edges. |
|
| Method Summary | |
|---|---|
int |
compareTo(SubGraphResult o)
used to sort the results |
javax.swing.ImageIcon |
getImage()
get an image with the good number of nodes but no the correct placement |
java.lang.StringBuilder |
getInformations(int rowIndex)
Text informations writen in the result panel |
CyNetwork |
getNetwork()
get the result cynetwork |
CyNetwork |
getNetworkWithNeighbor()
get the cynetwork of the result with 1 neigbhourg |
java.util.HashMap<java.lang.String,java.lang.String> |
getResult2Pattern()
get the result match between pattern and this result |
float |
getScore()
get the score of this result |
void |
showView()
show the network result |
void |
showViewNeighbor()
Show the network with 1 neighbourg, and select the nodes in the result |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String DELETION_KEY
public static java.lang.String INSERTION_VALUE
| Constructor Detail |
|---|
public SubGraphResult(java.util.List<CyNode> nodes,
java.util.List<CyEdge> edges,
java.util.List<java.lang.Integer> subIds,
java.lang.Number score,
MyGraph parentMyGraph,
int[] model,
Constraints constraints)
nodes - CyNodes in the solutionedges - CyEdges in the solutionsubIds - list of id in the solutionscore - score of the solutionparentMyGraph - MyGraph network parent of the solutionmodel - result of LPB solverconstraints - constraints used in the LPB solver| Method Detail |
|---|
public float getScore()
public javax.swing.ImageIcon getImage()
public java.lang.StringBuilder getInformations(int rowIndex)
rowIndex - index in the result panel
public CyNetwork getNetwork()
public CyNetwork getNetworkWithNeighbor()
public void showView()
public void showViewNeighbor()
public java.util.HashMap<java.lang.String,java.lang.String> getResult2Pattern()
public int compareTo(SubGraphResult o)
compareTo in interface java.lang.Comparable<SubGraphResult>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||