aminePlatform.kernel.ontology
Class Link

java.lang.Object
  extended byaminePlatform.kernel.ontology.Link
All Implemented Interfaces:
Edge, java.io.Serializable

public class Link
extends java.lang.Object
implements Edge

Title : Link Class

Description : Link implements Edge interface and represents the relation between two CSs in an Ontology.

Copyright: Copyright (c) Adil KABBAJ, 2004-2009

See Also:
Serialized Form

Field Summary
static java.awt.Font fontTxtFld
           
(package private)  java.awt.Point posRelNameOnSegments
           
static java.lang.String S_REL_CTXT
           
static java.lang.String S_REL_IND
           
static java.lang.String S_REL_SPEC
           
static java.lang.String S_REL_USED_IN
           
(package private)  java.util.ArrayList segmentPoints
           
(package private)  CS source
           
(package private) static Link static_link
           
(package private)  CS target
           
 
Constructor Summary
Link()
           
Link(CS source, CS target)
           
 
Method Summary
 Edge copyEdge()
           
 java.util.ArrayList createArraySegmentPoints(java.lang.Object g, Lexicon lexicon)
           
 java.awt.Point createPosEdgeNameOnSegments(java.lang.Object g, Lexicon lexicon)
           
 boolean equals(java.lang.Object obj)
           
 java.util.ArrayList getArraySegmentPoints(Lexicon lexicon)
           
 java.lang.String getName(Lexicon lexicon)
           
 java.awt.Point getPosEdgeNameOnSegments(Lexicon lexicon)
           
 java.lang.Object getSourceNode()
           
 java.lang.Object getTargetNode()
           
 void setName(java.lang.String name, Lexicon lexicon)
           
 void setPosEdgeNameOnSegments(java.awt.Point pos)
           
 boolean setSegmentPoints(java.util.ArrayList points)
           
 void setSourceNode(Node node)
           
 void setTargetNode(Node node)
           
static Link wrap(CS source, CS target)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

CS source

target

CS target

segmentPoints

java.util.ArrayList segmentPoints

posRelNameOnSegments

java.awt.Point posRelNameOnSegments

S_REL_SPEC

public static final java.lang.String S_REL_SPEC
See Also:
Constant Field Values

S_REL_IND

public static final java.lang.String S_REL_IND
See Also:
Constant Field Values

S_REL_USED_IN

public static final java.lang.String S_REL_USED_IN
See Also:
Constant Field Values

S_REL_CTXT

public static final java.lang.String S_REL_CTXT
See Also:
Constant Field Values

fontTxtFld

public static final java.awt.Font fontTxtFld

static_link

static Link static_link
Constructor Detail

Link

public Link()

Link

public Link(CS source,
            CS target)
Method Detail

equals

public boolean equals(java.lang.Object obj)

wrap

public static Link wrap(CS source,
                        CS target)

getName

public java.lang.String getName(Lexicon lexicon)
Specified by:
getName in interface Edge

setName

public void setName(java.lang.String name,
                    Lexicon lexicon)
             throws java.lang.Exception
Specified by:
setName in interface Edge
Throws:
java.lang.Exception

getArraySegmentPoints

public java.util.ArrayList getArraySegmentPoints(Lexicon lexicon)
Specified by:
getArraySegmentPoints in interface Edge

createArraySegmentPoints

public java.util.ArrayList createArraySegmentPoints(java.lang.Object g,
                                                    Lexicon lexicon)
Specified by:
createArraySegmentPoints in interface Edge

setSegmentPoints

public boolean setSegmentPoints(java.util.ArrayList points)
Specified by:
setSegmentPoints in interface Edge

getSourceNode

public java.lang.Object getSourceNode()
Specified by:
getSourceNode in interface Edge

setSourceNode

public void setSourceNode(Node node)
Specified by:
setSourceNode in interface Edge

getTargetNode

public java.lang.Object getTargetNode()
Specified by:
getTargetNode in interface Edge

setTargetNode

public void setTargetNode(Node node)
Specified by:
setTargetNode in interface Edge

getPosEdgeNameOnSegments

public java.awt.Point getPosEdgeNameOnSegments(Lexicon lexicon)
Specified by:
getPosEdgeNameOnSegments in interface Edge

createPosEdgeNameOnSegments

public java.awt.Point createPosEdgeNameOnSegments(java.lang.Object g,
                                                  Lexicon lexicon)
Specified by:
createPosEdgeNameOnSegments in interface Edge

setPosEdgeNameOnSegments

public void setPosEdgeNameOnSegments(java.awt.Point pos)
Specified by:
setPosEdgeNameOnSegments in interface Edge

copyEdge

public Edge copyEdge()
Specified by:
copyEdge in interface Edge