示例#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();
        }
示例#2
0
 public Session(SessionConfig scfg, Network net, MapImage map, MsgListing ml)
 {
     this.sConf = scfg;
     this.network = net;
     this.mapImg = map;
     this.mListing = ml;
 }
        public SettingsForm(
            SessionConfig _sConf,
            NetworkConfig _nConf,
            VertexConfig _vConf
            )
        {
            this.InitComponents();

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

            // this.setValues();
        }