public Hla GetAbstractInstance(string name) { SpecialFunctions.CheckCondition(MixedWithB15AndA68AbstractRegex.IsMatch(name)); HlaAbstractionOKType1 hla = new HlaAbstractionOKType1(); hla.Name = name; hla._isGround = false; return(hla); }
public Hla GetAbstractInstance(string name) { SpecialFunctions.CheckCondition(FourDigitAbstractOrGroundRegex.IsMatch(name) && !FourDigitGroundRegex.IsMatch(name), string.Format("Hla ({0}) is not of legal form", name)); HlaAbstractionOKType1 hla = new HlaAbstractionOKType1(); hla.Name = name; hla._isGround = false; return(hla); }
override public Hla GetGroundInstance(string name) { SpecialFunctions.CheckCondition(MixedWithB15AndA68GroundRegex.IsMatch(name), string.Format("HLA {0} doesn't match the pattern ({1})", name, MixedWithB15AndA68GroundRegex.ToString())); SpecialFunctions.CheckCondition(name != "B15" && name != "A68", string.Format("HLA {0} should not equal 'B15' or 'A68'", name)); HlaAbstractionOKType1 hla = new HlaAbstractionOKType1(); hla.Name = name; hla._isGround = true; return(hla); }