Package madgraph :: Package interface :: Module madgraph_interface :: Class CmdExtended
[hide private]
[frames] | no frames]

Class CmdExtended

source code

                  object --+        
                           |        
       extended_cmd.CheckCmd --+    
                               |    
                  object --+   |    
                           |   |    
        extended_cmd.HelpCmd --+    
                               |    
                  object --+   |    
                           |   |    
    extended_cmd.CompleteCmd --+    
                               |    
              object --+       |    
                       |       |    
extended_cmd.OriginalCmd --+   |    
                           |   |    
       extended_cmd.BasicCmd --+    
                               |    
                extended_cmd.Cmd --+
                                   |
                                  CmdExtended
Known Subclasses:

Particularisation of the cmd command for MG5

Nested Classes [hide private]
  InvalidCmd
a class for the invalid syntax call
  ConfigurationError
Exception raised if an exception is find Those Types of error will stop nicely in the cmd interface
Instance Methods [hide private]
 
__init__(self, *arg, **opt)
Init history and line continuation
source code
 
default(self, line)
Default action if line is not recognized
source code
 
postcmd(self, stop, line)
finishing a command This looks if the command add a special post part.
source code
 
get_history_header(self)
return the history header
source code

Inherited from extended_cmd.Cmd: ask, avoid_history_duplicate, check_answer_in_input_file, check_import, cmdloop, compile, define_child_cmd_interface, do_EOF, do_display, do_exit, do_help, do_history, do_import, do_quit, do_save, emptyline, error_handling, exec_cmd, get_stored_line, import_command_file, nice_config_error, nice_error_handling, nice_user_error, no_notification, onecmd, onecmd_orig, postloop, precmd, preloop, run_cmd, stop_on_keyboard_stop, store_line, write_configuration

Inherited from extended_cmd.CheckCmd: check_history, check_save

Inherited from extended_cmd.HelpCmd: help_EOF, help_display, help_help, help_history, help_quit, help_save

Inherited from extended_cmd.CompleteCmd: complete_display, complete_history, complete_save

Inherited from extended_cmd.BasicCmd: complete, deal_multiple_categories, getTerminalSize, print_suggestions, set_readline_completion_display_matches_hook

Inherited from extended_cmd.OriginalCmd: columnize, complete_help, completedefault, completenames, get_names, parseline, print_topics

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from extended_cmd.Cmd: timed_input

Inherited from extended_cmd.BasicCmd: list_completion, path_completion, split_arg

Class Variables [hide private]
  next_possibility = {'add process': ['output [OUTPUT_TYPE] [PAT...
  debug_output = 'MG5_debug'
  error_debug = 'Please report this bug on https://bugs.launchpa...
  config_debug = 'If you need help with this issue please contac...
  keyboard_stop_msg = 'stopping all operation\n in or...
  intro_banner = '**********************************************...

Inherited from extended_cmd.Cmd: PluginCandidate, allow_notification_center, dirlist, history_header, onedir, plugin_path

Inherited from extended_cmd.Cmd (private): _display_opts

Inherited from extended_cmd.OriginalCmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *arg, **opt)
(Constructor)

source code 

Init history and line continuation

Overrides: object.__init__

default(self, line)

source code 

Default action if line is not recognized

Overrides: extended_cmd.OriginalCmd.default

postcmd(self, stop, line)

source code 

finishing a command This looks if the command add a special post part. This looks if we have to write an additional text for the tutorial.

Overrides: extended_cmd.OriginalCmd.postcmd

get_history_header(self)

source code 

return the history header

Overrides: extended_cmd.Cmd.get_history_header

Class Variable Details [hide private]

next_possibility

Value:
{'add process': ['output [OUTPUT_TYPE] [PATH]', 'display processes'],
 'define': ['define MULTIPART PART1 PART2 ...',
            'generate PROCESS',
            'display multiparticles'],
 'display': ['generate PROCESS',
             'add process PROCESS',
             'output [OUTPUT_TYPE] [PATH]'],
 'generate': ['add process PROCESS', 'output [OUTPUT_TYPE] [PATH]', 'd\
...

error_debug

Value:
'''Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in \'%(debug)s\'.
Please attach this file to your report.'''

config_debug

Value:
'''If you need help with this issue please contact us on https://answe\
rs.launchpad.net/mg5amcnlo
'''

keyboard_stop_msg

Value:
'''stopping all operation
            in order to quit mg5 please enter exit'''

intro_banner

Value:
'''************************************************************
*                                                          *
*                     W E L C O M E to                     *
*              M A D G R A P H 5 _ a M C @ N L O           *
*                                                          *
*                                                          *
*                 *                       *                *
*                   *        * *        *                  *
...