protected void SendMessage(int destId) { BaseChannel channel = OutGoingChannels.First(c => c[ElementDictionaries.ElementAttributes].Value[BaseChannel.ElementAttributeKeys.DestProcess].Value == destId); EchoImprovedMessage message = new EchoImprovedMessage(EchoImprovedMessage.MessageTypes.Wave, channel, 0, 0); Send(channel[ElementDictionaries.ElementAttributes].Value[BaseChannel.ElementAttributeKeys.DestProcess].Value, message); }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// \fn public EchoImprovedMessage(EchoImprovedMessage sourceMessage, EchoImprovedChannel sendingChannel): base(sourceMessage, sendingChannel) /// /// \brief Constructor. /// /// \par Description. /// A message that is duplicatted to the source except for the channel parameters. /// /// \par Algorithm. /// /// \par Usage Notes. /// This constructor is usfull when you want to forwared a massege to other channels /// /// \author Ilanh /// \date 14/03/2017 /// /// \param sourceMessage (EchoImprovedMessage) - Message describing the source. /// \param sendingChannel (EchoImprovedChannel) - The sending channel. //////////////////////////////////////////////////////////////////////////////////////////////////// public EchoImprovedMessage(EchoImprovedNetwork network, EchoImprovedMessage sourceMessage, EchoImprovedChannel sendingChannel) : base(network, sourceMessage, sendingChannel) { }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// \fn public EchoImprovedMessage(EchoImprovedNetwork network, EchoImprovedMessage 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 (EchoImprovedNetwork) - The network. /// \param sourceMessage (EchoImprovedMessage) - Message describing the source. //////////////////////////////////////////////////////////////////////////////////////////////////// public EchoImprovedMessage(EchoImprovedNetwork network, EchoImprovedMessage sourceMessage) : base(network, sourceMessage) { }