# 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 lines(self):
        """Returns the lines of this service"""
        return self._lines

    @property
    def entryPlaceName(self):
        """Returns the place of entry of the train as a string"""
        return self._lines[0].place.placeName

    def getEntryPlaceData(self):
        """Returns the placeCode and trackCode of the entry point of the train
        """
        return self._lines[0].place.placeCode, self._lines[0].trackCode

    @property
    def exitPlaceName(self):
        """Returns the place where the train is due to exit as a string."""
        return self._lines[-1].place.placeName

    @property
    def serviceCode(self):
        """Returns the service code"""
        return self._serviceCode

    @serviceCode.setter
    def serviceCode(self, value):
        """Setter function for the serviceCode 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/service.py
from Qt import QtCore, Qt
from ts2 import utils

        }

    @property
    def lines(self):
        """Returns the lines of this service"""
        return self._lines

    @property
    def entryPlaceName(self):
        """Returns the place of entry of the train as a string"""
        return self._lines[0].place.placeName

    def getEntryPlaceData(self):
        """Returns the placeCode and trackCode of the entry point of the train
        """
        return self._lines[0].place.placeCode, self._lines[0].trackCode

    @property
    def exitPlaceName(self):
        """Returns the place where the train is due to exit as a string."""
        return self._lines[-1].place.placeName

    @property
    def serviceCode(self):
        """Returns the service code"""
        return self._serviceCode

    @serviceCode.setter
    def serviceCode(self, value):
        """Setter function for the serviceCode property"""

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