MCPcopy Index your code
hub / github.com/JHUAPL/CodeCut / GraphCutData

Interface GraphCutData

codecut-gui/src/main/java/graphcut/GraphCutData.java:43–97  ·  view source on GitHub ↗

Allows us to retrieve and work on the graph. Makes caching data simple

Source from the content-addressed store, hash-verified

41 * Allows us to retrieve and work on the graph. Makes caching data simple
42 */
43public interface GraphCutData {
44
45 /**
46 * The namespace of this data
47 * @return the namespace
48 */
49 Namespace getNamespace();
50
51 /**
52 * The graph of this data
53 * @return the graph
54 */
55 GraphCutGraph getGraph();
56
57 /**
58 * Returns the cache of edges. Not in the graph but used to track existing edges that are not yet in the graph.
59 * @return
60 */
61 NamespaceEdgeCache getNamespaceEdgeCache();
62
63 /**
64 * True if this data has a valid namespace
65 * @return true if this data has a valid namespace
66 */
67 boolean hasResults();
68
69 /**
70 * False if the graph in this data has not yet been loaded
71 */
72 boolean isInitialized();
73
74 /**
75 * Dispose the contents of this data
76 */
77 void dispose();
78
79 /**
80 * Returns the view's graph perspective. this is used by the view to restore itself.
81 * @return the view's graph perspective
82 */
83 GraphPerspectiveInfo<GraphCutVertex, GraphCutEdge> getGraphPerspective();
84
85 /**
86 * Set the view information for this graph data
87 * @param info the perspective to set
88 */
89 void setGraphPerspective(GraphPerspectiveInfo<GraphCutVertex, GraphCutEdge> info);
90
91 /**
92 * Returns true if this data's namespace is equal to the given one
93 * @param ns the namespace to test
94 * @return true if this data's namespace is equal to the given one
95 */
96 boolean isNamespace(Namespace ns);
97}

Callers 44

addNamespaceMethod · 0.65
SelectModuleFunction · 0.65
runMethod · 0.65
actionPerformedMethod · 0.65
actionPerformedMethod · 0.65
getModuleStringsMethod · 0.65
verticesAddedMethod · 0.65
verticesRemovedMethod · 0.65
GraphCutProviderClass · 0.65
updateTitleMethod · 0.65
rebuildCurrentGraphMethod · 0.65
installGraphMethod · 0.65

Implementers 2

ValidGraphCutDatacodecut-gui/src/main/java/graphcut/Val
EmptyGraphCutDatacodecut-gui/src/main/java/graphcut/Emp

Calls

no outgoing calls

Tested by

no test coverage detected