gumbo.util.relation
Class TestRelationship

java.lang.Object
  |
  +--gumbo.util.AbstractDisposable
        |
        +--gumbo.util.relation.Relationship
              |
              +--gumbo.util.relation.TestRelationship
All Implemented Interfaces:
Disposable, java.io.Serializable

public class TestRelationship
extends Relationship

Version:
$Revision: 1.1 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
See Also:
Serialized Form

Constructor Summary
TestRelationship(java.lang.String id, java.lang.Class delegatorType)
           
 
Method Summary
protected  void checkRelation(Relation relation)
          Called by the system to check added relations and their delegators for compatibility with this relationship.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class gumbo.util.relation.Relationship
getAddedConnectionOut, getAddedRelationOut, getRelations, getRemovingConnectionOut, getRemovingRelationOut, implAddedConnection, implAddRelation, implDispose, implRemoveRelation, implRemovingConnection
 
Methods inherited from class gumbo.util.AbstractDisposable
dispose, isDisposed
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestRelationship

public TestRelationship(java.lang.String id,
                        java.lang.Class delegatorType)
Method Detail

getId

public java.lang.String getId()

checkRelation

protected void checkRelation(Relation relation)
Description copied from class: Relationship
Called by the system to check added relations and their delegators for compatibility with this relationship. Typically, all relations in a relationship are the same basic type (such as IntersectionTreeNode). Implementors should throw an exception if the relation or its delegator is incompatible. Implementors can assume that null relation or delegator, duplication of relation or delegator, and the relation's relationship have already been checked.

Specified by:
checkRelation in class Relationship
Parameters:
relation - The relation. Never null.

toString

public java.lang.String toString()
Overrides:
toString in class Relationship

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object