algorithm.matching
Class PossibleMatchList

java.lang.Object
  extended by algorithm.matching.PossibleMatchList

public class PossibleMatchList
extends java.lang.Object

Container including matchings that would generally be possible, that is, each node in the first skeleton is hypothetically matched to each node in the second skeleton.


Field Summary
private  java.util.List<PossibleMatching> possibleMatchings
          container for all possible matchings
 
Constructor Summary
PossibleMatchList()
          Constructor.
 
Method Summary
 void addPossibleMatching(PossibleMatching pm)
          Add a new possible matching.
 PossibleMatching getMatchingByEndNodes(SkeletonNode sn1, SkeletonNode sn2)
          From the list of possible matchings, extract the matching between the two nodes specified by the parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

possibleMatchings

private java.util.List<PossibleMatching> possibleMatchings
container for all possible matchings

Constructor Detail

PossibleMatchList

public PossibleMatchList()
Constructor. Creating new list to hold possible matchings.

Method Detail

addPossibleMatching

public void addPossibleMatching(PossibleMatching pm)
Add a new possible matching.

Parameters:
pm - the possible matching to add

getMatchingByEndNodes

public PossibleMatching getMatchingByEndNodes(SkeletonNode sn1,
                                              SkeletonNode sn2)
                                       throws InvalidSkeletonException
From the list of possible matchings, extract the matching between the two nodes specified by the parameters.

Parameters:
sn1 - the first matching partner
sn2 - the second matching partner
Returns:
the matching between the two specified nodes, null if no such matching is found
Throws:
InvalidSkeletonException - - if the skeleton seems to be broken