@staticmethod
def determineCouplingType(connection_type, component_from, component_to):
    '\n        Determine the type of coupling. Detects what type of connection the components have.\n        Based on the type of connection and on the types of components a coupling is returned.\n        \n        :param component_from: an instance of a child of :class:`Sea.adapter.baseclasses.Component`\n        :param component_to: an instance of a child of :class:`Sea.adapter.baseclasses.Component`\n        '
    if connection_type:
        item = (connection_type, component_from.ClassName, component_to.ClassName)
        try:
            return Connection.coupling_options[item]
        except KeyError:
            txt = (((((('Could not determine the type of coupling for ' + component_from.ClassName) + ' to ') + component_to.ClassName) + ' with ') + connection_type) + '.\n')
            App.Console.PrintWarning(txt)
            return None
Determine the type of coupling. Detects what type of connection the components have.
Based on the type of connection and on the types of components a coupling is returned.

:param component_from: an instance of a child of :class:`Sea.adapter.baseclasses.Component`
:param component_to: an instance of a child of :class:`Sea.adapter.baseclasses.Component`
@staticmethod
def determineCouplingType(connection_type, component_from, component_to):
    '\n        Determine the type of coupling. Detects what type of connection the components have.\n        Based on the type of connection and on the types of components a coupling is returned.\n        \n        :param component_from: an instance of a child of :class:`Sea.adapter.baseclasses.Component`\n        :param component_to: an instance of a child of :class:`Sea.adapter.baseclasses.Component`\n        '
    if connection_type:
        item = (connection_type, component_from.ClassName, component_to.ClassName)
        try:
            return Connection.coupling_options[item]
        except KeyError:
            txt = (((((('Could not determine the type of coupling for ' + component_from.ClassName) + ' to ') + component_to.ClassName) + ' with ') + connection_type) + '.\n')
            App.Console.PrintWarning(txt)
            return None