예제 #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);
            }
        }
예제 #2
0
 /// <summary>
 /// 個体が持つ各木が表す論理式を表示するメソッド
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return(BuyRoot?.ToString() + Environment.NewLine + SellRoot?.ToString() + Environment.NewLine + SellLCRoot?.ToString());
 }