Interface AACPage

All Known Implementing Classes:
AACCategory, AACMappings

public interface AACPage
This interface represents a set of information that would be displayed together on an AAC.
Author:
Catie Baker
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addItem(String imageLoc, String text)
    Adds the image location, text pairing to the page as either a pairing of items to be spoken or a pairing of image to a category or similar
    Returns the name of the current category
    Returns an array of all the images to be displayed on the page
    boolean
    hasImage(String imageLoc)
    Determines if the provided image is in the set of images that can be displayed and false otherwise
    select(String imageLoc)
    Given the image location selected, it determines the action to be taken.
  • Method Details

    • addItem

      void addItem(String imageLoc, String text)
      Adds the image location, text pairing to the page as either a pairing of items to be spoken or a pairing of image to a category or similar
      Parameters:
      imageLoc - the location of the image
      text - the text that image should speak
    • getImageLocs

      String[] getImageLocs()
      Returns an array of all the images to be displayed on the page
      Returns:
      the array of image locations
    • getCategory

      String getCategory()
      Returns the name of the current category
      Returns:
      the name of the current category
    • select

      String select(String imageLoc)
      Given the image location selected, it determines the action to be taken. This can be updating the information that should be displayed or return text to be spoken.
      Parameters:
      imageLoc - the location where the image is stored
      Returns:
      if there is text to be spoken, it returns that information, otherwise it returns the empty string
      Throws:
      NoSuchElementException - if the image provided is not in the current category
    • hasImage

      boolean hasImage(String imageLoc)
      Determines if the provided image is in the set of images that can be displayed and false otherwise
      Parameters:
      imageLoc - the location of the category
      Returns:
      true if it is in the set of images that can be displayed, false otherwise