Class AbstractSegmentalRelationDetector

java.lang.Object
ca.phon.ipa.relations.AbstractSegmentalRelationDetector
All Implemented Interfaces:
SegmentalRelationDetector
Direct Known Subclasses:
AssimilationDetector, HarmonyDetector, MetathesisDetector, MigrationDetector, ReduplicationDetector

public abstract class AbstractSegmentalRelationDetector extends Object implements SegmentalRelationDetector
  • Constructor Details

    • AbstractSegmentalRelationDetector

      public AbstractSegmentalRelationDetector(SegmentalRelation.Relation relation)
    • AbstractSegmentalRelationDetector

      public AbstractSegmentalRelationDetector(SegmentalRelation.Relation relation, boolean includePlace, boolean includeManner, boolean includeVoicing, boolean includeHeight, boolean includeBackness, boolean includeTenseness, boolean includeRounding)
    • AbstractSegmentalRelationDetector

      public AbstractSegmentalRelationDetector(SegmentalRelation.Relation relation, boolean reversible, boolean localAllowed, boolean nonlocalAllowed)
  • Method Details

    • getRelation

      public SegmentalRelation.Relation getRelation()
    • isIncludePlace

      public boolean isIncludePlace()
    • setIncludePlace

      public void setIncludePlace(boolean includePlace)
    • isIncludeManner

      public boolean isIncludeManner()
    • setIncludeManner

      public void setIncludeManner(boolean includeManner)
    • isIncludeVoicing

      public boolean isIncludeVoicing()
    • setIncludeVoicing

      public void setIncludeVoicing(boolean includeVoicing)
    • isIncludeHeight

      public boolean isIncludeHeight()
    • setIncludeHeight

      public void setIncludeHeight(boolean includeHeight)
    • isIncludeBackness

      public boolean isIncludeBackness()
    • setIncludeBackness

      public void setIncludeBackness(boolean includeBackness)
    • isIncludeTenseness

      public boolean isIncludeTenseness()
    • setIncludeTenseness

      public void setIncludeTenseness(boolean includeTenseness)
    • isIncludeRounding

      public boolean isIncludeRounding()
    • setIncludeRounding

      public void setIncludeRounding(boolean includeRounding)
    • isReversible

      public boolean isReversible()
    • setReversible

      public void setReversible(boolean reversible)
    • isLocalAllowed

      public boolean isLocalAllowed()
    • setLocalAllowed

      public void setLocalAllowed(boolean localAllowed)
    • isNonlocalAllowed

      public boolean isNonlocalAllowed()
    • setNonlocalAllowed

      public void setNonlocalAllowed(boolean nonlocalAllowed)
    • detect

      public Optional<SegmentalRelation> detect(PhoneMap pm, int p1, int p2)
      Description copied from interface: SegmentalRelationDetector
      Returns an optional segmental relation. isPresent() will return false when relation was not detected.
      Specified by:
      detect in interface SegmentalRelationDetector
      Returns:
    • detectConsonantRelation

      public Optional<SegmentalRelation> detectConsonantRelation(PhoneMap pm, int p1, int p2)
    • detectVowelRelation

      public Optional<SegmentalRelation> detectVowelRelation(PhoneMap pm, int p1, int p2)
    • checkPositions

      protected boolean checkPositions(PhoneMap pm, int p1, int p2)
    • detectRelation

      public Optional<SegmentalRelation> detectRelation(PhoneMap pm, int p1, int p2, List<PhoneDimension> dimensions)
    • checkRelation

      protected abstract boolean checkRelation(PhoneDimension dimension, PhoneticProfile profile1, PhoneticProfile profile2, PhoneticProfile t1Profile, PhoneticProfile t2Profile, PhoneticProfile a1Profile, PhoneticProfile a2Profile)