From c23924624cd45b67eecc1c495c461bdc70bf551c Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 14 Jan 2018 13:26:15 +0200 Subject: Added code comments for: Transport. --- Software/Visual_Studio/Tango.Transport/ITransportAdapter.cs | 4 ++-- Software/Visual_Studio/Tango.Transport/ITransportComponent.cs | 3 +++ Software/Visual_Studio/Tango.Transport/ITransportEncoder.cs | 4 ++-- Software/Visual_Studio/Tango.Transport/TransportMessage.cs | 2 +- Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs | 2 +- Software/Visual_Studio/Tango.Transport/TransportMessageDirection.cs | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) (limited to 'Software/Visual_Studio') diff --git a/Software/Visual_Studio/Tango.Transport/ITransportAdapter.cs b/Software/Visual_Studio/Tango.Transport/ITransportAdapter.cs index 413ea7559..366125d64 100644 --- a/Software/Visual_Studio/Tango.Transport/ITransportAdapter.cs +++ b/Software/Visual_Studio/Tango.Transport/ITransportAdapter.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace Tango.Transport { /// - /// Represents a transport adapter capable of connecting, writing and receiving data from a serial stream. + /// Represents a transport adapter capable of connecting, writing and receiving data from a stream. /// /// public interface ITransportAdapter : ITransportComponent @@ -36,7 +36,7 @@ namespace Tango.Transport event EventHandler DataAvailable; /// - /// Gets or sets the channel address. + /// Gets or sets the adapter address. /// String Address { get; set; } diff --git a/Software/Visual_Studio/Tango.Transport/ITransportComponent.cs b/Software/Visual_Studio/Tango.Transport/ITransportComponent.cs index 06207ddf9..5266e0217 100644 --- a/Software/Visual_Studio/Tango.Transport/ITransportComponent.cs +++ b/Software/Visual_Studio/Tango.Transport/ITransportComponent.cs @@ -16,15 +16,18 @@ namespace Tango.Transport /// /// Task Connect(); + /// /// Disconnects the transport component. /// /// Task Disconnect(); + /// /// Occurs when component state changes. /// event EventHandler StateChanged; + /// /// Gets the component state. /// diff --git a/Software/Visual_Studio/Tango.Transport/ITransportEncoder.cs b/Software/Visual_Studio/Tango.Transport/ITransportEncoder.cs index beae60d14..c0e4debbe 100644 --- a/Software/Visual_Studio/Tango.Transport/ITransportEncoder.cs +++ b/Software/Visual_Studio/Tango.Transport/ITransportEncoder.cs @@ -21,14 +21,14 @@ namespace Tango.Transport byte[] Encode(ITangoMessage tangoMessage); /// - /// Decodes the specified data. + /// Decodes the specified data to an . /// /// The data. /// ITangoMessage Decode(byte[] data); /// - /// Decodes only the container part of the message. + /// Decodes only the part of the message. /// /// The data. /// diff --git a/Software/Visual_Studio/Tango.Transport/TransportMessage.cs b/Software/Visual_Studio/Tango.Transport/TransportMessage.cs index c3b3e87b3..47cc01efd 100644 --- a/Software/Visual_Studio/Tango.Transport/TransportMessage.cs +++ b/Software/Visual_Studio/Tango.Transport/TransportMessage.cs @@ -14,7 +14,7 @@ namespace Tango.Transport /// /// /// - public class TransportMessage : TransportMessageBase + internal class TransportMessage : TransportMessageBase { private TaskCompletionSource _completionSource; diff --git a/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs b/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs index 27ad053be..8ef9aee5f 100644 --- a/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs +++ b/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs @@ -10,7 +10,7 @@ namespace Tango.Transport /// /// Represents a base transport message. /// - public abstract class TransportMessageBase + internal abstract class TransportMessageBase { /// /// Gets or sets a value indicating whether this instance is multi response. diff --git a/Software/Visual_Studio/Tango.Transport/TransportMessageDirection.cs b/Software/Visual_Studio/Tango.Transport/TransportMessageDirection.cs index 6802afbdf..74d9136a5 100644 --- a/Software/Visual_Studio/Tango.Transport/TransportMessageDirection.cs +++ b/Software/Visual_Studio/Tango.Transport/TransportMessageDirection.cs @@ -9,7 +9,7 @@ namespace Tango.Transport /// /// Represents direction. /// - public enum TransportMessageDirection + internal enum TransportMessageDirection { /// /// Request. -- cgit v1.3.1