Exemplo n.º 1
0
        ///
        /// Default construcor
        ///
        public MainForm()
        {
            this.InitComponents();

            this.sConf = new SessionConfig(
                Defaults.Delay,
                Defaults.sessionCount,
                Defaults.sessionGenLimit
            );

            this.nConf = new NetworkConfig(
                Defaults.HNodes,
                Defaults.VNodes
            );

            this.vConf = new VertexConfig(
                Defaults.Buffer,
                Defaults.Base,
                Defaults.GenLimit,
                Defaults.MaxLoadRatio,
                null // the routing function depends on the network
            );

            //this.initSimulation();
        }
Exemplo n.º 2
0
 public Session(SessionConfig scfg, Network net, MapImage map, MsgListing ml)
 {
     this.sConf = scfg;
     this.network = net;
     this.mapImg = map;
     this.mListing = ml;
 }
Exemplo n.º 3
0
        public SettingsForm(
            SessionConfig _sConf,
            NetworkConfig _nConf,
            VertexConfig _vConf
            )
        {
            this.InitComponents();

            this.sConf = _sConf;
            this.nConf = _nConf;
            this.vConf = _vConf;

            // this.setValues();
        }