<filename>canteen/logs.py
# This file contains all the events, logs, and exceptions that
# provide a print or a message to the user.
# These logs might be useful for both debugging and statistics.
#
# Designed and developed by <NAME> in March 2021.
# Author contact: <EMAIL>

import collections

# An event logged represents something that happened during the simulation
# that needs to be registered for debugging or statistics.
Event = collections.namedtuple("Event",
                               ("timestamp", "title", "description"),
                               defaults = (0, "Default", None)
                               )




class ResourceError (Exception):
    """
    This exception is raised when there is a problem or a mismatch between the moment
    in which a resource is released, and the moment in which a resource is required.

    """
    pass

<filename>canteen/logs.py
# This file contains all the events, logs, and exceptions that
# provide a print or a message to the user.
# These logs might be useful for both debugging and statistics.
#
# Designed and developed by <NAME> in March 2021.
# Author contact: <EMAIL>

import collections

# An event logged represents something that happened during the simulation
# that needs to be registered for debugging or statistics.
Event = collections.namedtuple("Event",
                               ("timestamp", "title", "description"),
                               defaults = (0, "Default", None)
                               )




class ResourceError (Exception):
    """
    This exception is raised when there is a problem or a mismatch between the moment
    in which a resource is released, and the moment in which a resource is required.

    """
    pass

# This file contains all the events, logs, and exceptions that # provide a print or a message to the user. # These logs might be useful for both debugging and statistics. # # Designed and developed by <NAME> in March 2021. # Author contact: <EMAIL> # An event logged represents something that happened during the simulation # that needs to be registered for debugging or statistics. This exception is raised when there is a problem or a mismatch between the moment     in which a resource is released, and the moment in which a resource is required.