Skip navigation links
A C E G I M P R S T U 

A

afterLeftToRightRotor1(char, char[]) - Method in class enigma.commandline.ui.UIPrinter
 
afterLeftToRightRotor1(char, char[]) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterLeftToRightRotor2(char, char[]) - Method in class enigma.commandline.ui.UIPrinter
 
afterLeftToRightRotor2(char, char[]) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterLeftToRightRotor3(char, char[]) - Method in class enigma.commandline.ui.UIPrinter
 
afterLeftToRightRotor3(char, char[]) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterPlugboard1(char, char) - Method in class enigma.commandline.ui.UIPrinter
 
afterPlugboard1(char, char) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterPlugboard2(char, char) - Method in class enigma.commandline.ui.UIPrinter
 
afterPlugboard2(char, char) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterReflector(char, char) - Method in class enigma.commandline.ui.UIPrinter
 
afterReflector(char, char) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterRightToLeftRotor1(char, char[]) - Method in class enigma.commandline.ui.UIPrinter
 
afterRightToLeftRotor1(char, char[]) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterRightToLeftRotor2(char, char[]) - Method in class enigma.commandline.ui.UIPrinter
 
afterRightToLeftRotor2(char, char[]) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterRightToLeftRotor3(char, char[]) - Method in class enigma.commandline.ui.UIPrinter
 
afterRightToLeftRotor3(char, char[]) - Method in interface enigma.machine.EnigmaMachineStepper
 
afterRotate(char) - Method in class enigma.commandline.ui.UIPrinter
 
afterRotate(char) - Method in interface enigma.machine.EnigmaMachineStepper
 
apply(EnigmaMachine, Settings[]) - Static method in class enigma.commandline.settings.Settings
Apply settings on enigma

C

changeSettings(char, char) - Method in class enigma.machine.Plugboard
Pairs a with b.
createReflector(String) - Static method in class enigma.machine.Reflector
Creates a reflector with the specified mapping
createReflectorType(String) - Static method in class enigma.machine.Reflector
Creates one of the predefined Reflectors
createRotor(String, String, Rotor, int[]) - Static method in class enigma.machine.Rotor
Creates a Rotor with the specified settings
createRotor(String, Rotor) - Static method in class enigma.machine.Rotor
Creates a Rotor with the specified settings

E

encrypt(char) - Method in class enigma.machine.EnigmaMachine
Encryptes the input.
encrypt(String) - Method in class enigma.machine.EnigmaMachine
Encrypts a whole string, this method uses encrypt(char)
encryptText(Object[]) - Method in class enigma.commandline.ui.UIPrinter
If textInfo[i] is a string then it encrypts it and prints it.
end(char) - Method in class enigma.commandline.ui.UIPrinter
 
end(char) - Method in interface enigma.machine.EnigmaMachineStepper
 
enigma.commandline.settings - package enigma.commandline.settings
Contains the parts that implement the settings and the settings parser
enigma.commandline.ui - package enigma.commandline.ui
Contains the command line UI
enigma.machine - package enigma.machine
Contains the parts that make up the Enigma Machine as well as the Enigma machine itself
EnigmaMachine - Class in enigma.machine
Simulates an Enigma machine with the following structure: || reflector | rotor1 | rotor2 | rotor3 ||
EnigmaMachine(Rotor[], Reflector, Plugboard) - Constructor for class enigma.machine.EnigmaMachine
Creates a new enigma machine with the parts passed in
EnigmaMachine() - Constructor for class enigma.machine.EnigmaMachine
Creates an empty EnigmaMachine
EnigmaMachineStepper - Interface in enigma.machine
An interface that provides the ability to track changes in the individual steps of the EnigmaMachine encryption The Enigma machine code looks like this: call start rotate rotor3 call afterRotate input = input through plugboard call afterPlugboard1 input = input through rotor3 (right to left) call afterRightToLeftRotor3 input = input through rotor2 (right to left) call afterRightToLeftRotor2 input = input through rotor1 (right to left) call afterRightToLeftRotor1 input := input through reflector call afterReflector input = input through rotor1 (left to right) call afterLeftToRightRotor1 input = input through rotor2 (left to right) call afterLeftToRightRotor2 input = input through rotor3 (left to right) call afterLeftToRightRotor3 input = input through plugboard call afterPlugboard2 call end If any of these methods return false, the encryption process stops and returns the partial result

G

getConnection() - Method in class enigma.machine.Rotor
 
getCurrentPos() - Method in class enigma.machine.Rotor
 
getLexeme() - Method in class enigma.commandline.settings.Settings
 
getLexeme() - Method in exception enigma.commandline.settings.SettingsParserException
 
getMachine() - Method in class enigma.commandline.ui.UIPrinter
 
getName() - Method in class enigma.commandline.settings.RotorSettings
 
getName() - Method in class enigma.machine.Reflector
 
getName() - Method in class enigma.machine.Rotor
 
getPairs() - Method in class enigma.commandline.settings.PlugboardSettings
 
getPlugboard() - Method in class enigma.machine.EnigmaMachine
 
getPos() - Method in class enigma.commandline.settings.RotorSettings
 
getReflector() - Method in class enigma.machine.EnigmaMachine
 
getReflectorName() - Method in class enigma.commandline.settings.ReflectorSettings
 
getRotor(int) - Method in class enigma.machine.EnigmaMachine
 
getRotorNum() - Method in class enigma.commandline.settings.RotorSettings
 
getStepper() - Method in class enigma.machine.EnigmaMachine
 

I

isAnimationOn() - Method in class enigma.commandline.ui.UIPrinter
 
isSilentModeOn() - Method in class enigma.commandline.ui.UIPrinter
 

M

map(char) - Method in class enigma.machine.Plugboard
Maps a char to another based on the current settings
map(char) - Method in class enigma.machine.Reflector
Maps input to another char

P

parse(String) - Static method in class enigma.commandline.settings.SettingsParser
Parsers input and either returns an array of settings or throws an exception
parseLineInNormalMode(String) - Static method in class enigma.commandline.ui.UI
Parses a line of input based on the following rules: Any character (a-z)|(A-Z) is encrypted Any non character (like *, & ...) is just passed through A \ followed by (a-z)|(A-Z)|(0-9) followed by a space is a command (LaTeX style commands).
Plugboard - Class in enigma.machine
A Plugboard is the scrambler that converts from 1 letter to another.
It is basically a mapping from Chars to Chars that goes both ways.
Plugboards are mutable, pairings can be changed any time
Plugboard() - Constructor for class enigma.machine.Plugboard
Creates an empty Plugboard (that maps a char to itself)
PlugboardSettings - Class in enigma.commandline.settings
Settings for the plugboard
printHelp() - Method in class enigma.commandline.ui.UIPrinter
Prints a help message
printInfo() - Method in class enigma.commandline.ui.UIPrinter
Prints the info message
printNames() - Method in class enigma.commandline.ui.UIPrinter
Prints the names

R

Reflector - Class in enigma.machine
A reflector is simply a mapping from the alphabet to itself Unlike the Plugboard, a reflector does not change once it is created
Reflector() - Constructor for class enigma.machine.Reflector
Creates a reflector that maps a letter to itself
ReflectorSettings - Class in enigma.commandline.settings
Settings for the reflector
rotate() - Method in class enigma.machine.Rotor
Rotates the rotor and if it rotates a full turn, rotates the next one
Rotor - Class in enigma.machine
A Rotor represents a physical rotor in an Enigma Machine
It starts out with an initial position and moves using the methods provided
A rotor's physical structure can bet set using the constructor but they cannot be changed later (except the position)
Rotor() - Constructor for class enigma.machine.Rotor
Create a Rotor with default settings starting at position 1
Rotor(int) - Constructor for class enigma.machine.Rotor
Create a Rotor with default settings starting at position pos
Rotor(int, Rotor) - Constructor for class enigma.machine.Rotor
Creates a Rotor with default settings starting at position pos with a connection to another Rotor When the rotor completes a full turn (as specified by fullTurn) it turns the connection
RotorSettings - Class in enigma.commandline.settings
Settings for one of the rotors

