Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/16 17:02:06 (8 years ago)
Author:
thasling
Message:

prepared protoype for next meeting

Location:
branches/thasling/DistributedGA/DistributedGA.Core
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.Core

    • Property svn:global-ignores set to
      obj
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IContactService.cs

    r13524 r13887  
    1919
    2020        [OperationContract]
    21         void MakeLog(PeerInfo source, string msg); //used to log all peers at a single location
    22  
     21        void UpdateHeartbeat(PeerInfo source); //Sends heartbeat to contact-server
     22
     23        [OperationContract]
     24        void MakeLog(PeerInfo source, string msg); //Used to log all peers at a single location
     25
    2326    }
    2427}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageContract.cs

    r13553 r13887  
    33using DistributedGA.Core.Domain;
    44
    5 namespace DistributedGA.Core.Interface {
    6   [ServiceContract]
    7   public interface IMessageContract {
    8     [OperationContract]
    9     void SendData(PeerInfo sender, SolutionInfo[] data);
     5namespace DistributedGA.Core.Interface
     6{
    107
    11     event EventHandler<MessageRecieveEventArgs> MessageRecieved;
    12   }
     8    [ServiceContract]
     9    public interface IMessageContract
     10    {
     11
     12        [OperationContract]
     13        void SendData(PeerInfo sender, byte[][] data);
     14
     15        event EventHandler<MessageRecieveEventArgs> MessageRecieved;
     16    }
    1317}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageHandler.cs

    r13556 r13887  
    22using DistributedGA.Core.Domain;
    33
    4 namespace DistributedGA.Core.Interface {
    5   public interface IMessageHandler {
    6     void Init(string lanIpPrefix, string contactServerUrl); //Registers at contract-server
     4namespace DistributedGA.Core.Interface
     5{
    76
    8     void PublishDataToNetwork(SolutionInfo[] data);
     7    public interface IMessageHandler
     8    {
    99
    10     SolutionInfo[] GetDataFromNetwork();
     10        void Init(string lanIpPrefix, string contactServerUrl); //Registers at contract-server
    1111
    12     PeerInfo GetPeerInfo();
     12        void PublishDataToNetwork(byte[][] data);
    1313
    14     List<PeerInfo> GetCurrentNetwork();
     14        byte[][] GetDataFromNetwork();
    1515
    16     void Dispose();
    17   }
     16        PeerInfo GetPeerInfo();
     17
     18        List<PeerInfo> GetCurrentNetwork();
     19
     20        void Dispose();
     21    }
    1822}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageSender.cs

    r13553 r13887  
    11using DistributedGA.Core.Domain;
    22
    3 namespace DistributedGA.Core.Interface {
    4   public interface IMessageSender {
    5     void Init(PeerInfo source);
     3namespace DistributedGA.Core.Interface
     4{
    65
    7     void SendData(PeerInfo destination, SolutionInfo[] data);
    8   }
     6    public interface IMessageSender
     7    {
     8
     9        void Init(PeerInfo source);
     10
     11        void SendData(PeerInfo destination, byte[][] data);
     12    }
    913}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageService.cs

    r13553 r13887  
    22using DistributedGA.Core.Domain;
    33
    4 namespace DistributedGA.Core.Interface {
    5   public interface IMessageService {
    6     /// <summary>
    7     /// Initializes a WCF service and host it with another thread
    8     /// </summary>
    9     /// <param name="ip">current external ip address</param>
    10     /// <returns>The port, on which the service was successfully hosted</returns>
    11     int Init(string ip);
     4namespace DistributedGA.Core.Interface
     5{
    126
    13     void Dispose();
     7    public interface IMessageService
     8    {
    149
    15     event EventHandler<MessageRecieveEventArgs> OnDataRecieved;
    16   }
     10        /// <summary>
     11        /// Initializes a WCF service and host it with another thread
     12        /// </summary>
     13        /// <param name="ip">current external ip address</param>
     14        /// <returns>The port, on which the service was successfully hosted</returns>
     15        int Init(string ip);
     16
     17        void Dispose();
     18
     19        event EventHandler<MessageRecieveEventArgs> OnDataRecieved;
     20    }
    1721}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IPeerListManager.cs

    r13556 r13887  
    22using DistributedGA.Core.Domain;
    33
    4 namespace DistributedGA.Core.Interface {
    5   public interface IPeerListManager {
    6     void Init(PeerInfo source, string contactServerUrl); //Registers own instance at the contact-server
     4namespace DistributedGA.Core.Interface
     5{
    76
    8     List<PeerInfo> GetPeerList(); //Recieves all peers in the network from contact-server
     7    public interface IPeerListManager
     8    {
    99
    10     void SendLogToServer(string msg);
    11   }
     10        void Init(PeerInfo source, string contactServerUrl); //Registers own instance at the contact-server
     11
     12        List<PeerInfo> GetPeerList(); //Recieves all peers in the network from contact-server
     13
     14        void SendLogToServer(string msg);
     15    }
    1216}
Note: See TracChangeset for help on using the changeset viewer.