Example #1
0
File: NCC.cs Project: sopel30/tsst2
 public NCC(Manager manager, LRM linkResourceManager, networkLibrary.transportClient client, MainWindow window)
 {
     this.manager = manager;
     this.network = client;
     ConnectionController = new CC(this.network, window);
     this.lrm = linkResourceManager;
     this.rc = new RC(manager, linkResourceManager, ConnectionController);
 }
Example #2
0
 public AdministrativeDomain(MainWindow window)
 {
     this.window = window;
     this.connection = window.links;
     manager = new Manager();
     neighbours = new List<string>();
     parents = new List<string>();
     children = new List<string>();
     requestsToAnswer = new Dictionary<string, string>();
     toEstablish = new Dictionary<string, NetworkConnection>();
     waitForAck = new Dictionary<string, string>();
 }
Example #3
0
        public Head()
        {
            InitializeComponent();
            domains = new List<MainWindow>();

            string topology = SubNetwork.App.partialPathToTopology;
            for (int i = 0; i < SubNetwork.App.partialPathToConfigs.Length; i++)
            {
                string conf = SubNetwork.App.partialPathToConfigs[i];
                if (conf != null && topology != null)
                {

                    pathToConfig = @"" + conf;
                    pathToTopology = @"" + topology;
                    MainWindow wind = new MainWindow(pathToConfig, pathToTopology);
                    domains.Add(wind);
                    wind.Show();
                }
            }
        }
Example #4
0
File: CC.cs Project: sopel30/tsst2
 public CC(networkLibrary.transportClient networkC, MainWindow wind)
 {
     this.network = networkC;
     this.wind = wind;
 }