summaryrefslogtreecommitdiff
path: root/cad/src/protein/commands/BuildProtein/SimulateProtein_Command.py
blob: 4613d9650db6fe124bdb8ecac1805affbb3488b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 2008 Nanorex, Inc.  See LICENSE file for details.
"""

@author: Urmi
@copyright: 2008 Nanorex, Inc.  See LICENSE file for details.
@version:$Id$

"""
from utilities.debug import print_compact_stack, print_compact_traceback
from protein.commands.BuildProtein.BuildProtein_Command import BuildProtein_Command

_superclass = BuildProtein_Command
class SimulateProtein_Command(BuildProtein_Command):
    """
    Class for simulating proteins
    """
    FlyoutToolbar_class = None

    featurename = 'Model and Simulate Protein Mode/Simulate Protein'
    commandName = 'SIMULATE_PROTEIN'

    command_should_resume_prevMode = True
    #Urmi 20080806: We may want it to have its own PM
    command_has_its_own_PM = False

    currentActiveTool = 'SIMULATE_PROTEIN'

    #class constants for the NEW COMMAND API -- 2008-07-30
    from utilities.constants import CL_SUBCOMMAND

    command_level = CL_SUBCOMMAND
    command_parent = 'BUILD_PROTEIN'

    def command_entered(self):
        """
        Extends superclass method.
        @see: baseCommand.command_entered() for documentation
        """
        _superclass.command_entered(self)
        msg = "Select a Rosetta simulation tool to either design or score "\
            "a peptide/protein sequence."
        self.propMgr.updateMessage(msg)