from abaqusConstants import *


class Inertia:
    """The Inertia object is the abstract base type for HeatCapacitance, NonstructuralMass, and
    PointMassInertia.

    Attributes
    ----------
    name: str
        A String specifying the repository key.
    suppressed: Boolean
        A Boolean specifying whether the inertia is suppressed or not. The default value is OFF.

    Notes
    -----
    This object can be accessed by:

    .. code-block:: python

        import part
        mdb.models[name].parts[name].engineeringFeatures.inertias[name]
        import assembly
        mdb.models[name].rootAssembly.engineeringFeatures.inertias[name]
    """

    # A String specifying the repository key.
    name: str = ""

    # A Boolean specifying whether the inertia is suppressed or not. The default value is OFF.
    suppressed: Boolean = OFF

    def resume(self):
        """This method resumes the inertia that was previously suppressed."""
        pass

    def suppress(self):
        """This method suppresses the inertia."""
        pass
