procope.examples
Class DummyScores

java.lang.Object
  extended by procope.methods.scores.ScoresCalculator
      extended by procope.examples.DummyScores
All Implemented Interfaces:
ProteinSet

public class DummyScores
extends ScoresCalculator


Constructor Summary
DummyScores(PurificationData data)
           
 
Method Summary
 Set<Integer> getProteins()
          Returns the set of proteins involved in this scores calculator.
 float getScore(int protein1, int protein2)
          Returns the interaction score for two given proteins.
 
Methods inherited from class procope.methods.scores.ScoresCalculator
getScore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyScores

public DummyScores(PurificationData data)
Method Detail

getProteins

public Set<Integer> getProteins()
Description copied from class: ScoresCalculator
Returns the set of proteins involved in this scores calculator.

Specified by:
getProteins in interface ProteinSet
Specified by:
getProteins in class ScoresCalculator
Returns:
a set of internal IDs

getScore

public float getScore(int protein1,
                      int protein2)
Description copied from class: ScoresCalculator
Returns the interaction score for two given proteins.

Specified by:
getScore in class ScoresCalculator
Parameters:
protein1 - first protein
protein2 - second protein
Returns:
interaction score of the two proteins