1 package org.simantics.district.network.profile;
3 import java.util.HashSet;
7 import org.simantics.Simantics;
8 import org.simantics.db.ReadGraph;
9 import org.simantics.db.Resource;
10 import org.simantics.db.common.request.ResourceRead;
11 import org.simantics.db.exception.DatabaseException;
13 public class MidBranchEdgeSetRequest extends ResourceRead<Set<Resource>> {
14 public MidBranchEdgeSetRequest(Resource resource) {
19 public Set<Resource> perform(ReadGraph graph) throws DatabaseException {
20 List<Resource> edges = Simantics.applySCL("Simantics/District/Algorithm", "midBranchEdges", graph, resource);
21 return new HashSet<>(edges);