CovertMark.handler module

class CovertMark.handler.CommandHandler(strategy_map)[source]

Bases: object

csv()[source]
current()[source]
delete()[source]
delresults()[source]
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.

execute()[source]
exit()[source]
help()[source]
load()[source]
new()[source]
plot()[source]
results()[source]
save()[source]
score()[source]
set_procedure(procedure)[source]

Replace the current procedure. Used for parameterised execution.

Parameters

procedure – a valid CovertMark procedure.

Returns

True if procedure set successfully, False otherwise.

traces()[source]
wireshark()[source]
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.'}
classmethod register(help_text)[source]