public RegStatLineBase CreateStructure(Focus focus_) { var ret = new BondStructureOTR(focus_, Points); if (!ret.HasAllBondsDefined()) { ret.Dispose(); return null; } else return ret; }
public RegStatLineBase CreateStructure(Focus focus_) { if (Mode == CountryGroupNodeMode.OTR) { var ret = new BondStructureOTR(focus_, Points); if (!ret.HasAllBondsDefined()) { ret.Dispose(); return null; } else return ret; } else if (Mode == CountryGroupNodeMode.CMT) { return new BondStructureCMT(focus_, Points); } else throw new Exception("Need to implement!"); }