Index

A B C D E F G H I J L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

add(String) - Method in class org.troy.capstone.data_structures.RecentlyViewedQueue
Adds an item to the RecentlyViewedQueue without checking for duplicates or capacity.
addAllItems(List, List) - Method in class org.troy.capstone.data_structures.PriceTree
Adds all items from lists of prices and indices to the PriceTree.
addAllItems(Table) - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Adds all rows from a tablesaw Table to the hashmap as Items.
addAttempt(String) - Method in class org.troy.capstone.data_structures.RecentlyViewedQueue
Attempts to add an item to the RecentlyViewedQueue.
addDoc(Row) - Method in class org.troy.capstone.search_engine.QueryFilter
Adds a document to the Lucene index based on a tablesaw Row of item data.
addEdge(int, int, float) - Method in class org.troy.capstone.data_structures.SimilarItemsGraph
Adds an undirected edge between two items in the graph with the given weight.
addElement(UIElementName, Node) - Method in class org.troy.capstone.managers.UIElementManager
Adds a UI element to the manager with the specified key.
addFilterPanel(String, Set) - Method in class org.troy.capstone.ui_components.filters.categorical.FiltersContainer
Adds a filter panel to the FiltersContainer with the given title and options.
addItem(float, Short) - Method in class org.troy.capstone.data_structures.PriceTree
Adds an item to the PriceTree given its price and index.
addItem(Row) - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Adds an item to the hashmap given a tablesaw Row.
addItemPanel(SearchedItemPanel) - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemContainer
Adds a new SearchedItemPanel to the container.
addSearchedItemPanelInteractor(SearchedItemPanelInteractor) - Method in interface org.troy.capstone.interfaces.SearchedItemPanelSourceUI
Adds a SearchedItemPanelInteractor to receive item selection events from the searched item panels.
addSearchedItemPanelInteractor(SearchedItemPanelInteractor) - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemContainer
Adds a SearchedItemPanelInteractor to the SearchedItemContainer to allow for interaction with the item panels in the search results.
addSearchedItemPanelInteractor(SearchedItemPanelInteractor) - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
Adds a SearchedItemPanelInteractor to the SearchedItemContainer to allow for interaction with the item panels in the search results.
addSearchedItemPanelInteractor(SearchedItemPanelInteractor) - Method in class org.troy.capstone.ui_components.items.SearchedItemPanel
Sets a SearchedItemPanelInteractor to the panel to allow for interaction with the item panel
addUIElement(UIElementName, Node) - Method in class org.troy.capstone.managers.GeneralManager
Adds a UI element to the UIElementManager, and creates the RecentlyViewedManager if the necessary UI elements are present and it has not already been created.
adjacencyList - Variable in class org.troy.capstone.data_structures.SimilarItemsGraph
Adjacency list to represent edges between items.
applyCategoricalFilters(Map, Table) - Method in class org.troy.capstone.search_engine.SearchEngine
Helper method to apply categorical filters (other than tags which have special handling).
applyPriceFilters(Map, Table) - Method in class org.troy.capstone.search_engine.SearchEngine
Helper method to apply price filters.
applySearchQueryFilter(String, Table) - Method in class org.troy.capstone.search_engine.SearchEngine
Helper method to apply the search query results as a filter on the table.
applyStarFilter(Map, Table) - Method in class org.troy.capstone.search_engine.SearchEngine
Helper method to apply the star rating filter.
applyTagFilters(Map, Table) - Method in class org.troy.capstone.search_engine.SearchEngine
Helper method to apply tag filters since they have special handling compared to other categorical filters.
ATTRIBUTED_DATA - Enum constant in enum class org.troy.capstone.constants.DataPath
Path to the attributed data CSV file.
ATTRIBUTED_ITEM_CONTAINER_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the container holding the attributed items, calculated as the image width plus some additional padding.
ATTRIBUTED_ITEM_IMAGE_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Height of the image displayed for each attributed item.
ATTRIBUTED_ITEM_IMAGE_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the image displayed for each attributed item.
attributedImage - Variable in class org.troy.capstone.ui_components.items.SearchedItemPanel
The container for the attributed image of the item, displaying the item's image along with any relevant attributes.
AttributedItemContainer - Class in org.troy.capstone.ui_components.items
The AttributedItemContainer class represents a UI component that displays an item's image along with its attribution information.
AttributedItemContainer(Item) - Constructor for class org.troy.capstone.ui_components.items.AttributedItemContainer
Creates an AttributedItemContainer for the given item, initializing the image view and attribution flow.

B

buildSortingOptionDropdown(HBox, Label) - Method in class org.troy.capstone.ui_components.SearchBar
Builds the dropdown for the Sort By selections.

C

canBuild(Boolean) - Method in class org.troy.capstone.data_structures.SimilarItemsGraph
Determines whether the graph can be built based on the provided buildGraph value or the configuration.
CAPACITY - Static variable in class org.troy.capstone.data_structures.RecentlyViewedQueue
Capacity of the recently viewed queue, set to 10 for a reasonable number of items to display without overwhelming the user.
categoricalColumns - Static variable in enum class org.troy.capstone.constants.TableColumnName
Set of column names that are considered categorical variables.
category - Variable in class org.troy.capstone.entities.Item
Category of the item.
CATEGORY - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the category attribute when calculating item similarity.
CATEGORY - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the category of the item.
CHECKBOX_PREFIX - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID prefix for filter checkboxes in the UI, where the full ID includes the filter option
CLEANED_ATTRIBUTED_DATA - Enum constant in enum class org.troy.capstone.constants.DataPath
Path to the cleaned and attributed data CSV file.
CLEANED_DATA - Enum constant in enum class org.troy.capstone.constants.DataPath
Path to the cleaned data CSV file.
clone() - Method in class org.troy.capstone.data_structures.item_table.IdHashKey
Returns a string representation of the IdHashKey, including the original string value and the computed hash code.
clone() - Method in class org.troy.capstone.entities.Item
Creates and returns a deep copy of this Item instance.
collapseStringToInt(String) - Method in class org.troy.capstone.data_structures.item_table.IdHashKey
Rabin-Karp style string to int collapse, using polynomial rolling hash method.
columnName - Variable in enum class org.troy.capstone.constants.TableColumnName
The column name represented by this enum constant.
compare(Row, Row) - Method in class org.troy.capstone.search_engine.sorting.RowComparator
Compares two Rows based on the SortType of this RowComparator.
config - Variable in class org.troy.capstone.search_engine.QueryFilter
The Lucene IndexWriter used to create the search index from the item data.
Config - Class in org.troy.capstone
Configuration class for the application.
Config() - Constructor for class org.troy.capstone.Config
Private constructor to prevent instantiation of the Config class and to give satisfy a Javadoc warning.
content - Variable in class org.troy.capstone.ui_components.items.RecentlyViewedWindow
The VBox that holds the content of the window.
content - Variable in class org.troy.capstone.ui_components.items.SimilarItemsContainer
The HBox that holds the content of the container.
contentContainer - Variable in class org.troy.capstone.ui_components.filters.categorical.FiltersContainer
The container for all filter panels.
copy() - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Creates a deep copy of the ItemHashMap.
create() - Static method in class org.troy.capstone.ui_components.items.RecentlyViewedWindow
Factory method to create a RecentlyViewedWindow instance with a title label and a scrollable content area.
create() - Static method in class org.troy.capstone.ui_components.items.SimilarItemsContainer
Factory method to create a SimilarItemsContainer instance with a title label and appropriate styling.
create(List) - Static method in class org.troy.capstone.ui_components.filters.categorical.FiltersContainer
Factory method to create a FiltersContainer with the appropriate size and add it to the UIElementManager.
create(List) - Static method in class org.troy.capstone.ui_components.items.searched.SearchedItemContainer
Factory method to create a SearchedItemContainer with the given list of items.
create(Item) - Static method in class org.troy.capstone.ui_components.items.SearchedItemPanel
Factory method to create a SearchedItemPanel instance.
create(ItemRepo, SearchedItemPanelDestinationUI, SearchedItemPanelSourceUI) - Static method in class org.troy.capstone.managers.RecentlyViewedManager
Factory method to create a RecentlyViewedManager and attach it as a listener to the given SearchedItemPanelSourceUI, allowing to receive item selection events from within the SearchedItemPanelSourceUI.
create(ItemRepo, Table, SearchedItemPanelDestinationUI, SearchedItemPanelSourceUI) - Static method in class org.troy.capstone.managers.SimilarItemsManager
Static factory method for creating a SimilarItemsManager instance.
createCsvReadOptions(String) - Static method in class org.troy.capstone.utils.TableUtils
Helper method to create CSV read options with specified path.
createFiltersFromTable(List) - Method in class org.troy.capstone.ui_components.filters.categorical.FiltersContainer
Generates filter panels based on the unique values of categorical attributes in the item data.
createLabel(String) - Static method in class org.troy.capstone.ui_components.items.SearchedItemPanel
Helper method to create a label with consistent styling for the item details in the right panel.
createNgramAnalyzer() - Method in class org.troy.capstone.search_engine.QueryFilter
Creates a custom n-gram analyzer for indexing and searching, configured to use n-grams of the specified sizes for better typo tolerance and partial matching in search queries.
current - Variable in class org.troy.capstone.data_structures.SearchedItemsLinkedList
The current node in the linked list, representing the current page of search results.

