Example #1
0
 public void Send(AbstractColleage to, String m)
 {
     this.mediator.SendMessage(this, to, m);
 }
Example #2
0
 public void Receive(AbstractColleage from, String message)
 {
     Console.WriteLine(String.Format("{0} RECEIVED message from {1}: {2}",
                                     Name, from.Name, message));
 }
Example #3
0
        // private ColleageA colA;
        //  private ColleageB colB;

        public void SendMessage(AbstractColleage from, AbstractColleage to, String message)
        {
            to.Receive(from, message);
        }