Search in sources :

Example 1 with SelectionContext

use of org.opennms.features.topology.api.SelectionContext in project opennms by OpenNMS.

the class OSGiVerticesUpdateManagerTest method createContextWithVertRefIds.

private SelectionContext createContextWithVertRefIds(int... vertIds) {
    SelectionContext context = new DefaultSelectionManager(createGraph());
    List<VertexRef> vertices = createVertexRefsWithIds(vertIds);
    context.setSelectedVertexRefs(vertices);
    return context;
}
Also used : SelectionContext(org.opennms.features.topology.api.SelectionContext) DefaultVertexRef(org.opennms.features.topology.api.topo.DefaultVertexRef) VertexRef(org.opennms.features.topology.api.topo.VertexRef)

Aggregations

SelectionContext (org.opennms.features.topology.api.SelectionContext)1 DefaultVertexRef (org.opennms.features.topology.api.topo.DefaultVertexRef)1 VertexRef (org.opennms.features.topology.api.topo.VertexRef)1