Class SpacialMatch

java.lang.Object
me.gosimple.nbvcxz.matching.match.BaseMatch
me.gosimple.nbvcxz.matching.match.SpacialMatch
All Implemented Interfaces:
Match

public final class SpacialMatch
extends BaseMatch
Author:
Adam Brusselback
  • Constructor Details

    • SpacialMatch

      public SpacialMatch​(java.lang.String match, Configuration configuration, int start_index, int end_index, AdjacencyGraph adjacencyGraph, int turns, int shiftedNumber)
      Create a new SpacialMatch which is a sequence of characters following themselves on the keyboard/keypad
      Parameters:
      match - the part of the password that was matched.
      configuration - the Configuration object.
      start_index - the starting index of this SpacialMatch.
      end_index - the ending index of this SpacialMatch.
      adjacencyGraph - the graph used for this SpacialMatch.
      turns - the number of turns in this SpacialMatch.
      shiftedNumber - the number of shifts in this SpacialMatch.
  • Method Details

    • getAdjacencyGraph

      public AdjacencyGraph getAdjacencyGraph()
      Returns:
      the AdjacencyGraph used in this SpacialMatch.
    • getTurns

      public int getTurns()
      Returns:
      the number of turns the user makes on the keyboard. 'zxcv' has a turn of 1, 'zxcvfr' has a turn of 2, 'zxcvfrewq' has a turn of 3, etc.
    • getShiftedNumber

      public int getShiftedNumber()
      Returns:
      the number of key that are shifted (% instead of 5, A instead of a)
    • getDetails

      public java.lang.String getDetails()
      Description copied from interface: Match
      Returns details about this match in the form of a String to be printed directly
      Specified by:
      getDetails in interface Match
      Overrides:
      getDetails in class BaseMatch
      Returns:
      all specific details about this Match in printable String format.