|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.cwi.sen1.visplugin.graphplugin.GraphBuilder
public class GraphBuilder
| Field Summary | |
|---|---|
private java.lang.String |
m_attributedGraphTuple
|
private nl.cwi.sen1.relationstores.Factory |
m_factory
Factory used to create types. |
private java.util.HashMap<java.lang.String,nl.cwi.sen1.relationstores.types.Location> |
m_locCache
Cache and register the Locations for created Nodes |
private java.util.HashMap<java.lang.String,prefuse.data.Node> |
m_nodeCache
Cache/registry for created nodes. |
private java.lang.String |
m_relationGraph
Supported graph relation. |
private java.lang.String |
m_relationGraphTuple
|
| Constructor Summary | |
|---|---|
GraphBuilder(nl.cwi.sen1.relationstores.Factory factory)
|
|
| Method Summary | |
|---|---|
prefuse.data.Graph |
buildGraphFromRTuple(nl.cwi.sen1.relationstores.types.RTuple fact)
Convert RTuple into a Graph Dataset. |
private prefuse.data.Graph |
convertAttributedGraphDataset(nl.cwi.sen1.relationstores.types.RElemElements elements)
|
private prefuse.data.Graph |
convertRelStrStrToDataset(nl.cwi.sen1.relationstores.types.RElemElements elements)
Convert RTuple relation([str,str]) into a graph dataset. |
private prefuse.data.Graph |
convertRelTupleTupleToDataset(nl.cwi.sen1.relationstores.types.RElemElements elements)
Convert RTuple relation([tuple([str,loc]),tuple([str,loc])]) into a graph dataset. |
nl.cwi.sen1.relationstores.types.Location |
getOrCreateLocation(java.lang.String nodeName,
nl.cwi.sen1.relationstores.types.Location nodeLocation)
Create (if it does not exist) or return the Location identified by the nodeName. |
prefuse.data.Node |
getOrCreateNode(prefuse.data.Graph graph,
java.lang.String nodeName)
Create (if it does not exist) or return the node identified by the nodeName |
private boolean |
isAttributedGraphRelation(nl.cwi.sen1.relationstores.types.RTuple fact)
|
boolean |
isRelStrStr(nl.cwi.sen1.relationstores.types.RTuple fact)
Check to see if the RTuple is indeed a str,str relation. |
boolean |
isRelTupleTuple(nl.cwi.sen1.relationstores.types.RTuple fact)
Check to see if the RTuple is indeed a tuple([str,loc]),tuple([str,loc]) relation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.HashMap<java.lang.String,prefuse.data.Node> m_nodeCache
private java.util.HashMap<java.lang.String,nl.cwi.sen1.relationstores.types.Location> m_locCache
private nl.cwi.sen1.relationstores.Factory m_factory
private final java.lang.String m_relationGraph
private final java.lang.String m_relationGraphTuple
private final java.lang.String m_attributedGraphTuple
| Constructor Detail |
|---|
public GraphBuilder(nl.cwi.sen1.relationstores.Factory factory)
factory - | Method Detail |
|---|
public prefuse.data.Graph buildGraphFromRTuple(nl.cwi.sen1.relationstores.types.RTuple fact)
fact - RTuple with the data
private prefuse.data.Graph convertAttributedGraphDataset(nl.cwi.sen1.relationstores.types.RElemElements elements)
private prefuse.data.Graph convertRelTupleTupleToDataset(nl.cwi.sen1.relationstores.types.RElemElements elements)
elements - RTuple with the data
private prefuse.data.Graph convertRelStrStrToDataset(nl.cwi.sen1.relationstores.types.RElemElements elements)
fact - RTuple with the data
public prefuse.data.Node getOrCreateNode(prefuse.data.Graph graph,
java.lang.String nodeName)
graph - nodeName -
public nl.cwi.sen1.relationstores.types.Location getOrCreateLocation(java.lang.String nodeName,
nl.cwi.sen1.relationstores.types.Location nodeLocation)
nodeName - The name of the location we are looking for or creating a
Location for
private boolean isAttributedGraphRelation(nl.cwi.sen1.relationstores.types.RTuple fact)
fact -
public boolean isRelStrStr(nl.cwi.sen1.relationstores.types.RTuple fact)
fact - RTuple to test.
public boolean isRelTupleTuple(nl.cwi.sen1.relationstores.types.RTuple fact)
fact - RTuple to test.
|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||