@Test public void pointRelated() { assertTrue("should be infrastructure point", dt.isInfrastructure(new ConnectPoint(D1, P1))); assertFalse("should not be infrastructure point", dt.isInfrastructure(new ConnectPoint(D1, P2))); }
public boolean isInfrastructure(ConnectPoint connectPoint) { return infrastructurePoints.get().contains(connectPoint); }
DefaultTopology extends AbstractModel implements Topology { public boolean isInfrastructure(ConnectPoint connectPoint) { return infrastructurePoints.get().contains(connectPoint); } }
DefaultTopology extends AbstractModel implements Topology { public boolean isInfrastructure(ConnectPoint connectPoint) { return infrastructurePoints.get().contains(connectPoint); } DefaultTopology(ProviderId providerId, GraphDescription description,
                           Function<ConnectPoint, Boolean> broadcastFunction);  DefaultTopology(ProviderId providerId, GraphDescription description); }
DefaultTopology extends AbstractModel implements Topology { public boolean isInfrastructure(ConnectPoint connectPoint) { return infrastructurePoints.get().contains(connectPoint); } DefaultTopology(ProviderId providerId, GraphDescription description,
                           Function<ConnectPoint, Boolean> broadcastFunction);  DefaultTopology(ProviderId providerId, GraphDescription description); static void setDefaultLinkWeight(LinkWeight linkWeight); static void setDefaultGraphPathSearch(GraphPathSearch<TopologyVertex, TopologyEdge> graphPathSearch); @Override long time(); @Override long creationTime(); @Override long computeCost(); @Override int clusterCount(); @Override int deviceCount(); @Override int linkCount(); TopologyGraph getGraph(); Set<TopologyCluster> getClusters(); TopologyCluster getCluster(ClusterId clusterId); TopologyCluster getCluster(DeviceId deviceId); Set<DeviceId> getClusterDevices(TopologyCluster cluster); Set<Link> getClusterLinks(TopologyCluster cluster); boolean isInfrastructure(ConnectPoint connectPoint); boolean isBroadcastPoint(ConnectPoint connectPoint); int broadcastSetSize(ClusterId clusterId); Set<ConnectPoint> broadcastPoints(ClusterId clusterId); Set<Path> getPaths(DeviceId src, DeviceId dst); Set<Path> getPaths(DeviceId src, DeviceId dst, LinkWeight weight); Set<DisjointPath> getDisjointPaths(DeviceId src, DeviceId dst); Set<DisjointPath> getDisjointPaths(DeviceId src, DeviceId dst, LinkWeight weight); Set<DisjointPath> getDisjointPaths(DeviceId src, DeviceId dst, LinkWeight weight,
                                              Map<Link, Object> riskProfile); Set<DisjointPath> getDisjointPaths(DeviceId src, DeviceId dst, Map<Link, Object> riskProfile); @Override String toString(); }
DefaultTopology extends AbstractModel implements Topology { public boolean isInfrastructure(ConnectPoint connectPoint) { return infrastructurePoints.get().contains(connectPoint); } DefaultTopology(ProviderId providerId, GraphDescription description,
                           Function<ConnectPoint, Boolean> broadcastFunction);  DefaultTopology(ProviderId providerId, GraphDescription description); static void setDefaultLinkWeight(LinkWeight linkWeight); static void setDefaultGraphPathSearch(GraphPathSearch<TopologyVertex, TopologyEdge> graphPathSearch); @Override long time(); @Override long creationTime(); @Override long computeCost(); @Override int clusterCount(); @Override int deviceCount(); @Override int linkCount(); TopologyGraph getGraph(); Set<TopologyCluster> getClusters(); TopologyCluster getCluster(ClusterId clusterId); TopologyCluster getCluster(DeviceId deviceId); Set<DeviceId> getClusterDevices(TopologyCluster cluster); Set<Link> getClusterLinks(TopologyCluster cluster); boolean isInfrastructure(ConnectPoint connectPoint); boolean isBroadcastPoint(ConnectPoint connectPoint); int broadcastSetSize(ClusterId clusterId); Set<ConnectPoint> broadcastPoints(ClusterId clusterId); Set<Path> getPaths(DeviceId src, DeviceId dst); Set<Path> getPaths(DeviceId src, DeviceId dst, LinkWeight weight); Set<DisjointPath> getDisjointPaths(DeviceId src, DeviceId dst); Set<DisjointPath> getDisjointPaths(DeviceId src, DeviceId dst, LinkWeight weight); Set<DisjointPath> getDisjointPaths(DeviceId src, DeviceId dst, LinkWeight weight,
                                              Map<Link, Object> riskProfile); Set<DisjointPath> getDisjointPaths(DeviceId src, DeviceId dst, Map<Link, Object> riskProfile); @Override String toString();  }