# Path: Qt.py

# 
# Path: ts2/utils.py
# class Context:
# class FormatException(Exception):
# class MissingDependencyException(Exception):
# class DurationProba(QtCore.QObject):
#     GAME = 10
#     EDITORS = [20, 21, 22, 23, 24, 25]
#     EDITOR_GENERAL = 20
#     EDITOR_SCENERY = 21
#     EDITOR_ROUTES = 22
#     EDITOR_TRAINTYPES = 23
#     EDITOR_SERVICES = 24
#     EDITOR_TRAINS = 25
#     def __init__(self, arg):
#     def __init__(self, arg):
# def cumsum(lis):
#     def __init__(self, data):
#     def __str__(self):
#     def list(self):
#     def isNull(self):
#     def yieldValue(self):
# def to_json(data):
# def from_json(json_str):


from Qt import QtCore, Qt
from ts2 import utils
    @property
    def stdBraking(self):
        """
        :return: The standard braking of this rolling stock type, in m/s2. The
                 standard braking is the normal rate at which speed will be
                 reduced when approaching a speed limit, a station, a signal,
                 etc.
        :rtype: float
        """
        return self._stdBraking
    
    @stdBraking.setter
    def stdBraking(self, value):
        """Setter function for the stdBraking property"""
        if self.simulation.context == utils.Context.EDITOR_TRAINTYPES:
            self._stdBraking = value
    
    @property
    def emergBraking(self):
        """
        :return: the emergency braking of this rolling stock type, in
                 m/s2. Emergency braking is the maximum rate at which a train
                 can reduce its speed in case of a danger ahead.
        :rtype: float
        """
        return self._emergBraking
    
    @emergBraking.setter
    def emergBraking(self, value):
        """Setter function for the emergBraking property"""

# Path: Qt.py

# 
# Path: ts2/utils.py
# class Context:
# class FormatException(Exception):
# class MissingDependencyException(Exception):
# class DurationProba(QtCore.QObject):
#     GAME = 10
#     EDITORS = [20, 21, 22, 23, 24, 25]
#     EDITOR_GENERAL = 20
#     EDITOR_SCENERY = 21
#     EDITOR_ROUTES = 22
#     EDITOR_TRAINTYPES = 23
#     EDITOR_SERVICES = 24
#     EDITOR_TRAINS = 25
#     def __init__(self, arg):
#     def __init__(self, arg):
# def cumsum(lis):
#     def __init__(self, data):
#     def __str__(self):
#     def list(self):
#     def isNull(self):
#     def yieldValue(self):
# def to_json(data):
# def from_json(json_str):


# Path: ts2/trains/traintype.py
from Qt import QtCore, Qt
from ts2 import utils

    @property
    def stdBraking(self):
        """
        :return: The standard braking of this rolling stock type, in m/s2. The
                 standard braking is the normal rate at which speed will be
                 reduced when approaching a speed limit, a station, a signal,
                 etc.
        :rtype: float
        """
        return self._stdBraking
    
    @stdBraking.setter
    def stdBraking(self, value):
        """Setter function for the stdBraking property"""
        if self.simulation.context == utils.Context.EDITOR_TRAINTYPES:
            self._stdBraking = value
    
    @property
    def emergBraking(self):
        """
        :return: the emergency braking of this rolling stock type, in
                 m/s2. Emergency braking is the maximum rate at which a train
                 can reduce its speed in case of a danger ahead.
        :rtype: float
        """
        return self._emergBraking
    
    @emergBraking.setter
    def emergBraking(self, value):
        """Setter function for the emergBraking property"""

        if self.simulation.context == utils.Context.EDITOR_TRAINTYPES: