|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--quoggles.QRunQuery
| Field Summary | |
private org.graffiti.graph.Graph |
graph
The graph to work on |
static int |
minOrderNr
|
private QMain |
qMain
Used to communicate between the individual parts of the system |
private QResultDialog |
qResultDialog
Dialog that shows the result table |
private java.util.List |
queryResult
The result of the query |
| Constructor Summary | |
QRunQuery(QMain q)
Constructor taking the main component as parameter. |
|
| Method Summary | |
private void |
executeInputBox(Input_Box iBox)
Sets the input of the given InputBox and executes it. |
java.util.List |
getQueryResult()
Returns the result of the query. |
void |
reset()
|
java.util.List |
runQuery(org.graffiti.graph.Graph qGraph,
java.util.Collection sourceNodes,
boolean internalUseOnly,
java.util.List result,
java.util.Stack nodesTodo)
Executes the query given by the queryGraph and returns the result in a table (list of lists). |
void |
runQueryInFollowMode(java.awt.Point mousePnt)
Called by mouseMoved when in QModes.followMode.
|
void |
setGraph(org.graffiti.graph.Graph g)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.List queryResult
private org.graffiti.graph.Graph graph
private QMain qMain
private QResultDialog qResultDialog
public static int minOrderNr
| Constructor Detail |
public QRunQuery(QMain q)
q - main component used for communication| Method Detail |
public void setGraph(org.graffiti.graph.Graph g)
public void reset()
public java.util.List getQueryResult()
runQuery must have been executed.
It is a list of rows, i.e. a list of lists. Even if a row consists
only of one entry, it is packed into a list (of size one).
private void executeInputBox(Input_Box iBox)
throws QueryExecutionException
InputBox and executes it.
iBox -
QueryExecutionException
public java.util.List runQuery(org.graffiti.graph.Graph qGraph,
java.util.Collection sourceNodes,
boolean internalUseOnly,
java.util.List result,
java.util.Stack nodesTodo)
throws QueryExecutionException
RunQuery
runQuery in interface RunQueryqGraph - the query graph to be executedsourceNodes - the nodes where to start the queryinternalUseOnly - true if there should be no side effects to the
graphical system etc.result - the result table to which the new query results will be
addednodesTodo - the stack of nodes that still have to be processed
ArrayList of rows that are Collections
themselves.
QueryExecutionExceptionRunQuery.runQuery(org.graffiti.graph.Graph, java.util.Collection, boolean, java.util.List, java.util.Stack)public void runQueryInFollowMode(java.awt.Point mousePnt)
mouseMoved when in QModes.followMode.
Executes query till the box nearest to the given point.
mousePnt -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||