Package net.ggtools.grand.graph
Class LinkImpl
- java.lang.Object
-
- net.ggtools.grand.graph.LinkImpl
-
- All Implemented Interfaces:
GraphObject
,Link
- Direct Known Subclasses:
AntLink
public class LinkImpl extends Object implements Link
- Author:
- Christophe Labouisse
-
-
Field Summary
-
Fields inherited from interface net.ggtools.grand.graph.GraphObject
ATTR_ALL, ATTR_NONE
-
Fields inherited from interface net.ggtools.grand.graph.Link
ATTR_CONDITIONAL_LINK, ATTR_WEAK_LINK
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(LinkVisitor visitor)
Method accept.void
clearAttributes(int attributeMask)
Method clearAttributes.int
getAttributes()
Method getAttributes.Node
getEndNode()
Method getEndNode.Graph
getGraph()
Method getGraph.String
getName()
Method getName.Node
getStartNode()
Method getStartNode.boolean
hasAttributes(int attributeMask)
Method hasAttributes.void
setAttributes(int attributeMask)
Method setAttributes.String
toString()
Method toString.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ggtools.grand.graph.GraphObject
clearAttributes, getAttributes, hasAttributes, setAttributes
-
-
-
-
Method Detail
-
toString
public final String toString()
Method toString.- Overrides:
toString
in classObject
- Returns:
- String
- See Also:
Object.toString()
-
getStartNode
public final Node getStartNode()
Method getStartNode.- Specified by:
getStartNode
in interfaceLink
- Returns:
- Node
- See Also:
Link.getStartNode()
-
getEndNode
public final Node getEndNode()
Method getEndNode.- Specified by:
getEndNode
in interfaceLink
- Returns:
- Node
- See Also:
Link.getEndNode()
-
getGraph
public final Graph getGraph()
Method getGraph.- Specified by:
getGraph
in interfaceGraphObject
- Returns:
- Graph
- See Also:
GraphObject.getGraph()
-
getName
public final String getName()
Method getName.- Specified by:
getName
in interfaceGraphObject
- Returns:
- String
- See Also:
GraphObject.getName()
-
accept
public void accept(LinkVisitor visitor)
Method accept.- Specified by:
accept
in interfaceLink
- Parameters:
visitor
- LinkVisitor- See Also:
Link.accept(net.ggtools.grand.graph.visit.LinkVisitor)
-
setAttributes
public void setAttributes(int attributeMask)
Method setAttributes.- Specified by:
setAttributes
in interfaceGraphObject
- Parameters:
attributeMask
- int- See Also:
GraphObject.setAttributes(int)
-
getAttributes
public int getAttributes()
Method getAttributes.- Specified by:
getAttributes
in interfaceGraphObject
- Returns:
- int
- See Also:
GraphObject.getAttributes()
-
clearAttributes
public void clearAttributes(int attributeMask)
Method clearAttributes.- Specified by:
clearAttributes
in interfaceGraphObject
- Parameters:
attributeMask
- int- See Also:
GraphObject.clearAttributes(int)
-
hasAttributes
public boolean hasAttributes(int attributeMask)
Method hasAttributes.- Specified by:
hasAttributes
in interfaceGraphObject
- Parameters:
attributeMask
- int- Returns:
- boolean
- See Also:
GraphObject.hasAttributes(int)
-
-