Class NetworkDisruption.DisruptedLinks

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DisruptedLinks​(java.util.Set<java.lang.String>... nodeSets)  
    • Method Summary

      Modifier and Type Method Description
      abstract boolean disrupt​(java.lang.String node1, java.lang.String node2)
      Returns true iff network should be disrupted between the two nodes
      java.util.Set<java.lang.String> nodes()
      Set of all nodes that can participate in disruptions
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisruptedLinks

        protected DisruptedLinks​(java.util.Set<java.lang.String>... nodeSets)
    • Method Detail

      • nodes

        public java.util.Set<java.lang.String> nodes()
        Set of all nodes that can participate in disruptions
      • disrupt

        public abstract boolean disrupt​(java.lang.String node1,
                                        java.lang.String node2)
        Returns true iff network should be disrupted between the two nodes