示例#1
0
文件: Lingon.cs 项目: Jandhi/Chronos
        public static Lingon MakeConsonant(PoA poA, MoA moA, params ConsonantalFeature[] consonantalFeatures)
        {
            var lingon = new Lingon("C", poA, moA, Feature.Consonant);

            lingon.Features.AddRange(consonantalFeatures);
            return(lingon);
        }
示例#2
0
文件: Lingon.cs 项目: Jandhi/Chronos
        public static Lingon MakeVowel(VowelHeight height, VowelBackness backness, params VowelFeature[] vowelFeatures)
        {
            var lingon = new Lingon("V", height, backness, Feature.Vowel);

            lingon.Features.AddRange(vowelFeatures);
            return(lingon);
        }
示例#3
0
文件: Lingon.cs 项目: Jandhi/Chronos
 public bool Equals(Lingon other)
 {
     return(Features.TrueForAll(ft => other.Features.Contains(ft)) &&
            other.Features.TrueForAll(ft => Features.Contains(ft)));
 }
示例#4
0
文件: Lingon.cs 项目: Jandhi/Chronos
 public virtual bool IsMatch(Lingon lingon)
 {
     return(Features.TrueForAll(ft => lingon.Features.Contains(ft)));
 }