Package ca.phon.ipa.relations
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 Summary
ConstructorDescriptionAbstractSegmentalRelationDetector
(SegmentalRelation.Relation relation, boolean reversible, boolean localAllowed, boolean nonlocalAllowed) AbstractSegmentalRelationDetector
(SegmentalRelation.Relation relation, boolean includePlace, boolean includeManner, boolean includeVoicing, boolean includeHeight, boolean includeBackness, boolean includeTenseness, boolean includeRounding) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkPositions
(PhoneMap pm, int p1, int p2) protected abstract boolean
checkRelation
(PhoneDimension dimension, PhoneticProfile profile1, PhoneticProfile profile2, PhoneticProfile t1Profile, PhoneticProfile t2Profile, PhoneticProfile a1Profile, PhoneticProfile a2Profile) Returns an optional segmental relation.detectConsonantRelation
(PhoneMap pm, int p1, int p2) detectRelation
(PhoneMap pm, int p1, int p2, List<PhoneDimension> dimensions) detectVowelRelation
(PhoneMap pm, int p1, int p2) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setIncludeBackness
(boolean includeBackness) void
setIncludeHeight
(boolean includeHeight) void
setIncludeManner
(boolean includeManner) void
setIncludePlace
(boolean includePlace) void
setIncludeRounding
(boolean includeRounding) void
setIncludeTenseness
(boolean includeTenseness) void
setIncludeVoicing
(boolean includeVoicing) void
setLocalAllowed
(boolean localAllowed) void
setNonlocalAllowed
(boolean nonlocalAllowed) void
setReversible
(boolean reversible)
-
Constructor Details
-
AbstractSegmentalRelationDetector
-
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
-
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
Description copied from interface:SegmentalRelationDetector
Returns an optional segmental relation. isPresent() will returnfalse
when relation was not detected.- Specified by:
detect
in interfaceSegmentalRelationDetector
- Returns:
-
detectConsonantRelation
-
detectVowelRelation
-
checkPositions
-
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)
-