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