Ejemplo n.º 1
0
        public void Initialize(int depth, bool isFull, string buySign = "")
        {
            if (buySign == "")
            {
                BuyRoot = BaseElement.CreateLogic();
                BuyRoot.Initialize(depth - 1, isFull);
            }
            else
            {
                SellRoot = BaseElement.CreateLogic();
                SellRoot.Initialize(depth - 1, isFull);

                SellLCRoot = BaseElement.CreateLogic();
                SellLCRoot.Initialize(depth - 1, isFull);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 個体が持つ各木が表す論理式を表示するメソッド
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return(BuyRoot?.ToString() + Environment.NewLine + SellRoot?.ToString() + Environment.NewLine + SellLCRoot?.ToString());
 }