D

DataPath - Enum Class in org.troy.capstone.constants
This enum defines the file paths for the cleaned, attributed, and cleaned & attributed CSV files.
DataPath(String) - Constructor for enum class org.troy.capstone.constants.DataPath
Constructor for the enum constant.
DATE_ADDED - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the date added attribute when calculating item similarity.
DATE_ADDED - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the date the item was added.
dateAdded - Variable in class org.troy.capstone.entities.Item
Date the item was added to the collection.
dateAddedFormatter - Static variable in class org.troy.capstone.ui_components.items.SearchedItemPanel
Date formatter for displaying the date added attribute of the item in a user-friendly format.
DEFAULT_AUTHOR_NAME - Enum constant in enum class org.troy.capstone.constants.URL
Deprecated.
This name was only used for making a sample container in order to get approval for an Unsplash API license.
DEFAULT_AUTHOR_URL - Enum constant in enum class org.troy.capstone.constants.URL
Deprecated.
This URL was only used for making a sample container in order to get approval for an Unsplash API license.
DEFAULT_IMAGE_URL - Enum constant in enum class org.troy.capstone.constants.URL
Deprecated.
This URL was only used for making a sample container in order to get approval for an Unsplash API license. The default image is now sourced from a different URL that does not require attribution, so this URL is no longer used in the application.
DEFAULT_NORMALIZATION_FACTOR - Static variable in class org.troy.capstone.search_engine.QueryFilter
Default normalization factor for BM25 similarity, can be tuned based on dataset characteristics to adjust the length normalization effect in relevance scoring.
description - Variable in class org.troy.capstone.entities.Item
Description of the item.
DESCRIPTION - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the description attribute when calculating item similarity.
DESCRIPTION - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the description of the item.
DESCRIPTION_FIELD_BOOST - Static variable in class org.troy.capstone.search_engine.QueryFilter
Boost factor for the description field in the search index, giving it lower importance than the name field in relevance scoring.
desktop - Static variable in class org.troy.capstone.ui_components.items.AttributedItemContainer
The Desktop instance used to open URLs in the default browser.
destIndex - Variable in class org.troy.capstone.data_structures.SimilarItemsGraph.Edge
The index of the destination item that this edge points to.
dijkstra(int) - Method in class org.troy.capstone.data_structures.SimilarItemsGraph
Basic algorithm taken from [2].
directory - Variable in class org.troy.capstone.search_engine.QueryFilter
The Lucene Directory where the search index is stored, using ByteBuffersDirectory to keep the index in RAM for speed and simplicity.

E

Edge(int, float) - Constructor for class org.troy.capstone.data_structures.SimilarItemsGraph.Edge
Constructor for the Edge class.
EMPTY_STAR - Static variable in class org.troy.capstone.ui_components.filters.StarRatingFilter
Unicode character for an empty star.
equals(Object) - Method in class org.troy.capstone.data_structures.item_table.IdHashKey
Checks if this IdHashKey is equal to another object.

F

faker - Static variable in class org.troy.capstone.entities.Item
Faker instance for generating random data.
fieldBoosts - Variable in class org.troy.capstone.search_engine.QueryFilter
A map of field names to their corresponding boost factors for relevance scoring.
FILLED_STAR - Static variable in class org.troy.capstone.ui_components.filters.StarRatingFilter
Unicode character for a filled star.
fillGraph() - Method in class org.troy.capstone.data_structures.SimilarItemsGraph
Fills the graph with edges based on the similarity scores between items in the ItemRepo.
FILTER_PANEL_PREFIX - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID prefix for filter panels in the UI, where the full ID includes the filter category
filterByPriceRange(float, float) - Method in class org.troy.capstone.search_engine.PriceFilter
Filters items based on a specified price range.
filteredItems - Variable in class org.troy.capstone.search_engine.QueryFilter
A map of item IDs to their corresponding relevance scores for the current search results.
filterItems(Map) - Method in class org.troy.capstone.search_engine.SearchEngine
Filters the data by categorical filter selections.
filterOptions - Variable in class org.troy.capstone.ui_components.filters.categorical.FiltersContainer
A map of filter types to their corresponding FilterPanel instances.
FilterPanel - Class in org.troy.capstone.ui_components.filters.categorical
The FilterPanel class represents a UI component that displays a set of categorical filter options as checkboxes within a titled pane.
FilterPanel(String, Set) - Constructor for class org.troy.capstone.ui_components.filters.categorical.FilterPanel
Creates a filter panel with the given title and options.
FILTERS_CONTAINER - Enum constant in enum class org.troy.capstone.constants.UIDataName
UI data name for the selected category filter.
FILTERS_CONTAINER - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the container holding all filters.
FILTERS_CONTAINER_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Height of the container holding the filters on the right side of the main page, set to 2/3 of the pagination height.
FILTERS_CONTAINER_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the container holding the filters on the right side of the main page, set to half the width of the right side.
FiltersContainer - Class in org.troy.capstone.ui_components.filters.categorical
The FiltersContainer class represents a UI component that contains multiple FilterPanel instances, each corresponding to a categorical attribute of the items.
FiltersContainer(List) - Constructor for class org.troy.capstone.ui_components.filters.categorical.FiltersContainer
Constructor for FiltersContainer.
findItemsInPriceRange(float, float) - Method in class org.troy.capstone.data_structures.PriceTree
Finds items within a specified price range.
findSimilarItems(String) - Method in class org.troy.capstone.data_structures.SimilarItemsGraph
Finds similar items for the given item ID.
FIRST_SEARCHED_ITEM_NAME_LABEL - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the name label of the first searchedItemPanel.
firstInstanceMade - Static variable in class org.troy.capstone.ui_components.items.SearchedItemPanel
Static variable to track if the first instance of SearchedItemPanel has been created, used to assign an ID to the name label of the first instance for clicking on the instance in tests.
fromRow(Row) - Static method in class org.troy.capstone.entities.Item
Creates an Item object from a tablesaw Row.
fromTable(Table) - Static method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Creates an ItemHashMap from a Table.

G

