| Constructor and Description |
|---|
SpacialMatch(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 |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateEntropy()
Calculate the entropy for the current match
|
AdjacencyGraph |
getAdjacencyGraph() |
String |
getDetails()
Returns details about this match in the form of a String to be printed directly
|
int |
getShiftedNumber() |
int |
getTurns() |
getEndIndex, getLength, getStartIndex, getToken, log2, nCkpublic SpacialMatch(String match, Configuration configuration, int start_index, int end_index, AdjacencyGraph adjacencyGraph, int turns, int shiftedNumber)
SpacialMatch which is a sequence of characters
following themselves on the keyboard/keypadmatch - 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.public double calculateEntropy()
Matchdouble representing the entropy of the current Match.public AdjacencyGraph getAdjacencyGraph()
AdjacencyGraph used in this SpacialMatch.public int getTurns()
public int getShiftedNumber()
public String getDetails()
MatchgetDetails in interface MatchgetDetails in class BaseMatchMatch in printable String format.Copyright © 2016. All rights reserved.