Interface ITransportCategory


  • public interface ITransportCategory
    Represents a category that groups transport locations together.
    • Method Detail

      • getId

        int getId()
        Returns:
        the unique category ID.
      • setTitle

        void setTitle​(String title)
        Parameters:
        title - the category title.
      • getTitle

        String getTitle()
        Returns:
        the category title.
      • addLocation

        void addLocation​(String name)
        Adds a new transport location with the given name to this category.
        Parameters:
        name - the location name.
      • getLocation

        ITransportLocation getLocation​(String name)
        Returns the transport location with the given name.
        Parameters:
        name - the location name.
        Returns:
        the transport location, or null if not found.
      • removeLocation

        void removeLocation​(String name)
        Removes the transport location with the given name.
        Parameters:
        name - the location name.