~twpol/or/trunk

« back to all changes in this revision

Viewing changes to Architecture/Messaging.cs

  • Committer: wacampbell
  • Date: 2011-12-14 16:36:30 UTC
  • Revision ID: svn-v4:a9f3cfff-6c41-7446-b0ca-052bd761e6eb:trunk:907
Created a separate project for development of architectural concepts.
A link is provided to a google docs document to accompany the project file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
using System.Linq;
 
4
using System.Text;
 
5
 
 
6
namespace ORArchitecture
 
7
{
 
8
    /// <summary>
 
9
    /// A mechanism for communicaton among modules.
 
10
    /// </summary>
 
11
    interface iListener
 
12
    {
 
13
        public void RecieveMessage( Messaging source, EventMessage message);
 
14
    }
 
15
 
 
16
    interface iSender
 
17
    {
 
18
        public void SendMessage(Messaging source, Messaging destination, EventMessage message );
 
19
        // for example signal code might send a message to a train driver
 
20
        //              SendMessage( this, Train4.Controller, EventMessage( "Hold at siding 7 for train 16" ) )
 
21
    }
 
22
 
 
23
    class EventMessage
 
24
    {
 
25
        // TO DEFINE
 
26
    }
 
27
 
 
28
}