net.ggtools.grand.graph
Interface Link

All Superinterfaces:
GraphObject
All Known Implementing Classes:
AntLink, AntTaskLink, LinkImpl, SubantTaskLink

public interface Link
extends GraphObject

Interface for class representing links. A link is an object connecting exactly two Nodes: the start node and the end node.

Author:
Christophe Labouisse

Field Summary
static int ATTR_CONDITIONAL_LINK
          Attribute bit to be set on link subject to a condition.
static int ATTR_WEAK_LINK
          Attribute bit to be set on weak links.
 
Fields inherited from interface net.ggtools.grand.graph.GraphObject
ATTR_ALL, ATTR_NONE
 
Method Summary
 void accept(LinkVisitor visitor)
          Accepts a visitor.
 Node getEndNode()
          Return the node located at the end of the link.
 Node getStartNode()
          Return the node located at the start of the link.
 
Methods inherited from interface net.ggtools.grand.graph.GraphObject
clearAttributes, getAttributes, getGraph, getName, hasAttributes, setAttributes
 

Field Detail

ATTR_WEAK_LINK

static final int ATTR_WEAK_LINK
Attribute bit to be set on weak links. The definition of weak depends on the graph source. For Ant weak links will be dependencies underlying ant, antcall, subant, etc. task.

See Also:
Constant Field Values

ATTR_CONDITIONAL_LINK

static final int ATTR_CONDITIONAL_LINK
Attribute bit to be set on link subject to a condition.

See Also:
Constant Field Values
Method Detail

getStartNode

Node getStartNode()
Return the node located at the start of the link.

Returns:
start node

getEndNode

Node getEndNode()
Return the node located at the end of the link.

Returns:
end node

accept

void accept(LinkVisitor visitor)
Accepts a visitor. The implementation must call the appropriate visitLink method.

Parameters:
visitor -


Copyright © 2004-2005 ggTools. All Rights Reserved.