jcreek.gui.conceptmap
Class VisualRelation

java.lang.Object
  extended byjcreek.util.graph.Edge
      extended byjcreek.gui.conceptmap.VisualRelation
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class VisualRelation
extends Edge

Represents a specialization of Edge (as in a graph edge) that encapsulates a Creek Relation.

Version:
2.0
Author:
Frode Sørmo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jcreek.util.graph.Edge
graph
 
Constructor Summary
VisualRelation(VisualEntity from, VisualEntity to, Relation relation)
          Creates a new VisualRelation.
 
Method Summary
 void connectAfterLoad(KnowledgeModel model)
           
 boolean equals(java.lang.Object ob)
          Two VisualRelations are considered equal if they encapsulate the same relation.
 Relation getRelation()
          Returns the relation encapsulated by this VisualRelation.
 int hashCode()
          Overridden to fulfill the hashCode() contract since equals() has been overridden.
 boolean represents(Relation r)
          Returns true if the supplied relation is the same as the relation encapsulated by this VisualRelation.
 java.lang.String toString()
           
 
Methods inherited from class jcreek.util.graph.Edge
clone, getFrom, getTo, remove
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisualRelation

public VisualRelation(VisualEntity from,
                      VisualEntity to,
                      Relation relation)
Creates a new VisualRelation.

Parameters:
relation - The Creek relation this VisualRelation encapsulates.
Method Detail

represents

public boolean represents(Relation r)
Returns true if the supplied relation is the same as the relation encapsulated by this VisualRelation.


getRelation

public Relation getRelation()
Returns the relation encapsulated by this VisualRelation.


hashCode

public int hashCode()
Overridden to fulfill the hashCode() contract since equals() has been overridden.


equals

public boolean equals(java.lang.Object ob)
Two VisualRelations are considered equal if they encapsulate the same relation.


toString

public java.lang.String toString()

connectAfterLoad

public void connectAfterLoad(KnowledgeModel model)


Created at IDI, NTNU by the Artificial Intelligence and Learning group