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

Constructor Index

 o InsertAssociation(Association)

Method Index

 o apply(Representation)
Adds new assocation to representation.
 o 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.
 o toString()

Constructors

 o InsertAssociation
  public InsertAssociation(Association association)

Methods

 o 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
 o 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
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index