Class: lociSearcher

lociSearcher

lociSearcher is used to search an answer for the correct number of loci and return a message based on the search. What counts as a loci was determined by what was counted in the original Java version of the application.

The search is based on the tutor.java version. It will count numbers and capital letters N, found outside of [], per tutor.java's code.

new lociSearcher(numOfLoci, notfoundMsg)

Constructor for a new Loci Searcher
Parameters:
Name Type Description
numOfLoci Number
notfoundMsg String The string when the number of Loci is incorret in an answer.
Source:

Methods

Searches an answer, counting the number of Loci present and returns either the notFoundMsg, if the number found in the answer is not the same as the Loci in the answer or the empty string if it is.
Parameters:
Name Type Description
answer, String the input to test
Source:
Returns:
the empty or not found string.
Type
String