GeneralManager - Class in org.troy.capstone.managers
The GeneralManager class is responsible for managing the UI elements, the search engine, and the recently viewed content.
GeneralManager(Table, ItemRepo) - Constructor for class org.troy.capstone.managers.GeneralManager
Constructor for GeneralManager, filled from a Table.
Generated - Annotation Interface in org.troy.capstone.annotations
This annotation marks code as generated, making Jacoco test coverage ignore it.
getAttribute(TableColumnName) - Method in class org.troy.capstone.entities.Item
Returns the value of the specified attribute for this item.
getButton() - Method in class org.troy.capstone.managers.GeneralManager
Gets the button from the UIElementManager.
getButton() - Method in class org.troy.capstone.managers.UIElementManager
Gets the search button from the manager.
getCategoricalColumns() - Static method in enum class org.troy.capstone.constants.TableColumnName
Getter for the set of categorical column names.
getCheckedOptions() - Method in class org.troy.capstone.ui_components.filters.categorical.FilterPanel
Gets the currently checked options in the filter panel.
getColumnName() - Method in enum class org.troy.capstone.constants.TableColumnName
Getter for the column name associated with this enum constant.
getComparators() - Static method in class org.troy.capstone.search_engine.sorting.RowComparator
Gets an array of RowComparators for all defined SortTypes.
getDestIndex() - Method in class org.troy.capstone.data_structures.SimilarItemsGraph.Edge
Returns the destination index of this edge.
getElement(UIElementName) - Method in class org.troy.capstone.managers.UIElementManager
Retrieves a UI element based on the provided key.
getFreshBucketSizeCount(List, boolean) - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Calculate bucket distribution with current I and J values (fresh hash calculation).
getHead() - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList
Returns the list of items in the head node of the linked list.
getI() - Static method in class org.troy.capstone.data_structures.item_table.IdHashKey
Getter for the random coefficient I used in the universal hash function.
getId() - Method in enum class org.troy.capstone.constants.TestFXId
Returns the string ID associated with this TestFXId enum value.
getImageView() - Method in class org.troy.capstone.ui_components.items.AttributedItemContainer
Getter for the ImageView in the AttributedItemContainer, which displays the item's image.
getItem(String) - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Retrieves an item from the ItemHashMap given its ID.
getItem(String) - Method in interface org.troy.capstone.interfaces.ItemRepo
Retrieves an item by its ID.
getItemId() - Method in class org.troy.capstone.ui_components.items.SearchedItemPanel
Getter for the item ID of the item being displayed in this panel, used for checking if the panel is in the RecentlyViewedQueue.
getItemIdsAsList() - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Retrieves the item IDs of the ItemHashMap as a list of strings.
getItems() - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
Returns the list of items contained in this node.
getItemsAsList() - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Retrieves the items of the ItemHashMap as a list of Item objects.
getItemsAsList() - Method in interface org.troy.capstone.interfaces.ItemRepo
Retrieves the items in the repository as a list.
getJ() - Static method in class org.troy.capstone.data_structures.item_table.IdHashKey
Getter for the random coefficient J used in the universal hash function.
getKeysAsList() - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Retrieves the keys of the ItemHashMap as a list of IdHashKey objects.
getMaxSlider() - Method in class org.troy.capstone.ui_components.filters.PriceSlider
Gets the maximum price slider.
getMinSlider() - Method in class org.troy.capstone.ui_components.filters.PriceSlider
Gets the minimum price slider.
getNext() - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList
Returns the list of items in the next node of the linked list.
getNext() - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
Returns the next node in the linked list.
getNextPage() - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
Returns the list of items in the next page of search results.
getP() - Static method in class org.troy.capstone.data_structures.item_table.IdHashKey
Getter for the prime modulus P used in the universal hash function.
getPageCount() - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList
Returns the total number of pages in the linked list.
getPageCount() - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
Returns the total number of pages in the pagination, calculated based on the total number of items and items per page.
getPrev() - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
Returns the previous node in the linked list.
getPrevious() - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList
Returns the list of items in the previous node of the linked list.
getPreviousPage() - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
Returns the list of items in the previous page of search results.
getRating() - Method in class org.troy.capstone.ui_components.filters.StarRatingFilter
Gets the current minimum rating (0-5, where 0 means no filter).
getScoreDocs(TopDocs) - Static method in class org.troy.capstone.search_engine.QueryFilter
Returns the array of ScoreDoc objects from the given TopDocs object.
getSearchButton() - Method in class org.troy.capstone.ui_components.SearchBar
Returns the Button for initiating the search.
getSearchData() - Method in class org.troy.capstone.managers.GeneralManager
Gets the search data from the UIElementManager.
getSearchData() - Method in class org.troy.capstone.managers.UIElementManager
Gathers current values of UI elements and returns them in a map for use in search queries.
getSearchField() - Method in class org.troy.capstone.ui_components.SearchBar
Returns the TextField for entering search queries.
getSelectedFilters() - Method in class org.troy.capstone.ui_components.filters.categorical.FiltersContainer
Retrieves the currently selected filters as a map where the keys are filter types (e.g., "Publisher", "Category") and the values are sets of selected options for each filter type respectively.
getSelectedRating() - Method in class org.troy.capstone.ui_components.filters.StarRatingFilter
Gets the currently selected minimum star rating.
getSize() - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Retrieves the number of items in the repository.
getSize() - Method in interface org.troy.capstone.interfaces.ItemRepo
Retrieves the number of items in the repository.
getSortingOptionDropdown() - Method in class org.troy.capstone.ui_components.SearchBar
Returns the ComboBox for selecting sorting options.
getSortType() - Method in class org.troy.capstone.search_engine.sorting.RowComparator
Returns the SortType of this RowComparator.
getUIElement(UIElementName) - Method in class org.troy.capstone.managers.GeneralManager
Gets a UI element from the UIElementManager based on the provided key.
getUrl() - Method in enum class org.troy.capstone.constants.URL
Getter for the string value associated with this enum constant.
getValue() - Method in enum class org.troy.capstone.constants.UIDataName
Getter for the string value associated with this enum constant.
getValue() - Method in enum class org.troy.capstone.constants.UIElementName
Getter for the string value associated with this enum constant.
getValue() - Method in enum class org.troy.capstone.constants.UISizeControl
Getter for the integer value associated with this enum constant.
getValue() - Method in class org.troy.capstone.data_structures.item_table.IdHashKey
Getter for the original string value of the item ID.
getValue() - Method in class org.troy.capstone.search_engine.sorting.LongWrapper
Returns the long value held by this LongWrapper.
getWeight() - Method in enum class org.troy.capstone.constants.ItemSimilarityWeights
Retrieves the weight associated with the attribute for similarity calculation.
graphBuildingEnabled - Static variable in class org.troy.capstone.Config
Flag to enable or disable graph building.

H

hashCode() - Method in class org.troy.capstone.data_structures.item_table.IdHashKey
Using universal hashing code from textbook, with small alterations.
head - Variable in class org.troy.capstone.data_structures.SearchedItemsLinkedList
The head node of the linked list.
HEIGHT_PADDING - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Padding height for UI elements.

I

