Class IntegerComponentNameProvider<T>

  • Type Parameters:
    T - the component type
    All Implemented Interfaces:
    ComponentNameProvider<T>

    @Deprecated
    public class IntegerComponentNameProvider<T>
    extends Object
    implements ComponentNameProvider<T>
    Deprecated.
    Use IntegerIdProvider instead.
    Assigns a unique integer to represent each component. Each instance of provider maintains an internal map between every component it has ever seen and the unique integer representing that edge. As a result it is probably desirable to have a separate instance for each distinct graph.
    Author:
    Trevor Harmon, Amr ALHOSSARY
    • Constructor Detail

      • IntegerComponentNameProvider

        public IntegerComponentNameProvider()
        Deprecated.
        Create a provider with the default base id (1).
      • IntegerComponentNameProvider

        public IntegerComponentNameProvider​(int base)
        Deprecated.
        Create a provider with a given arbitrary base
        Parameters:
        base - the first Id to use.
    • Method Detail

      • clear

        public void clear()
        Deprecated.
        Clears all cached identifiers, and resets the unique identifier counter.
      • getName

        public String getName​(T component)
        Deprecated.
        Returns the string representation of a component.
        Specified by:
        getName in interface ComponentNameProvider<T>
        Parameters:
        component - the component to be named
        Returns:
        the name of the component