de.cesr.more.rs.building
Interface MorePartnerFinder<AgentType,EdgeType>

All Known Implementing Classes:
MDefaultPartnerFinder, MMilieuPartnerFinder

public interface MorePartnerFinder<AgentType,EdgeType>

MORe

Date:
16.03.2012

Method Summary
 AgentType findPartner(Collection<AgentType> agents, Graph<AgentType,EdgeType> graph, AgentType focal, boolean incoming)
          Selects a partner for the given focal agent from the given list of potential partners.
 AgentType findPartner(Graph<AgentType,EdgeType> graph, AgentType focal)
          Finds a partner for the given focal agent in the given graph.
 AgentType findPartner(Graph<AgentType,EdgeType> graph, AgentType focal, boolean incoming)
          Finds a partner for the given focal agent in the given graph.
 

Method Detail

findPartner

AgentType findPartner(Graph<AgentType,EdgeType> graph,
                      AgentType focal)
Finds a partner for the given focal agent in the given graph. Sets incoming to true.

Parameters:
graph -
focal -
Returns:

findPartner

AgentType findPartner(Graph<AgentType,EdgeType> graph,
                      AgentType focal,
                      boolean incoming)
Finds a partner for the given focal agent in the given graph.

Parameters:
graph -
focal -
incoming - true if a predecessor is requested, false for successor
Returns:

findPartner

AgentType findPartner(Collection<AgentType> agents,
                      Graph<AgentType,EdgeType> graph,
                      AgentType focal,
                      boolean incoming)
Selects a partner for the given focal agent from the given list of potential partners. Checks whether the focal agent is already linked to the potential partner.

Parameters:
agents -
graph -
focal -
Returns: