CovertMark.handler module
- class CovertMark.handler.CommandHandler(strategy_map)[source]
Bases:
object
- dispatch(command)[source]
Dispatch a user command or a sequence of commands to the correct methods.
- Parameters
command (str) – a top-level command matching the name of a handler method, with parameter gathering handled by the handler method itself. This can also be a sequence of commands separated by “;”.
- Returns
False if the command does not map to a handler method, True if otherwise handler successfully executed.
- class CovertMark.handler.Commands[source]
Bases:
object
- cs = {'csv': <function CommandHandler.csv>, 'current': <function CommandHandler.current>, 'delete': <function CommandHandler.delete>, 'delresults': <function CommandHandler.delresults>, 'execute': <function CommandHandler.execute>, 'exit': <function CommandHandler.exit>, 'help': <function CommandHandler.help>, 'load': <function CommandHandler.load>, 'new': <function CommandHandler.new>, 'plot': <function CommandHandler.plot>, 'results': <function CommandHandler.results>, 'save': <function CommandHandler.save>, 'score': <function CommandHandler.score>, 'traces': <function CommandHandler.traces>, 'wireshark': <function CommandHandler.wireshark>}
- hs = {'csv': 'Generate and export full CSVs of results.', 'current': 'Display the current procedure.', 'delete': 'Select and delete traces.', 'delresults': 'Clear the currently stored results.', 'execute': 'Execute the current procedure.', 'exit': 'Exit this program.', 'help': 'Display this help information.', 'load': 'Load and execute an existing benchmark procedure in json.', 'new': 'Program a new benchmark procedure to replace the current procedure.', 'plot': 'Select and plot data from results.', 'results': 'List results from strategy runs in this session.', 'save': 'Save the current procedure to file.', 'score': 'Compute CovertMark scores for the current results.', 'traces': 'List all available traces.', 'wireshark': 'Get the Wireshark display filters for a result.'}