def __init__(self, knitting_pattern, machine):
        """Create a new interaction object.

        :param knitting_pattern: a
          :class:`~knittingpattern.KnittingPattern.KnittingPattern`
        :param AYABInterface.machines.Machine machine: the machine to knit on
        """
        self._machine = machine
        self._communication = None
        self._rows = knitting_pattern.rows_in_knit_order()
        self._knitting_pattern = knitting_pattern
def __init__ ( self , knitting_pattern , machine ) : self . _machine = machine self . _communication = None self . _rows = knitting_pattern . rows_in_knit_order ( ) self . _knitting_pattern = knitting_pattern
Create a new interaction object.

        :param knitting_pattern: a
          :class:`~knittingpattern.KnittingPattern.KnittingPattern`
        :param AYABInterface.machines.Machine machine: the machine to knit on