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 TypeMethodDescriptionvoid
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 similarReturns the name of the current categoryString[]
Returns an array of all the images to be displayed on the pageboolean
Determines if the provided image is in the set of images that can be displayed and false otherwiseGiven the image location selected, it determines the action to be taken.
-
Method Details
-
addItem
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 imagetext
- 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
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
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
-