@TestClass(value="org.openscience.cdk.smsd.helper.FinalMappingsTest") public class FinalMappings extends Object implements IFinalMapping
Modifier and Type | Method and Description |
---|---|
void |
add(Map<Integer,Integer> mapping)
Adds mapping to the mapping list
|
void |
clear()
clear the mapping
|
List<Map<Integer,Integer>> |
getFinalMapping()
Returns the stored mappings
|
static FinalMappings |
getInstance()
Stores mapping solutions
|
Iterator<Map<Integer,Integer>> |
getIterator()
Returns a mapping Iterator
|
int |
getSize()
Returns number of stored mappings
|
void |
set(List<Map<Integer,Integer>> list)
Sets mapping list
|
@TestMethod(value="testGetInstance") public static FinalMappings getInstance()
@TestMethod(value="testAdd") public void add(Map<Integer,Integer> mapping)
add
in interface IFinalMapping
mapping
- List of all MCS mapping between a given
reactant and product@TestMethod(value="testSet") public final void set(List<Map<Integer,Integer>> list)
set
in interface IFinalMapping
list
- list of mappings@TestMethod(value="testGetIterator") public Iterator<Map<Integer,Integer>> getIterator()
getIterator
in interface IFinalMapping
@TestMethod(value="testClear") public void clear()
clear
in interface IFinalMapping
@TestMethod(value="testGetFinalMapping") public List<Map<Integer,Integer>> getFinalMapping()
getFinalMapping
in interface IFinalMapping
@TestMethod(value="testGetSize") public int getSize()
getSize
in interface IFinalMapping