Class OT.Representation
All Packages Class Hierarchy This Package Previous Next Index
Class OT.Representation
java.lang.Object
|
+----OT.Representation
- public class Representation
- extends Object
Representation.
- Version:
- 1999-03-12
- Author:
- Andrea Heiberg, University of Arizona
-
debug
-
-
featureTokenImPrecedence
-
-
featureTypeSet
-
-
floatingFeatures
-
-
footAssociations
-
-
footNodes
-
-
gloss
-
-
isOptimal
-
-
languageFeatureTypeSet
-
-
moraAssociations
-
-
moraNodes
-
-
operationsTried
-
-
orderedFeatureTokens
-
-
orderedRoots
-
-
prwdAssociations
-
-
prwdNodes
-
-
rootAssociations
-
-
rootNodes
-
-
syllableAssociations
-
-
syllableNodes
-
-
Representation(Debug, LanguageFeatureTypeSet)
-
-
add(Association)
- Adds association to the appropriate set of associations.
-
add(Node)
- Adds node to the appropriate set of nodes.
-
adjacent(Feature, Feature)
- Returns true if f and g are adjacent, false otherwise.
-
anchorAdjacent(Anchor, Anchor)
- Returns true if a1 and a2 are adjacent, false otherwise.
-
assignCoordinates(int, int, int, int)
- Assign drawing coordinates to this representation.
-
contains(Feature)
- Returns true if this Representation contains feature, returns false otherwise.
-
copy()
- Returns a copy of this Representation.
-
equals(Representation)
-
-
floats(Feature)
- Returns true if feature is in the set of floating features, false otherwise.
-
gapped(Operation)
- Returns true is Representation is gapped with respect to Operation.feature, false otherwise.
-
getAnchors(String)
-
-
getAssociation(Association)
- Returns a handle to the actual Association with the same variables as a, or null if there is no such Association.
-
getAssociations(Node)
-
-
getFeatureNodes(FeatureType)
-
-
getKey()
-
-
getNode(Node)
-
-
getOrderedAnchors(String)
- Returns an ordered list of anchors.
-
getViolations(Constraint)
- Returns the number of violations of constraint by this Representation.
-
ocp(Feature)
-
-
parseRawData(Vector)
- Parse "raw" data into sets of phonological objects and relations.
-
path(Node, Node)
- path(ancestor,descendant) is true if
a.
-
printConstraintsViolations(Hierarchy)
-
-
printViolations(Hierarchy)
-
-
putViolations(Constraint, Integer)
- Add a constraint-violation count pair to the set.
-
remove(Association)
-
-
remove(Feature)
-
-
toOrthography()
-
-
toString()
-
rootAssociations
protected AssociationSet rootAssociations
moraAssociations
protected AssociationSet moraAssociations
syllableAssociations
protected AssociationSet syllableAssociations
footAssociations
protected AssociationSet footAssociations
prwdAssociations
protected AssociationSet prwdAssociations
isOptimal
protected boolean isOptimal
debug
protected Debug debug
featureTypeSet
protected FeatureTypeSet featureTypeSet
featureTokenImPrecedence
protected Hashtable featureTokenImPrecedence
languageFeatureTypeSet
protected LanguageFeatureTypeSet languageFeatureTypeSet
floatingFeatures
protected NodeSet floatingFeatures
rootNodes
protected NodeSet rootNodes
moraNodes
protected NodeSet moraNodes
syllableNodes
protected NodeSet syllableNodes
footNodes
protected NodeSet footNodes
prwdNodes
protected NodeSet prwdNodes
gloss
protected String gloss
operationsTried
protected Vector operationsTried
orderedFeatureTokens
protected Vector orderedFeatureTokens
orderedRoots
protected Vector orderedRoots
Representation
public Representation(Debug debug,
LanguageFeatureTypeSet languageFeatureTypeSet)
ocp
public boolean ocp(Feature f)
adjacent
public boolean adjacent(Feature f,
Feature g)
- Returns true if f and g are adjacent, false otherwise.
For ordered features, adjacency is determined by the inherent ordering of the features.
For unordered features, adjacency is determined through anchor paths.
Unordered floating features are adjacent to all other features.
anchorAdjacent
public boolean anchorAdjacent(Anchor a1,
Anchor a2)
- Returns true if a1 and a2 are adjacent, false otherwise.
floats
public boolean floats(Feature feature)
- Returns true if feature is in the set of floating features, false otherwise.
add
public void add(Association association)
- Adds association to the appropriate set of associations.
add
public void add(Node node)
- Adds node to the appropriate set of nodes.
assignCoordinates
public void assignCoordinates(int hSpace,
int vSpace,
int yOffset,
int vFeatureSpace)
- Assign drawing coordinates to this representation.
contains
public boolean contains(Feature feature)
- Returns true if this Representation contains feature, returns false otherwise.
copy
public Representation copy()
- Returns a copy of this Representation. (Explicitly copies each object and set of objects.)
equals
public boolean equals(Representation other)
gapped
public boolean gapped(Operation operation)
- Returns true is Representation is gapped with respect to Operation.feature, false otherwise.
getAnchors
public NodeSet getAnchors(String s)
getAssociation
public Association getAssociation(Association a)
- Returns a handle to the actual Association with the same variables as a, or null if there is no such Association.
getAssociations
public AssociationSet getAssociations(Node n)
getFeatureNodes
public FeatureTokenSet getFeatureNodes(FeatureType featureType)
getKey
public String getKey()
getNode
public Node getNode(Node node)
getOrderedAnchors
public Vector getOrderedAnchors(String anchorType)
- Returns an ordered list of anchors. Determine ordering through paths to Root nodes.
getViolations
public Integer getViolations(Constraint constraint)
- Returns the number of violations of constraint by this Representation.
parseRawData
public void parseRawData(Vector rawLines)
- Parse "raw" data into sets of phonological objects and relations.
path
public boolean path(Node ancestor,
Node descendant)
- path(ancestor,descendant) is true if
a. association(ancestor,descendant) exists or
b. association(ancestor, middle) exists and path(middle, descendent) exists
printConstraintsViolations
public String printConstraintsViolations(Hierarchy hierarchy)
printViolations
public String printViolations(Hierarchy hierarchy)
putViolations
public void putViolations(Constraint constraint,
Integer violations)
- Add a constraint-violation count pair to the set.
remove
public void remove(Association association)
remove
public void remove(Feature feature)
toOrthography
public String toOrthography()
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index