コード例 #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// \fn public EchoMessage(EchoMessage sourceMessage, EchoChannel sendingChannel): base(sourceMessage, sendingChannel)
        ///
        /// \brief Constructor.
        ///
        /// \par Description.
        ///      A message that is duplicated to the source except for the channel parameters.
        ///
        /// \par Algorithm.
        ///
        /// \par Usage Notes.
        ///      This constructor is useful when you want to forward a message to other channels
        ///
        /// \author Ilanh
        /// \date 14/03/2017
        ///
        /// \param sourceMessage  (EchoMessage) - Message describing the source.
        /// \param sendingChannel (EchoChannel) - The sending channel.
        ////////////////////////////////////////////////////////////////////////////////////////////////////

        public EchoMessage(EchoNetwork network, EchoMessage sourceMessage, EchoChannel sendingChannel) :
            base(network, sourceMessage, sendingChannel)
        {
        }
コード例 #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// \fn public EchoMessage(EchoNetwork network, EchoMessage sourceMessage): base(network, sourceMessage)
        ///
        /// \brief Constructor.
        ///
        /// \par Description.
        ///      Constructor that generates a duplication of a source message.
        ///
        /// \par Algorithm.
        ///
        /// \par Usage Notes.
        ///
        /// \author Ilanh
        /// \date 27/06/2017
        ///
        /// \param network       (EchoNetwork) - The network.
        /// \param sourceMessage (EchoMessage) - Message describing the source.
        ////////////////////////////////////////////////////////////////////////////////////////////////////

        public EchoMessage(EchoNetwork network, EchoMessage sourceMessage) : base(network, sourceMessage)
        {
        }