예제 #1
0
        /// <summary>
        /// Creates a new <see cref="IMyo" /> instance.
        /// </summary>
        /// <param name="channelListener">The channel listener.</param>
        /// <param name="myoDeviceDriver">The Myo device driver.</param>
        /// <returns>
        /// Returns a new <see cref="IMyo" /> instance.
        /// </returns>
        protected virtual IMyo CreateMyo(IChannelListener channelListener, IMyoDeviceDriver myoDeviceDriver)
        {
            Contract.Requires <ArgumentNullException>(channelListener != null, "channelListener");
            Contract.Requires <ArgumentNullException>(myoDeviceDriver != null, "myoDeviceDriver");
            Contract.Ensures(Contract.Result <IMyo>() != null);

            return(Myo.Create(channelListener, myoDeviceDriver));
        }
예제 #2
0
 /// <summary>
 /// Creates a new <see cref="IMyo" /> instance.
 /// </summary>
 /// <param name="channelListener">The channel listener.</param>
 /// <param name="myoDeviceDriver">The Myo device driver.</param>
 /// <returns>
 /// Returns a new <see cref="IMyo" /> instance.
 /// </returns>
 protected virtual IMyo CreateMyo(IChannelListener channelListener, IMyoDeviceDriver myoDeviceDriver)
 {
     return(Myo.Create(channelListener, myoDeviceDriver));
 }
예제 #3
0
 /// <summary>
 /// Creates a new <see cref="IMyo"/> instance.
 /// </summary>
 /// <param name="myoHandle">The Myo handle.</param>
 /// <param name="channelListener">The channel listener.</param>
 /// <returns>A new <see cref="IMyo"/> instance.</returns>
 protected virtual IMyo CreateMyo(IntPtr myoHandle, IChannelListener channelListener)
 {
     return(Myo.Create(myoHandle, channelListener));
 }