# 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
        return self._scheduledArrivalTime.toString("HH:mm:ss")

    @scheduledArrivalTimeStr.setter
    def scheduledArrivalTimeStr(self, value):
        """Setter function for the scheduledArrivalTime property"""
        if self.simulation.context == utils.Context.EDITOR_SERVICES:
            self._scheduledArrivalTime = QtCore.QTime.fromString(value)

    def __eq__(self, other):
        """Equal operator"""
        if self.placeCode == other.placeCode and \
           self.scheduledDepartureTime == other.scheduledDepartureTime:
            return True
        else:
            return False


class ServiceLinesModel(QtCore.QAbstractTableModel):
    """Model for ServiceLine class used in the editor
    """
    def __init__(self, editor):
        """Constructor for the ServicesModel class"""
        super().__init__(editor)
        self._service = None
        self._editor = editor

    def rowCount(self, parent=None, *args, **kwargs):
        """Returns the number of rows of the model, corresponding to the
        number of serviceLines of this service"""
        if self._service is not None:

# 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

        return self._scheduledArrivalTime.toString("HH:mm:ss")

    @scheduledArrivalTimeStr.setter
    def scheduledArrivalTimeStr(self, value):
        """Setter function for the scheduledArrivalTime property"""
        if self.simulation.context == utils.Context.EDITOR_SERVICES:
            self._scheduledArrivalTime = QtCore.QTime.fromString(value)

    def __eq__(self, other):
        """Equal operator"""
        if self.placeCode == other.placeCode and \
           self.scheduledDepartureTime == other.scheduledDepartureTime:
            return True
        else:
            return False


class ServiceLinesModel(QtCore.QAbstractTableModel):
    """Model for ServiceLine class used in the editor
    """
    def __init__(self, editor):
        """Constructor for the ServicesModel class"""
        super().__init__(editor)
        self._service = None
        self._editor = editor

    def rowCount(self, parent=None, *args, **kwargs):
        """Returns the number of rows of the model, corresponding to the
        number of serviceLines of this service"""
        if self._service is not None:

            return len(self._service.lines)