Source code for spinnman.connections.abstract_classes.connection

from six import add_metaclass

from spinn_utilities.abstract_base import AbstractBase, abstractmethod


[docs]@add_metaclass(AbstractBase) class Connection(object): """ An abstract connection to the SpiNNaker board over some medium """ __slots__ = ()
[docs] @abstractmethod def is_connected(self): """ Determines if the medium is connected at this point in time :return: True if the medium is connected, False otherwise :rtype: bool :raise spinnman.exceptions.SpinnmanIOException: If there is an error\ when determining the connectivity of the medium """ pass
[docs] @abstractmethod def close(self): """ Closes the connection :return: Nothing is returned :rtype: None :raise None: No known exceptions are raised """ pass