I - Static variable in class org.troy.capstone.data_structures.item_table.IdHashKey
A random coefficient for the universal hash function, chosen uniformly from 1 to P-1.
id - Variable in enum class org.troy.capstone.constants.TestFXId
The string ID associated with the TestFXId enum value.
id - Variable in class org.troy.capstone.entities.Item
Unique identifier for the item.
ID - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the ID of the item.
IdHashKey - Class in org.troy.capstone.data_structures.item_table
Class representing a hash key for item IDs, using universal hashing to minimize collisions in the item table.
IdHashKey(String) - Constructor for class org.troy.capstone.data_structures.item_table.IdHashKey
Constructor for the IdHashKey class.
IMAGE_URL - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the URL of the item's image.
imageUrl - Variable in class org.troy.capstone.entities.Item
URL of the item's image.
imageView - Variable in class org.troy.capstone.ui_components.items.AttributedItemContainer
The ImageView for displaying the item's image.
index - Variable in class org.troy.capstone.entities.Item
Index of the item in the collection.
INDEX - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the index of the item.
insertIndexColumn(Table) - Static method in class org.troy.capstone.utils.TableUtils
Inserts an index column into the given table, with values from 0 to rowCount-1.
insertionSort(List, RowComparator) - Static method in class org.troy.capstone.search_engine.sorting.InsertionSort
Sorts a list of Rows using the Insertion Sort algorithm based on the provided RowComparator.
insertionSort(List, RowComparator, LongWrapper) - Static method in class org.troy.capstone.search_engine.sorting.InsertionSort
Deprecated.
This method is useful for analyzing the time taken, but is not used in main program execution.
InsertionSort - Class in org.troy.capstone.search_engine.sorting
This is used to sort a list of Rows based on a custom RowComparator.
InsertionSort() - Constructor for class org.troy.capstone.search_engine.sorting.InsertionSort
Only exists to prevent Jacoco from reporting this class as uncovered.
interactors - Variable in class org.troy.capstone.ui_components.items.searched.SearchedItemContainer
List of interactors to handle interactions with the item panels in the search results.
interactors - Variable in class org.troy.capstone.ui_components.items.SearchedItemPanel
List of interactors to handle interactions with the item panel, such as adding the item to the RecentlyViewedQueue when the panel is clicked.
isPrime(int) - Method in class org.troy.capstone.data_structures.item_table.SieveOfEratosthenes
Checks if a given value is a prime number.
Item - Class in org.troy.capstone.entities
A shopping item with various attributes.
Item() - Constructor for class org.troy.capstone.entities.Item
Private constructor to prevent direct instantiation of the Item class and to satisfy a Javadoc warning.
itemContainer - Variable in class org.troy.capstone.ui_components.items.searched.SearchedItemContainer
The container for all searched item panels
ItemHashMap - Class in org.troy.capstone.data_structures.item_table
Custom HashMap implementation for storing Item instances with their IDs as keys, using a custom universal hash function (IdHashKey) to optimize bucket distribution for the specific set of item IDs in our dataset.
ItemHashMap(int) - Constructor for class org.troy.capstone.data_structures.item_table.ItemHashMap
Make initial capacity so that we have just over a 0.75 load factor.
itemId - Variable in class org.troy.capstone.ui_components.items.SearchedItemPanel
The ID of the item being displayed in this panel.
itemIds - Variable in class org.troy.capstone.data_structures.RecentlyViewedQueue
Queue to keep track of item IDs for quick lookup and to prevent duplicates.
ItemListNode(List) - Constructor for class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
Constructor for ItemListNode.
itemRepo - Variable in class org.troy.capstone.data_structures.RecentlyViewedQueue
Repository to retrieve item details based on item IDs, used to create SearchedItemPanel instances when adding items to the queue.
itemRepo - Variable in class org.troy.capstone.data_structures.SimilarItemsGraph
Repository to store items.
itemRepo - Variable in class org.troy.capstone.managers.GeneralManager
The ItemRepo containing all items, used by the SearchEngine for filtering and searching and by the RecentlyViewedManager for retrieving items.
itemRepo - Variable in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
The item repository containing all items, used to populate the pagination content.
ItemRepo - Interface in org.troy.capstone.interfaces
Repository interface for managing items, with simple getters.
items - Variable in class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
The list of items corresponding to a page of search results contained in this node.
ITEMS_PER_PAGE - Static variable in class org.troy.capstone.data_structures.SearchedItemsLinkedList
The number of items to display per page.
ItemSimilarityWeights - Enum Class in org.troy.capstone.constants
The ItemSimilarityWeights enum defines the weights used for calculating item similarity based on different attributes.
ItemSimilarityWeights(float) - Constructor for enum class org.troy.capstone.constants.ItemSimilarityWeights
Constructor for the ItemSimilarityWeights enum.

J

J - Static variable in class org.troy.capstone.data_structures.item_table.IdHashKey
A random coefficient for the universal hash function, chosen uniformly from 0 to P-1.
JARO_WINKLER_SIMILARITY - Static variable in class org.troy.capstone.entities.Item
Jaro-Winkler similarity instance for calculating string similarity.

L

label - Variable in class org.troy.capstone.ui_components.filters.PriceSlider
The label that displays the currently selected price range.
LEFT_SIDE_MAIN_PAGE_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the left side of the main page, which contains the search results and filters.
loadImageAsync(String) - Method in class org.troy.capstone.ui_components.items.AttributedItemContainer
Loads an image from a URL asynchronously to avoid blocking the UI thread, and sets it to the imageView once loaded.
loadImageTask - Variable in class org.troy.capstone.ui_components.items.AttributedItemContainer
The task used to load the image asynchronously.
LongWrapper - Class in org.troy.capstone.search_engine.sorting
A simple wrapper class for a long value, this is used for tracking the speed of sorting algorithms.
LongWrapper() - Constructor for class org.troy.capstone.search_engine.sorting.LongWrapper
Constructs a LongWrapper with an initial value of 0.
LongWrapper(long) - Constructor for class org.troy.capstone.search_engine.sorting.LongWrapper
Constructs a LongWrapper with the specified initial value.

M

MAIN_PAGE_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Total height of the main page.
makeAttributionFlow(Item) - Method in class org.troy.capstone.ui_components.items.AttributedItemContainer
Creates a TextFlow for the attribution text with clickable links for the author and source.
makeRightPanel(Item) - Static method in class org.troy.capstone.ui_components.items.SearchedItemPanel
Fills the right panel with some of the data from the item.
MAX_LOAD_FACTOR - Static variable in class org.troy.capstone.data_structures.item_table.ItemHashMap
Maximum load factor for the ItemHashMap.
MAX_NGRAM_SIZE - Static variable in class org.troy.capstone.search_engine.QueryFilter
Maximum n-gram size for the custom analyzer, allowing for better typo tolerance and partial matching in search queries.
MAX_PRICE - Enum constant in enum class org.troy.capstone.constants.UIDataName
UI data name for the maximum price filter.
MAX_PRICE_SLIDER - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the max price slider in the UI
MAX_PRICE_SLIDER - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the maximum price slider filter.
MAX_STARS - Static variable in class org.troy.capstone.ui_components.filters.StarRatingFilter
The maximum number of stars in the filter.
maxPrimeUnder100mil() - Method in class org.troy.capstone.data_structures.item_table.SieveOfEratosthenes
Gets the largest prime number under 100 million using the Sieve of Eratosthenes algorithm.
maxSlider - Variable in class org.troy.capstone.ui_components.filters.PriceSlider
The slider for selecting the maximum price in the range.
MIN_NGRAM_SIZE - Static variable in class org.troy.capstone.search_engine.QueryFilter
Minimum n-gram size for the custom analyzer, allowing for better typo tolerance and partial matching in search queries.
MIN_PRICE - Enum constant in enum class org.troy.capstone.constants.UIDataName
UI data name for the minimum price filter.
MIN_PRICE_SLIDER - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the min price slider in the UI
MIN_PRICE_SLIDER - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the minimum price slider filter.
MIN_SIMILARITY_SCORE - Static variable in class org.troy.capstone.data_structures.SimilarItemsGraph
Minimum similarity score required for two items to be considered similar and have an edge between them in the graph.
MIN_STAR_RATING - Enum constant in enum class org.troy.capstone.constants.UIDataName
UI data name for the minimum star rating filter.
minSlider - Variable in class org.troy.capstone.ui_components.filters.PriceSlider
The slider for selecting the minimum price in the range.
mixedSort(List, int, int, RowComparator, LongWrapper) - Static method in class org.troy.capstone.search_engine.sorting.Sorter
Deprecated.
This is useful for tests and analyzing time taken, but is not part of main program execution.
mixedSort(List, RowComparator, LongWrapper) - Static method in class org.troy.capstone.search_engine.sorting.Sorter
Deprecated.
This is useful for tests and analyzing time taken, but is not part of main program execution.
mySearchedItemContainer - Variable in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
The SearchedItemContainer instance that displays the current page of search results.

N

name - Variable in class org.troy.capstone.entities.Item
Name of the item.
NAME - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the name attribute when calculating item similarity.
NAME - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the name of the item.
NAME_FIELD_BOOST - Static variable in class org.troy.capstone.search_engine.QueryFilter
Boost factor for the name field in the search index, giving it higher importance in relevance scoring.
next - Variable in class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
The next node in the linked list.
nextButton - Variable in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
The button to navigate to the next page of search results.
ngramAnalyzer - Variable in class org.troy.capstone.search_engine.QueryFilter
The analyzer used for indexing and searching, configured to use n-grams for better typo tolerance and partial matching.
notAPrime - Variable in class org.troy.capstone.data_structures.item_table.SieveOfEratosthenes
A BitSet where the value at index i indicates whether i is not a prime number (true means not prime, false means potentially prime).
NUM_SIMILAR_ITEMS_TO_DISPLAY - Static variable in class org.troy.capstone.data_structures.SimilarItemsGraph
The number of similar items to display for selected items.
numItems - Variable in class org.troy.capstone.data_structures.SimilarItemsGraph
Number of items in the graph.

O

