コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="e"></param>
        public CombinationPopulation(XmlElement e)
        {
            XmlNodeList nl = e.SelectNodes("population");

            children = new BasePopulation[nl.Count];
            for (int i = 0; i < nl.Count; i++)
            {
                children[i] = BasePopulation.Load((XmlElement)nl[i]);
            }
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="f"></param>
 /// <param name="core"></param>
 public MultiplierPopulation(int f, BasePopulation core)
 {
     this.factor = f;
     this.core   = core;
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="core"></param>
 /// <param name="reference">
 /// Object that returns a reference to the existing same object.
 /// This object needs to be serializable, and will be used to
 /// restore reference correctly.
 /// </param>
 public PersistentPopulation(BasePopulation core, IObjectReference reference)
 {
     this.core     = core;
     this.resolver = reference;
 }