Class OT.InsertAssociation
All Packages Class Hierarchy This Package Previous Next Index
Class OT.InsertAssociation
java.lang.Object
|
+----OT.Operation
|
+----OT.AssociationOperation
|
+----OT.InsertAssociation
- public class InsertAssociation
- extends AssociationOperation
GEN operation to insert a new association.
- Version:
- 1999-03-31
- Author:
- Andrea Heiberg, University of Arizona
-
InsertAssociation(Association)
-
-
apply(Representation)
- Adds new assocation to representation.
-
test(Representation)
- Tests to see if a new parent-child association can be inserted.
returns false if parent doesn't exist;
returns false if there is an association between Root and another token of Feature;
returns true otherwise.
-
toString()
-
InsertAssociation
public InsertAssociation(Association association)
apply
public void apply(Representation rep)
- Adds new assocation to representation. If the feature for the association doesn't exist, insert the feature.
- Overrides:
- apply in class Operation
test
public boolean test(Representation rep)
- Tests to see if a new parent-child association can be inserted.
returns false if parent doesn't exist;
returns false if there is an association between Root and another token of Feature;
returns true otherwise.
- Overrides:
- test in class Operation
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index