onItemSelected(String) - Method in interface org.troy.capstone.interfaces.SearchedItemPanelInteractor
Method to be called when an item is selected in the search results.
onItemSelected(String) - Method in class org.troy.capstone.managers.RecentlyViewedManager
Called when an item is selected in the searched item panel.
onItemSelected(String) - Method in class org.troy.capstone.managers.SimilarItemsManager
Called when an item is selected in the SearchedItemPanel.
optionCheckBoxes - Variable in class org.troy.capstone.ui_components.filters.categorical.FilterPanel
A set of CheckBox objects representing the filter options in this panel.
org.troy.capstone - package org.troy.capstone
 
org.troy.capstone.annotations - package org.troy.capstone.annotations
 
org.troy.capstone.constants - package org.troy.capstone.constants
 
org.troy.capstone.data_structures - package org.troy.capstone.data_structures
 
org.troy.capstone.data_structures.item_table - package org.troy.capstone.data_structures.item_table
 
org.troy.capstone.entities - package org.troy.capstone.entities
 
org.troy.capstone.interfaces - package org.troy.capstone.interfaces
 
org.troy.capstone.managers - package org.troy.capstone.managers
 
org.troy.capstone.search_engine - package org.troy.capstone.search_engine
 
org.troy.capstone.search_engine.sorting - package org.troy.capstone.search_engine.sorting
 
org.troy.capstone.ui_components - package org.troy.capstone.ui_components
 
org.troy.capstone.ui_components.filters - package org.troy.capstone.ui_components.filters
 
org.troy.capstone.ui_components.filters.categorical - package org.troy.capstone.ui_components.filters.categorical
 
org.troy.capstone.ui_components.items - package org.troy.capstone.ui_components.items
 
org.troy.capstone.ui_components.items.searched - package org.troy.capstone.ui_components.items.searched
 
org.troy.capstone.utils - package org.troy.capstone.utils
 

P

P - Static variable in class org.troy.capstone.data_structures.item_table.IdHashKey
A prime number larger than the maximum possible hash value from collapsing the strings, to ensure good distribution in universal hashing.
pageCount - Variable in class org.troy.capstone.data_structures.SearchedItemsLinkedList
The total number of pages in the linked list, calculated based on the total number of items and items per page.
pageList - Variable in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
The linked list representing the pages of search results.
parser - Variable in class org.troy.capstone.search_engine.QueryFilter
The MultiFieldQueryParser used to parse user queries across multiple fields with the specified boosts and analyzer.
partition(List, int, int, RowComparator) - Static method in class org.troy.capstone.search_engine.sorting.QuickSort
Partitions the list of Rows based on the provided RowComparator and returns the index of the pivot element after partitioning.
path - Variable in enum class org.troy.capstone.constants.DataPath
The path represented by this enum constant.
peekAll() - Method in class org.troy.capstone.data_structures.RecentlyViewedQueue
Returns a List containing all items in the queue in reverse order, without removing them.
PHOTO_AUTHOR - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the photo author attribute when calculating item similarity.
PHOTO_AUTHOR - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the author of the item's photo.
PHOTO_AUTHOR_URL - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the URL of the page for the author of the item's photo.
photoAuthor - Variable in class org.troy.capstone.entities.Item
Author of the item's photo.
photoAuthorUrl - Variable in class org.troy.capstone.entities.Item
URL of the photo's author.
prev - Variable in class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
The previous node in the linked list.
prevButton - Variable in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
The button to navigate to the previous page of search results.
previewRating(int) - Method in class org.troy.capstone.ui_components.filters.StarRatingFilter
Shows a preview of what the rating would look like on hover.
price - Variable in class org.troy.capstone.entities.Item
Price of the item.
PRICE - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the price attribute when calculating item similarity.
PRICE - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the price of the item.
PRICE_ASCENDING - Enum constant in enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
Sort by price in ascending order.
PRICE_DESCENDING - Enum constant in enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
Sort by price in descending order.
priceFilter - Variable in class org.troy.capstone.search_engine.SearchEngine
The PriceFilter for efficiently finding items within a specified price range.
PriceFilter - Class in org.troy.capstone.search_engine
A class that provides functionality to filter items based on their price using a PriceTree data structure for efficient retrieval.
PriceFilter(Table) - Constructor for class org.troy.capstone.search_engine.PriceFilter
Constructor for a PriceFilter from a Table.
PriceSlider - Class in org.troy.capstone.ui_components.filters
The PriceSlider class represents a UI component that allows users to select a price range for filtering search results.
PriceSlider(double, double) - Constructor for class org.troy.capstone.ui_components.filters.PriceSlider
Constructor for PriceSlider.
priceTree - Variable in class org.troy.capstone.search_engine.PriceFilter
The PriceTree data structure used for efficient price-based filtering.
PriceTree - Class in org.troy.capstone.data_structures
A data TreeMap holding keys of prices and values of item indices, allowing for efficient retrieval of items within a specified price range.
PriceTree(Table) - Constructor for class org.troy.capstone.data_structures.PriceTree
Creates a PriceTree from a Table.
printBucketSizeCountsCustomVsBuiltIn() - Method in class org.troy.capstone.data_structures.item_table.ItemHashMap
Prints a table comparing the distribution of bucket sizes (number of buckets with 0 items, 1 item, 2 items, etc.) for the custom hash function vs Java's built in String hashCode, using the same item IDs.
publisher - Variable in class org.troy.capstone.entities.Item
Publisher of the item.
PUBLISHER - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the publisher attribute when calculating item similarity.
PUBLISHER - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the publisher of the item.

Q

queryFilter - Variable in class org.troy.capstone.search_engine.SearchEngine
The QueryFilter for handling search queries using a Lucene index built from the item data.
QueryFilter - Class in org.troy.capstone.search_engine
The QueryFilter class is responsible for filtering search results based on a user query.
QueryFilter(Table) - Constructor for class org.troy.capstone.search_engine.QueryFilter
Creates a QueryFilter from a Table.
quickSort(List, int, int, RowComparator) - Static method in class org.troy.capstone.search_engine.sorting.QuickSort
Helper method for the QuickSort algorithm that recursively sorts the list of Rows based on the provided RowComparator.
quickSort(List, RowComparator) - Static method in class org.troy.capstone.search_engine.sorting.QuickSort
Sorts a list of Rows using the QuickSort algorithm based on the provided RowComparator.
quickSort(List, RowComparator, LongWrapper) - Static method in class org.troy.capstone.search_engine.sorting.QuickSort
Deprecated.
This is useful for analyzing the time taken, but it is not part of the main program execution.
QuickSort - Class in org.troy.capstone.search_engine.sorting
Code is sourced from a MindTap exercise from the course, but modified to fit the project.
QuickSort() - Constructor for class org.troy.capstone.search_engine.sorting.QuickSort
Deprecated.

R

randomItem() - Static method in class org.troy.capstone.entities.Item
Deprecated.
Used for testing purposes, not intended for production use.
RATING_ASCENDING - Enum constant in enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
Sort by rating in ascending order.
RATING_DESCENDING - Enum constant in enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
Sort by rating in descending order.
ratingLabel - Variable in class org.troy.capstone.ui_components.filters.StarRatingFilter
The label that displays the current minimum rating selected by the user.
readData(DataPath) - Static method in class org.troy.capstone.utils.TableUtils
Reads the data from a CSV file into a Tablesaw Table, and adds an index column to the table.
reader - Variable in class org.troy.capstone.search_engine.QueryFilter
The Lucene IndexReader used to read the search index for performing searches.
readyToMakeRecentlyViewedManager() - Method in class org.troy.capstone.managers.GeneralManager
Checks if the necessary UI elements for creating the RecentlyViewedManager (SearchedItemPagination and RecentlyViewedWindow) are present in the UIElementManager.
readyToMakeSimilarItemsManager() - Method in class org.troy.capstone.managers.GeneralManager
Checks if the necessary UI elements for creating the SimilarItemsManager (SearchedItemPagination and SimilarItemsContainer) are present in the UIElementManager.
RECENTLY_VIEWED_CONTAINER - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the container that holds the recently viewed item panels in the UI
RECENTLY_VIEWED_WINDOW - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the recently viewed window.
RECENTLY_VIEWED_WINDOW_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Height of the recently viewed items window, set to match the height of the filters container for consistency.
RECENTLY_VIEWED_WINDOW_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the recently viewed items window, set to 85% of the searched item container width for consistency.
RecentlyViewedManager - Class in org.troy.capstone.managers
Manager for recently viewed items, bridges RecentlyViewedQueue and RecentlyViewedWindow.
RecentlyViewedManager(ItemRepo, RecentlyViewedWindow) - Constructor for class org.troy.capstone.managers.RecentlyViewedManager
Constructor for the RecentlyViewedManager.
recentlyViewedManagerCreated - Variable in class org.troy.capstone.managers.GeneralManager
A flag to track whether the RecentlyViewedManager has been created.
recentlyViewedQueue - Variable in class org.troy.capstone.managers.RecentlyViewedManager
Queue to manage recently viewed items.
RecentlyViewedQueue - Class in org.troy.capstone.data_structures
RecentlyViewedQueue is a queue to manage recently viewed items, with a fixed capacity.
RecentlyViewedQueue(ItemRepo) - Constructor for class org.troy.capstone.data_structures.RecentlyViewedQueue
Constructor for the RecentlyViewedQueue.
recentlyViewedWindow - Variable in class org.troy.capstone.managers.RecentlyViewedManager
Window to display recently viewed items.
RecentlyViewedWindow - Class in org.troy.capstone.ui_components.items
Window to display recently viewed items.
RecentlyViewedWindow() - Constructor for class org.troy.capstone.ui_components.items.RecentlyViewedWindow
Private constructor to initialize the RecentlyViewedWindow.
refreshUI() - Method in class org.troy.capstone.managers.GeneralManager
Gets a UI element from the UIElementManager, filters data, sorts it, and updates the UI with the filtered results.
releaseMemory() - Method in class org.troy.capstone.data_structures.item_table.SieveOfEratosthenes
Releases the internal array to be eligible for garbage collection.
RELEVANCE - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the relevance score of the item.
RELEVANCE_ASCENDING - Enum constant in enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
Sort by relevance in ascending order.
RELEVANCE_DESCENDING - Enum constant in enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
Sort by relevance in descending order.
REVIEW_COUNT - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the review count of the item.
REVIEW_SCORE - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the review score attribute when calculating item similarity.
REVIEW_SCORE - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the review score of the item.
reviewCount - Variable in class org.troy.capstone.entities.Item
Number of reviews for the item.
reviewScore - Variable in class org.troy.capstone.entities.Item
Review score of the item.
RIGHT_ITEM_PANEL_SPACING - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Spacing between elements within the right panel of a searched item.
RIGHT_SIDE_MAIN_PAGE_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the right side of the main page, which contains the filters and other controls.
RowComparator - Class in org.troy.capstone.search_engine.sorting
Comparator for sorting Rows by a specified type.
RowComparator(String) - Constructor for class org.troy.capstone.search_engine.sorting.RowComparator
Constructs a RowComparator with the specified SortType name.
RowComparator(RowComparator.SortType) - Constructor for class org.troy.capstone.search_engine.sorting.RowComparator
Constructs a RowComparator with the specified SortType.
RowComparator.SortType - Enum Class in org.troy.capstone.search_engine.sorting
Enum representing different sorting types for rows.

S

SCORE_THRESHOLD_FACTOR - Static variable in class org.troy.capstone.search_engine.QueryFilter
Score threshold factor for filtering search results, only including results with scores at least this factor times the top score to ensure relevance while allowing for some variation in scoring.
search(String) - Method in class org.troy.capstone.search_engine.QueryFilter
Searches the index for items matching the user query and returns a map of item IDs to their relevance scores for the results that meet the score threshold.
SEARCH_BAR_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Height of the search bar at the top of the main page.
SEARCH_BAR_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the search bar at the top of the main page.
SEARCH_BUTTON - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the search button in the UI
SEARCH_FIELD - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the search field in the UI
SEARCH_FIELD - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the search query input field.
SEARCH_QUERY - Enum constant in enum class org.troy.capstone.constants.UIDataName
UI data name for the search query input.
SearchBar - Class in org.troy.capstone.ui_components
The SearchBar class represents a UI component that provides a text field for users to enter search queries and a button to search.
SearchBar() - Constructor for class org.troy.capstone.ui_components.SearchBar
Constructor for SearchBar.
searchButton - Variable in class org.troy.capstone.managers.UIElementManager
The search button in the UI
searchButton - Variable in class org.troy.capstone.ui_components.SearchBar
The button that users click to initiate the search based on the entered query.
SEARCHED_ITEM_CONTAINER_CONTAINER - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the container that holds the searched item panels in the UI.
SEARCHED_ITEM_CONTAINER_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Height of the container holding the searched items, calculated as the pagination height minus some additional padding.
SEARCHED_ITEM_CONTAINER_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the container holding the searched items.
SEARCHED_ITEM_LABEL_MAX_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Maximum width of the label displaying the name and other details of each attributed item, calculated as the panel width minus the image width and some additional padding.
SEARCHED_ITEM_PAGINATION - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the pagination component that holds the SearchedItemContainer in the UI
SEARCHED_ITEM_PAGINATION - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the container holding the pagination controls for searched items.
SEARCHED_ITEM_PAGINATION_BUTTON_SPACING - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Spacing between pagination buttons.
SEARCHED_ITEM_PAGINATION_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Height of the pagination controls for searched items, calculated as the main page height minus the search bar height and some additional padding.
SEARCHED_ITEM_PAGINATION_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the pagination controls for searched items.
SEARCHED_ITEM_PANEL_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Height of each individual searched item panel.
SEARCHED_ITEM_PANEL_SPACING - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Spacing between individual searched item panels within the container.
SEARCHED_ITEM_PANEL_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of each individual searched item panel, calculated as the container width minus padding on both sides.
SEARCHED_ITEM_SPACING - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Spacing between individual searched item panels within the container.
searchedFields - Variable in class org.troy.capstone.search_engine.QueryFilter
The fields to be searched in the index, including name and description.
SearchedItemContainer - Class in org.troy.capstone.ui_components.items.searched
The SearchedItemContainer class represents a UI component that contains and displays the search results as a list of SearchedItemPanel instances.
SearchedItemContainer() - Constructor for class org.troy.capstone.ui_components.items.searched.SearchedItemContainer
Creates a SearchedItemContainer with a vertical box layout for displaying search result panels.
SearchedItemPagination - Class in org.troy.capstone.ui_components.items.searched
The SearchedItemPagination class represents a UI component that provides pagination for search results.
SearchedItemPagination(ItemRepo) - Constructor for class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
Constructor for SearchedItemPagination.
SearchedItemPanel - Class in org.troy.capstone.ui_components.items
The SearchedItemPanel class represents a UI component that displays the details of a single item in the search results.
SearchedItemPanel(Item) - Constructor for class org.troy.capstone.ui_components.items.SearchedItemPanel
Creates a SearchedItemPanel for the given item, displaying its image and details in a structured layout.
SearchedItemPanelDestinationUI - Interface in org.troy.capstone.interfaces
The SearchedItemPanelDestinationUI interface represents a UI component that can serve as a destination for displaying searched item panels.
SearchedItemPanelInteractor - Interface in org.troy.capstone.interfaces
Interface for interacting with instances of the SearchedItemPanel class, allowing actions to be taken when an item is selected.
SearchedItemPanelSourceUI - Interface in org.troy.capstone.interfaces
The SearchedItemPanelSourceUI interface represents a UI component that can serve as a source for searched item panels.
SearchedItemsLinkedList - Class in org.troy.capstone.data_structures
The SearchedItemsLinkedList class represents a custom linked list data structure that organizes search results into pages.
SearchedItemsLinkedList(ItemRepo, List) - Constructor for class org.troy.capstone.data_structures.SearchedItemsLinkedList
Constructor for SearchedItemsLinkedList.
SearchedItemsLinkedList.ItemListNode - Class in org.troy.capstone.data_structures
Private inner class representing a node in the linked list.
searchEngine - Variable in class org.troy.capstone.managers.GeneralManager
The SearchEngine instance for performing search operations.
SearchEngine - Class in org.troy.capstone.search_engine
The SearchEngine class is responsible for filtering items based on various criteria such as price range, star rating, categorical filters, and search queries.
SearchEngine(Table) - Constructor for class org.troy.capstone.search_engine.SearchEngine
Constructor for SearchEngine, filled from a Table.
searcher - Variable in class org.troy.capstone.search_engine.QueryFilter
The Lucene IndexSearcher used to perform search queries on the index and retrieve relevant results.
searchField - Variable in class org.troy.capstone.ui_components.SearchBar
The text field for users to enter their search queries.
selectAll(int) - Method in class org.troy.capstone.search_engine.SearchEngine
Select all rows in the table.
SELECTED_SATURATION_PARAMETER - Static variable in class org.troy.capstone.search_engine.QueryFilter
Selected saturation parameter for BM25 similarity, can be tuned based on dataset characteristics to adjust the term frequency saturation effect in relevance scoring.
selectedRating - Variable in class org.troy.capstone.ui_components.filters.StarRatingFilter
The currently selected minimum rating.
setButton(Button) - Method in class org.troy.capstone.managers.GeneralManager
Sets the button in the UIElementManager and assigns an action to it that filters the search results and updates the UI when clicked.
setButton(Button) - Method in class org.troy.capstone.managers.UIElementManager
Sets the search button in the manager and assigns an action to it that filters the search results and updates the UI when clicked.
setContent(List) - Method in interface org.troy.capstone.interfaces.SearchedItemPanelDestinationUI
Sets the content of the SearchedItemPanelDestinationUI with the given list of searched item panels.
setContent(List) - Method in class org.troy.capstone.ui_components.items.RecentlyViewedWindow
Sets the content of the RecentlyViewedWindow with the given list of Node instances.
setContent(List) - Method in class org.troy.capstone.ui_components.items.SimilarItemsContainer
Sets the content of the SimilarItemsContainer with the given list of Node instances representing similar items.
setLineBorder(Region, int, int) - Static method in class org.troy.capstone.utils.UIUtils
Sets a solid black line border on a Region object with a specified corner radius and border width.
setNext(SearchedItemsLinkedList.ItemListNode) - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
Sets the next node in the linked list.
setPrev(SearchedItemsLinkedList.ItemListNode) - Method in class org.troy.capstone.data_structures.SearchedItemsLinkedList.ItemListNode
Sets the previous node in the linked list.
setRating(int) - Method in class org.troy.capstone.ui_components.filters.StarRatingFilter
Sets the minimum rating (1-5).
setSize(Region, Integer, Integer) - Static method in class org.troy.capstone.utils.UIUtils
Sets the size of a JavaFX Region (such as a Pane, Button, etc.) to the specified width and height.
setSortingOptionCallbacks() - Method in class org.troy.capstone.ui_components.SearchBar
Sets the callbacks for displaying a cell, selected item, and printing when an item is selected.
setValue(long) - Method in class org.troy.capstone.search_engine.sorting.LongWrapper
Sets the long value held by this LongWrapper.
SieveOfEratosthenes - Class in org.troy.capstone.data_structures.item_table
Code originally sourced from the MindTap assignment, but modified to be more memory efficient by using a BitSet to track which numbers are not prime, and to include a method for getting the largest prime under 100 million.
SieveOfEratosthenes(int) - Constructor for class org.troy.capstone.data_structures.item_table.SieveOfEratosthenes
Constructor for the SieveOfEratosthenes class, which initializes the sieve up to the specified maximum value.
SIMILAR_ITEMS_CONTAINER - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the container that holds the similar item panels in the UI
SIMILAR_ITEMS_CONTAINER - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the container holding similar items.
SIMILAR_ITEMS_CONTAINER_HEIGHT - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Height of the container holding similar items, set to 90% of the filters container width.
SIMILAR_ITEMS_CONTAINER_WIDTH - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Width of the container holding similar items, calculated as the sum of the filters container width, recently viewed window width, and additional padding.
similarItemsContainer - Variable in class org.troy.capstone.managers.SimilarItemsManager
The SimilarItemsContainer that displays the similar items.
SimilarItemsContainer - Class in org.troy.capstone.ui_components.items
Container to display similar items.
SimilarItemsContainer() - Constructor for class org.troy.capstone.ui_components.items.SimilarItemsContainer
Constructor for SimilarItemsContainer.
similarItemsGraph - Variable in class org.troy.capstone.managers.SimilarItemsManager
The SimilarItemsGraph that represents the similarity relationships between items.
SimilarItemsGraph - Class in org.troy.capstone.data_structures
Graph data structure to represent similar items.
SimilarItemsGraph() - Constructor for class org.troy.capstone.data_structures.SimilarItemsGraph
Default constructor.
SimilarItemsGraph(ItemRepo, Table, Boolean) - Constructor for class org.troy.capstone.data_structures.SimilarItemsGraph
Constructor for SimilarItemsGraph.
SimilarItemsGraph.Edge - Class in org.troy.capstone.data_structures
Inner class to represent an edge in the graph.
SimilarItemsManager - Class in org.troy.capstone.managers
The SimilarItemsManager class manages the display of similar items to a selected item.
SimilarItemsManager(SimilarItemsContainer, ItemRepo, Table) - Constructor for class org.troy.capstone.managers.SimilarItemsManager
Private constructor to enforce the use of the static factory method.
similarItemsManagerCreated - Variable in class org.troy.capstone.managers.GeneralManager
A flag to track whether the SimilarItemsManager has been created.
similarity(Item) - Method in class org.troy.capstone.entities.Item
Calculates a similarity score between this item and another item based on shared attributes such as category, publisher, tags, and price.
SORT_OPTION_CELL_PREFIX - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID prefix for cells in the sort option dropdown, where the full ID includes RowComparator.toString() after the prefix
SORT_OPTION_DROPDOWN - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the sort option dropdown in the UI
Sorter - Class in org.troy.capstone.search_engine.sorting
The Sorter class provides a method to sort a Table based on a given RowComparator.
Sorter() - Constructor for class org.troy.capstone.search_engine.sorting.Sorter
Only exists to prevent Jacoco from reporting this class as uncovered and from being instantiated
SORTING_OPTION - Enum constant in enum class org.troy.capstone.constants.UIDataName
UI data name for the sorting option.
SORTING_OPTION_DROPDOWN - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the sorting option dropdown.
SORTING_THRESHOLD - Static variable in class org.troy.capstone.search_engine.sorting.Sorter
Threshold for determining when to use Insertion Sort vs Quick Sort.
sortingOptionDropdown - Variable in class org.troy.capstone.ui_components.SearchBar
The dropdown for users to select the sorting option for search results.
sortTable(Table, RowComparator) - Static method in class org.troy.capstone.search_engine.sorting.Sorter
Overloaded method to allow calling sortTable without a LongWrapper for time measurement.
sortTable(Table, RowComparator, LongWrapper) - Static method in class org.troy.capstone.search_engine.sorting.Sorter
Sorts the given table using the specified RowComparator.
sortType - Variable in class org.troy.capstone.search_engine.sorting.RowComparator
The type of sorting to be applied by this comparator.
SortType() - Constructor for enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
 
STAR_LABEL_PREFIX - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID prefix for star rating labels in the UI, where the full ID just includes the rating
STAR_RATING_FILTER - Enum constant in enum class org.troy.capstone.constants.TestFXId
ID for the star rating filter component in the UI
STAR_RATING_FILTER - Enum constant in enum class org.troy.capstone.constants.UIElementName
UI element name for the star rating filter.
starContainer - Variable in class org.troy.capstone.ui_components.filters.StarRatingFilter
The container for the star labels.
StarRatingFilter - Class in org.troy.capstone.ui_components.filters
The StarRatingFilter class represents a UI component that allows users to select a minimum star rating for filtering search results.
StarRatingFilter() - Constructor for class org.troy.capstone.ui_components.filters.StarRatingFilter
Constructor for StarRatingFilter with 5 clickable stars and a label.
stars - Variable in class org.troy.capstone.ui_components.filters.StarRatingFilter
An array of Labels representing the star icons in the filter.
staticPrimeUnder100mil() - Static method in class org.troy.capstone.data_structures.item_table.SieveOfEratosthenes
Gets the largest prime number under 100 million using the Sieve of Eratosthenes algorithm.
STOCK_QUANTITY - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the stock quantity of the item.
stockQuantity - Variable in class org.troy.capstone.entities.Item
Quantity of the item in stock.
stopAllImagesLoading() - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemContainer
Stops all image loading tasks from running
stopLoadingImage() - Method in class org.troy.capstone.ui_components.items.AttributedItemContainer
Stops the asynchronous loading of the image in this AttributedItemContainer.
stopLoadingImage() - Method in class org.troy.capstone.ui_components.items.SearchedItemPanel
Stops the asynchronous loading of the image in the AttributedItemContainer.
swap(List, int, int) - Static method in class org.troy.capstone.search_engine.sorting.QuickSort
Swaps two elements in the list of Rows.

