N
- The node class, used in grids, datasets, trees, and the nodes of
graphsE
- the edge class for graphspublic interface DataAccessor<N,E>
The DataAccessor provides composite data as datasets, graphs, grids, and trees. A DataAccessor can assemble these structures in ways that are conducive to advanced analysis, visualization, and exploration. Each DataAccessor may access a specific data source (or sources), and provide the data in specific data structures.
The various data structures which can be provided are referenced by names. These names map to particular data structures, and the same name will always map to the same type of data structure. The individual DataAccessors may define these names in an implementation-specific fashion.
Not all structures may be available in every DataAccessor - for instance, one may not have any useful data which can be represented as a tree or a grid. Which data structures are available and provided by an individual DataAccessor is entirely up to the implementation.
Modifier and Type | Method and Description |
---|---|
boolean |
extendGraph(java.lang.String graphName,
Graph<N,E> graph,
N node)
Extend the given graph around the specified node.
|
boolean |
extendTree(java.lang.String treeName,
Tree<N> tree,
N node)
Extend the given tree around the specified node.
|
java.util.Set<N> |
getDataset(java.lang.String datasetName)
Retrieve the dataset from the underlying data source.
|
java.util.Set<java.lang.String> |
getDatasetNames()
Get the names of the available datasets from this accessor.
|
Graph<N,E> |
getGraph(java.lang.String graphName)
Retrieve the graph from the underlying data source.
|
java.util.Set<java.lang.String> |
getGraphNames()
Get the names of the available graphs from this accessor.
|
Grid<N> |
getGrid(java.lang.String gridName)
Retrieve the grid from the underlying data source.
|
java.util.Set<java.lang.String> |
getGridNames()
Get the names of the available grids from this accessor.
|
DataStructureType |
getStructureType(java.lang.String dataName)
Get the data type for the specified dataName.
|
Tree<N> |
getTree(java.lang.String treeName)
Retrieve the tree from the underlying data source.
|
java.util.Set<java.lang.String> |
getTreeNames()
Get the names of the available trees from this accessor.
|
void |
setConfig(java.io.InputStream inStream)
Set the configuration information from an input stream.
|
void |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Set any initialization parameters required by this data accessor.
|
boolean extendGraph(java.lang.String graphName, Graph<N,E> graph, N node)
graphName
- The name of the graphgraph
- The graph to extendnode
- The node to use as an extension point.boolean extendTree(java.lang.String treeName, Tree<N> tree, N node)
treeName
- The name of the graphtree
- The graph to extendnode
- The node to use as an extension point.java.util.Set<N> getDataset(java.lang.String datasetName)
datasetName
- the name of the datasetjava.util.Set<java.lang.String> getDatasetNames()
Graph<N,E> getGraph(java.lang.String graphName)
graphName
- the name of the graphjava.util.Set<java.lang.String> getGraphNames()
Grid<N> getGrid(java.lang.String gridName)
gridName
- the name of the gridjava.util.Set<java.lang.String> getGridNames()
DataStructureType getStructureType(java.lang.String dataName)
dataName
- the name of the dataTree<N> getTree(java.lang.String treeName)
treeName
- the name of the treejava.util.Set<java.lang.String> getTreeNames()
void setConfig(java.io.InputStream inStream)
inStream
- Input stream which is the source of the configuration
informationvoid setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters
- a map of initialization parameters