Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/17/11 20:58:36 (14 years ago)
Author:
ascheibe
Message:

#1233 added buttons to gui for slave control

Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs

    r5314 r5315  
    3838  /// </summary>
    3939  public class Core : MarshalByRefObject {
     40
     41    //TODO: this class should be a singleton; there is only one instance, the reference is meanwhile save in TheCore
     42    public static Core TheCore;
     43
    4044    public static bool abortRequested { get; set; }
    4145    private Semaphore waitShutdownSem = new Semaphore(0, 1);
     
    6266
    6367    public Core() {
     68      TheCore = this;
    6469    }
    6570
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveCommunicationService.cs

    r5314 r5315  
    2828  public class SlaveCommunicationService : ISlaveCommunication {
    2929    private static List<ISlaveCommunicationCallbacks> subscribers = new List<ISlaveCommunicationCallbacks>();
    30     public Core SlaveCore { get; set; }
    31 
    3230
    3331    public bool Subscribe() {
     
    8684
    8785    public void Restart() {
    88       SlaveCore.Restart();
     86      Core.TheCore.Restart();
    8987    }
    9088    public void HardPause() {
    91       SlaveCore.HardPause();
     89      Core.TheCore.HardPause();
    9290    }
    9391
    9492    public void SoftPause() {
    95       SlaveCore.SoftPause();
     93      Core.TheCore.SoftPause();
    9694    }
    9795
    9896    public void ShutdownSlave() {
    99       SlaveCore.Shutdown();
     97      Core.TheCore.Shutdown();
    10098    }
    10199  }
Note: See TracChangeset for help on using the changeset viewer.