T

table - Variable in class org.troy.capstone.data_structures.SimilarItemsGraph
The original table containing the items, used for retrieving items by index.
table - Variable in class org.troy.capstone.managers.GeneralManager
The original Table containing the items, used for retrieving items by index.
table - Variable in class org.troy.capstone.search_engine.SearchEngine
The original table containing all item data, used for filtering and retrieving item information.
TABLE_SIZE - Static variable in class org.troy.capstone.data_structures.item_table.IdHashKey
961 entries, 0.75 load factor -> 2048 table size 2048 is the lowest power of 2 above 961/0.75.
TABLE_SIZE - Static variable in class org.troy.capstone.data_structures.item_table.ItemHashMap
Table size for the ItemHashMap, chosen to be a power of 2 for efficient modulo operations, and large enough to maintain a load factor of 0.75 for our expected number of items (961).
TableColumnName - Enum Class in org.troy.capstone.constants
Enum for column names in the dataset, to avoid hardcoding strings throughout the codebase and reduce risk of typos.
TableColumnName(String) - Constructor for enum class org.troy.capstone.constants.TableColumnName
Constructor for the enum constants.
tableToRowList(Table) - Static method in class org.troy.capstone.utils.TableUtils
Converts a Tablesaw Table to a list of Rows.
TableUtils - Class in org.troy.capstone.utils
Utility class for working with Tablesaw tables, including reading and writing CSV files.
TableUtils() - Constructor for class org.troy.capstone.utils.TableUtils
Only exists to prevent Jacoco from complaining about the default constructor not being tested.
tags - Variable in class org.troy.capstone.entities.Item
Tags associated with the item.
TAGS - Enum constant in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight for the tags attribute when calculating item similarity.
TAGS - Enum constant in enum class org.troy.capstone.constants.TableColumnName
Column name for the tags associated with the item.
TestFXId - Enum Class in org.troy.capstone.constants
Enum representing the IDs of various UI components for TestFX testing.
TestFXId(String) - Constructor for enum class org.troy.capstone.constants.TestFXId
Constructs a TestFXId enum value with the specified string ID.
toString() - Method in enum class org.troy.capstone.constants.DataPath
Getter for the path associated with this enum constant.
toString() - Method in class org.troy.capstone.data_structures.SimilarItemsGraph.Edge
Returns a string representation of the edge, including the destination index and weight.
toString() - Method in class org.troy.capstone.search_engine.sorting.LongWrapper
Returns a string representation of the long value held by this LongWrapper.
toString() - Method in class org.troy.capstone.search_engine.sorting.RowComparator
Returns a string representation of this RowComparator, which is the name of the SortType with spaces instead of underscores and proper capitalization.

U

UIDataName - Enum Class in org.troy.capstone.constants
Enum for UI data names, to avoid hardcoding strings throughout the codebase and reduce risk of typos.
UIDataName(String) - Constructor for enum class org.troy.capstone.constants.UIDataName
Constructor a UIDataName enum constant with the specified string value.
UIElementManager - Class in org.troy.capstone.managers
The UIElementManager class is responsible for managing the UI elements in the application.
UIElementManager() - Constructor for class org.troy.capstone.managers.UIElementManager
Constructor for UIElementManager, initializes the map for storing UI elements
UIElementName - Enum Class in org.troy.capstone.constants
Enum for UI element names, to avoid hardcoding strings throughout the codebase and reduce risk of typos.
UIElementName(String) - Constructor for enum class org.troy.capstone.constants.UIElementName
Constructs a UIElementName enum constant with the specified string value.
uiElements - Variable in class org.troy.capstone.managers.UIElementManager
A map of UI element names to their corresponding nodes
uiManager - Variable in class org.troy.capstone.managers.GeneralManager
The UIElementManager instance for managing UI elements.
UISizeControl - Enum Class in org.troy.capstone.constants
Enum for UI size control, to centralize all size-related constants for the UI in one place.
UISizeControl(int) - Constructor for enum class org.troy.capstone.constants.UISizeControl
Constructs a UISizeControl enum constant with the specified integer value.
UIUtils - Class in org.troy.capstone.utils
Utility class for UI-related functions.
UIUtils() - Constructor for class org.troy.capstone.utils.UIUtils
Only exists to prevent Jacoco from complaining about the default constructor not being tested.
UNSPLASH_ATTRIBUTION - Enum constant in enum class org.troy.capstone.constants.URL
URL for Unsplash attribution, used to give credit to the image source.
update(List) - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemPagination
Updates the pagination content with a new list of item IDs corresponding to search results.
updateDisplay() - Method in class org.troy.capstone.ui_components.filters.StarRatingFilter
Updates the display to show the current selected rating.
updateItems(List) - Method in class org.troy.capstone.ui_components.items.searched.SearchedItemContainer
Updates the items displayed in the container with a new list of items.
updateLabel() - Method in class org.troy.capstone.ui_components.filters.PriceSlider
Updates the label to display the currently selected price range based on the values of the min and max sliders.
updateSearchedItemPagination(List) - Method in class org.troy.capstone.managers.UIElementManager
Updates the searched item pagination component with new search results.
url - Variable in enum class org.troy.capstone.constants.URL
The string value associated with this enum constant, used for URLs and attribution information.
URL - Enum Class in org.troy.capstone.constants
Enum for commonly used URLs in the application, such as attribution links and default image URLs.
URL(String) - Constructor for enum class org.troy.capstone.constants.URL
Constructs a URL enum constant with the specified string value.

V

value - Variable in enum class org.troy.capstone.constants.UIDataName
The string value associated with this enum constant, used for UI data keys.
value - Variable in enum class org.troy.capstone.constants.UIElementName
The string value associated with this enum constant, used for UI element identifiers.
value - Variable in enum class org.troy.capstone.constants.UISizeControl
The integer value associated with this enum constant, used for size control in the UI.
value - Variable in class org.troy.capstone.data_structures.item_table.IdHashKey
The original string value of the item ID, stored for equality checks and potential debugging purposes.
value - Variable in class org.troy.capstone.search_engine.sorting.LongWrapper
The long value being held.
valueOf(String) - Static method in enum class org.troy.capstone.constants.DataPath
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.troy.capstone.constants.ItemSimilarityWeights
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.troy.capstone.constants.TableColumnName
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.troy.capstone.constants.TestFXId
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.troy.capstone.constants.UIDataName
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.troy.capstone.constants.UIElementName
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.troy.capstone.constants.UISizeControl
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.troy.capstone.constants.URL
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.troy.capstone.constants.DataPath
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.troy.capstone.constants.ItemSimilarityWeights
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.troy.capstone.constants.TableColumnName
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.troy.capstone.constants.TestFXId
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.troy.capstone.constants.UIDataName
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.troy.capstone.constants.UIElementName
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.troy.capstone.constants.UISizeControl
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.troy.capstone.constants.URL
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.troy.capstone.search_engine.sorting.RowComparator.SortType
Returns an array containing the constants of this enum class, in the order they are declared.

W

weight - Variable in enum class org.troy.capstone.constants.ItemSimilarityWeights
The weight associated with the attribute for similarity calculation.
weight - Variable in class org.troy.capstone.data_structures.SimilarItemsGraph.Edge
The weight of the edge, representing the similarity score between the source and destination items.
WIDTH_PADDING - Enum constant in enum class org.troy.capstone.constants.UISizeControl
Padding width for UI elements.
writeData(Table, DataPath) - Static method in class org.troy.capstone.utils.TableUtils
Writes the cleaned data CSV file.
writer - Variable in class org.troy.capstone.search_engine.QueryFilter
The Lucene IndexWriter used to create the search index from the item data.
A B C D E F G H I J L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form