Search in sources :

Example 1 with GraphBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.GraphBuilder in project bgpcep by opendaylight.

the class ConnectedGraphServer method createConnectedGraph.

@Override
public ConnectedGraph createConnectedGraph(final String name, final DomainScope scope) {
    Graph graph = new GraphBuilder().setName(name).setDomainScope(scope).build();
    addToDataStore(getGraphInstanceIdentifier(name), graph, "Graph(" + name + ")");
    ConnectedGraphImpl cgraph = new ConnectedGraphImpl(graph, this);
    graphs.put(graph.key(), cgraph);
    return cgraph;
}
Also used : ConnectedGraph(org.opendaylight.graph.ConnectedGraph) Graph(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.Graph) GraphBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.GraphBuilder)

Aggregations

ConnectedGraph (org.opendaylight.graph.ConnectedGraph)1 Graph (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.Graph)1 GraphBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.GraphBuilder)1