procope.evaluation.comparison
Class ComplexMappings

java.lang.Object
  extended by procope.evaluation.comparison.ComplexMappings
All Implemented Interfaces:
Iterable<ComplexMapping>

public class ComplexMappings
extends Object
implements Iterable<ComplexMapping>

Represents a list of mappings between complexes of two complex sets. Result of the mapping methods in ComplexSetComparison.

Author:
Jan Krumsiek
See Also:
ComplexMapping

Constructor Summary
ComplexMappings(ComplexSet setA, ComplexSet setB, List<ComplexMapping> mappings)
          Creates a new set of complex mappings.
 
Method Summary
 List<Integer> getNonMappedComplexesA()
          Returns the indices of all complexes of set A which are not mapped in this mapping set
 List<Integer> getNonMappedComplexesB()
          Returns the indices of all complexes of set B which are not mapped in this mapping set
 ComplexSet getSetA()
          Returns the first complex set involved in this mapping set.
 ComplexSet getSetB()
          Returns the second complex set involved in this mapping set.
 Iterator<ComplexMapping> iterator()
          Returns an iterator over the ComplexMapping objects int this list
 int size()
          Returns the number of mappings in this mapping set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexMappings

public ComplexMappings(ComplexSet setA,
                       ComplexSet setB,
                       List<ComplexMapping> mappings)
Creates a new set of complex mappings.

Parameters:
setA - first complex set
setB - second complex set
mappings - list of mappings
Method Detail

getSetA

public ComplexSet getSetA()
Returns the first complex set involved in this mapping set.

Returns:
first complex set of this mapping set

getSetB

public ComplexSet getSetB()
Returns the second complex set involved in this mapping set.

Returns:
second complex set of this mapping set

iterator

public Iterator<ComplexMapping> iterator()
Returns an iterator over the ComplexMapping objects int this list

Specified by:
iterator in interface Iterable<ComplexMapping>

getNonMappedComplexesA

public List<Integer> getNonMappedComplexesA()
Returns the indices of all complexes of set A which are not mapped in this mapping set

Returns:
indices of set A which are not mapped

getNonMappedComplexesB

public List<Integer> getNonMappedComplexesB()
Returns the indices of all complexes of set B which are not mapped in this mapping set

Returns:
indices of set B which are not mapped

size

public int size()
Returns the number of mappings in this mapping set

Returns:
number of mappings