net.sourceforge.jsl
Interface SearchEdge

All Known Implementing Classes:
DefaultSearchEdge

public interface SearchEdge

General notion of a directed edge in a search graph. Edges connect SearchNodes with each other. Each edge in a search is associated to an object in the domain that is searched.


Method Summary
 Object getDomainObject()
          Gets the domain object associated to this search egde.
 SearchNode getFromNode()
          Gets the node this edge leads from.
 SearchNode getToNode()
          Gets the node this edge leads to.
 void setDomainObject(Object domainObject)
          Sets the domain object associated to this search egde.
 void setFromNode(SearchNode fromNode)
          Sets the node this edge leads from.
 void setToNode(SearchNode toNode)
          Sets the node this edge leads to.
 

Method Detail

getFromNode

public SearchNode getFromNode()
Gets the node this edge leads from.

Returns:
the SearchNode this edge leads from

getToNode

public SearchNode getToNode()
Gets the node this edge leads to.

Returns:
the SearchNode this edge leads to

setFromNode

public void setFromNode(SearchNode fromNode)
Sets the node this edge leads from.

Parameters:
fromNode - the SearchNode this edge leads from

setToNode

public void setToNode(SearchNode toNode)
Sets the node this edge leads to.

Parameters:
toNode - the SearchNode this edge leads to

getDomainObject

public Object getDomainObject()
Gets the domain object associated to this search egde.

Returns:
the domain object associated to this search egde

setDomainObject

public void setDomainObject(Object domainObject)
Sets the domain object associated to this search egde.

Parameters:
domainObject - the domain object associated to this search egde


Copyright 2003-2004 Henrik Heine, Oliver Zeigermann. All Rights Reserved.