Class SonorityNode
java.lang.Object
ca.phon.opgraph.OpNode
ca.phon.syllabifier.opgraph.nodes.SonorityNode
- All Implemented Interfaces:
ca.phon.opgraph.app.extensions.NodeSettings
,ca.phon.opgraph.dag.Vertex
,ca.phon.opgraph.extensions.Extendable
public class SonorityNode
extends ca.phon.opgraph.OpNode
implements ca.phon.opgraph.app.extensions.NodeSettings
Marks phones with sonority annotations for use in phonex
expressions. The sonority values are determined by the
node settings. Each line in the node settings String
should
be formatted like:
<sonority_value>=<phonex&rt;E.g.,:
0=[{affricate}{stop,-nasal}{fricative}]
-
Nested Class Summary
-
Field Summary
Fields inherited from class ca.phon.opgraph.OpNode
CATEGORY_PROPERTY, COMPLETED_FIELD, DESCRIPTION_PROPERTY, ENABLED_FIELD, ID_PROPERTY, NAME_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetComponent
(ca.phon.opgraph.app.GraphDocument document) void
loadSettings
(Properties properties) void
operate
(ca.phon.opgraph.OpContext context) parseSonorityScale
(String scale) Set sonority scale as a string.void
setSonorityScale
(String scale) Methods inherited from class ca.phon.opgraph.OpNode
addNodeListener, checkCanceled, getCategory, getDefaultCategory, getDefaultDescription, getDefaultName, getDescription, getExtension, getExtensionClasses, getId, getInputFields, getInputFieldWithKey, getName, getOutputFields, getOutputFieldWithKey, isBreakpoint, isCanceled, putExtension, putField, putField, putField, putField, removeAllInputFields, removeAllOutputFields, removeField, removeField, removeNodeListener, setBreakpoint, setCanceled, setCategory, setDescription, setId, setName
-
Constructor Details
-
SonorityNode
public SonorityNode()Constructor
-
-
Method Details
-
getSonorityScale
-
setSonorityScale
-
operate
public void operate(ca.phon.opgraph.OpContext context) throws ca.phon.opgraph.exceptions.ProcessingException - Specified by:
operate
in classca.phon.opgraph.OpNode
- Throws:
ca.phon.opgraph.exceptions.ProcessingException
-
parseSonorityScale
Set sonority scale as a string.- Parameters:
scale
-- Throws:
PhonexPatternException
-
getComponent
- Specified by:
getComponent
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
getSettings
- Specified by:
getSettings
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
loadSettings
- Specified by:
loadSettings
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-