コード例 #1
0
        /// <summary>Return the SimulationEdgeListener.</summary>
        protected virtual EdgeListener CreateEdgeListener(int id)
        {
            TAAuthorizer auth = null;

            if (_broken != 0 && id > 0)
            {
                auth = new BrokenTAAuth(_broken);
            }

            return(new SimulationEdgeListener(id, _parameters.DropRate, auth, true));
        }
コード例 #2
0
ファイル: Simulator.cs プロジェクト: hseom/brunet
    /// <summary>Return the SimulationEdgeListener.</summary>
    protected virtual EdgeListener CreateEdgeListener(int id)
    {
      TAAuthorizer auth = null;
      if(_broken != 0 && id > 0) {
        auth = new BrokenTAAuth(_rand, _broken);
      }

      return new SimulationEdgeListener(id, 0, auth, true);
    }