Exemplo n.º 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));
        }
Exemplo n.º 2
0
    /// <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);
    }