Class JmtEdgeBreakagesIterator

java.lang.Object
jsimgraph.JGraphMod.JmtEdgeBreakagesIterator

public class JmtEdgeBreakagesIterator extends Object

Title: JmtEdgeBreakagesIterator

Description: Stores the identifiers for broken arcs

Author:
Emma Bortone Date: 13-feb-2020 Time: 13.33.00
  • Constructor Details

    • JmtEdgeBreakagesIterator

      public JmtEdgeBreakagesIterator()
  • Method Details

    • getLetter

      public String getLetter(Object sourceKey, Object targetKey, int breakIndex)
      Returns the identifier letter for a given connection and a given breakage in that connection
      Parameters:
      sourceKey - : key of the source station of the connection
      targetKey - : key of the target station of the connection
      breakIndex - : index of the breakage in this connection
      Returns:
      identifier letter for a given connection and a given breakage in that connection
    • removeLast

      public void removeLast(Object sourceKey, Object targetKey)
      Removes one attributed letter for the connection identified by sourceKey and targetKey
      Parameters:
      sourceKey - : key of the source station of the connection
      targetKey - : key of the target station of the connection
    • getNumberAttributedTo

      public int getNumberAttributedTo(Object sourceKey, Object targetKey)
      Parameters:
      sourceKey - : key of the source station of the connection
      targetKey - : key of the target station of the connection
      Returns:
      the number of identifiers attributed to the connection identified by sourceKey and targetKey
    • removeAll

      public void removeAll(Object sourceKey, Object targetKey)
      Removes all the attributed letters for the connection identified by sourceKey and targetKey
      Parameters:
      sourceKey - : key of the source station of the connection
      targetKey - : key of the target station of the connection