S

setAnimationOn(boolean) - Method in class enigma.commandline.ui.UIPrinter
 
setConnection(Rotor) - Method in class enigma.machine.Rotor
 
setCurrentPos(int) - Method in class enigma.machine.Rotor
Set the current position of the rotor
setCurrentPos(char) - Method in class enigma.machine.Rotor
Set the current position of the rotor.
setLexeme(String) - Method in exception enigma.commandline.settings.SettingsParserException
 
setMachine(EnigmaMachine) - Method in class enigma.commandline.ui.UIPrinter
 
setName(String) - Method in class enigma.machine.Reflector
 
setName(String) - Method in class enigma.machine.Rotor
 
setSilentModeOn(boolean) - Method in class enigma.commandline.ui.UIPrinter
 
setStepper(EnigmaMachineStepper) - Method in class enigma.machine.EnigmaMachine
 
Settings - Class in enigma.commandline.settings
The SettingsParser uses Settings to apply changes to the Enigma Machine
SettingsParser - Class in enigma.commandline.settings
Parses Engima Settings
SettingsParser() - Constructor for class enigma.commandline.settings.SettingsParser
 
SettingsParserException - Exception in enigma.commandline.settings
An exception that indicates something wrong with parsin
SettingsParserException() - Constructor for exception enigma.commandline.settings.SettingsParserException
Create a new SettingsParserException
SettingsParserException(String) - Constructor for exception enigma.commandline.settings.SettingsParserException
Create a new SettingsParserException with a message
SettingsParserException(String, String) - Constructor for exception enigma.commandline.settings.SettingsParserException
Create a new SettingsParserException with a message and a lexeme that caused it
start(char) - Method in class enigma.commandline.ui.UIPrinter
 
start(char) - Method in interface enigma.machine.EnigmaMachineStepper
 
startReading(Reader) - Static method in class enigma.commandline.ui.UI
Starts the user interface.
switchPlugboard(Plugboard) - Method in class enigma.machine.EnigmaMachine
 
switchReflector(Reflector) - Method in class enigma.machine.EnigmaMachine
 
switchRotor(int, Rotor) - Method in class enigma.machine.EnigmaMachine
 

T

toString() - Method in class enigma.commandline.settings.Settings
 
toString() - Method in class enigma.machine.EnigmaMachine
 
toString() - Method in class enigma.machine.Plugboard
 
toString() - Method in class enigma.machine.Reflector
 
toString() - Method in class enigma.machine.Rotor
 
translateLeftToRight(char) - Method in class enigma.machine.Rotor
Translates a character to another (based on the wiring of the rotor) This simulates a signal coming from the right side of the rotor and exiting from the left side
translateLeftToRightSteps(char) - Method in class enigma.machine.Rotor
Translates a character to another (based on the wiring of the rotor) This simulates a signal coming from the right side of the rotor and exiting from the left side
translateRightToLeft(char) - Method in class enigma.machine.Rotor
Translates a character to another (based on the wiring of the rotor) This simulates a signal coming from the left side of the rotor and exiting from the right side
translateRightToLeftSteps(char) - Method in class enigma.machine.Rotor
Translates a character to another (based on the wiring of the rotor) This simulates a signal coming from the left side of the rotor and exiting from the right side

U

UI - Class in enigma.commandline.ui
The text UI for Enigma Emulator
UI() - Constructor for class enigma.commandline.ui.UI
 
UIPrinter - Class in enigma.commandline.ui
Takes a string, encrypts it, and print it to the screen
UIPrinter() - Constructor for class enigma.commandline.ui.UIPrinter
Creates a UIPrinter with animationOn and silentModeOn set to false
A C E G I M P R S T U 
Skip navigation links