Class BruteForceSetupParameters
-
- All Implemented Interfaces:
public class BruteForceSetupParameters
Wrapper class for parameters of GollumDongle.BruteForceSetupParameters()
-
-
Constructor Summary
Constructors Constructor Description BruteForceSetupParameters(int delayBtwAttemptsMs, byte encSymbolZero, byte encSymbolOne, byte encSymbolTwo, byte encSymbolThree)
-
Method Summary
Modifier and Type Method Description String
toString()
int
getDelayBtwAttemptsMs()
byte
getEncSymbolZero()
byte
getEncSymbolOne()
byte
getEncSymbolTwo()
byte
getEncSymbolThree()
int
getSymbolEncodingBase()
void
setDelayBtwAttemptsMs(int delayBtwAttemptsMs)
void
setEncSymbolZero(byte encSymbolZero)
void
setEncSymbolOne(byte encSymbolOne)
void
setEncSymbolTwo(byte encSymbolTwo)
void
setEncSymbolThree(byte encSymbolThree)
boolean
isValid()
Check parameters validity -
-
Constructor Detail
-
BruteForceSetupParameters
BruteForceSetupParameters(int delayBtwAttemptsMs, byte encSymbolZero, byte encSymbolOne, byte encSymbolTwo, byte encSymbolThree)
- Parameters:
delayBtwAttemptsMs
- Delay between each frame to send.encSymbolZero
- How to encode symbol '0'encSymbolOne
- How to encode symbol '1'encSymbolTwo
- How to encode symbol '2'encSymbolThree
- How to encode symbol '3'
-
-
Method Detail
-
getDelayBtwAttemptsMs
int getDelayBtwAttemptsMs()
-
getEncSymbolZero
byte getEncSymbolZero()
-
getEncSymbolOne
byte getEncSymbolOne()
-
getEncSymbolTwo
byte getEncSymbolTwo()
-
getEncSymbolThree
byte getEncSymbolThree()
-
getSymbolEncodingBase
int getSymbolEncodingBase()
- Returns:
the base used for symbol encoding
-
setDelayBtwAttemptsMs
void setDelayBtwAttemptsMs(int delayBtwAttemptsMs)
-
setEncSymbolZero
void setEncSymbolZero(byte encSymbolZero)
-
setEncSymbolOne
void setEncSymbolOne(byte encSymbolOne)
-
setEncSymbolTwo
void setEncSymbolTwo(byte encSymbolTwo)
-
setEncSymbolThree
void setEncSymbolThree(byte encSymbolThree)
-
isValid
boolean isValid()
Check parameters validity
- Returns:
true if object parameters are valid, false if invalid
-
-
-
-