|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.purifications.PurificationExperiment
public class PurificationExperiment
Represents a single purification experiment having a bait protein and a list of prey proteins which were purified by that bait.
PurificationData
Constructor Summary | |
---|---|
PurificationExperiment(int bait)
Creates a new purification experiment having a given bait. |
|
PurificationExperiment(int bait,
boolean multiplePreys)
Creates a new purification experiment having a given bait. |
Method Summary | |
---|---|
void |
addPrey(int prey)
Add a prey to the list of preys for this experiment |
void |
addPreys(Collection<Integer> list)
Add a list of preys to this experiment. |
boolean |
equals(Object obj)
Checks if two purification experiments are equal. |
int |
getBait()
Returns the bait of this purification experiment |
Collection<Integer> |
getPreys()
Returns the list of prey proteins for this experiment. |
Set<Integer> |
getProteins()
Returns the set of proteins involved in this purification experiment (the bait and all preys) |
boolean |
multiplePreys()
Returns if multiple occurences of the same prey are allowed in the preys list. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PurificationExperiment(int bait)
PurificationExperiment(int, boolean)
bait
- bait protein for this experimentpublic PurificationExperiment(int bait, boolean multiplePreys)
multiplePreys
parameter defines whether multiple occurrences
of a prey are counted or not
bait
- bait protein for this experimentmultiplePreys
- if false
each prey protein can only occur
in the preys list onceMethod Detail |
---|
public boolean multiplePreys()
true
if multiple prey occurences are allowed, false
if each prey will only occur once.public int getBait()
public void addPrey(int prey)
prey
- new prey proteinpublic void addPreys(Collection<Integer> list)
list
- list of prey proteins to add to the experimentpublic Collection<Integer> getPreys()
multiplePreys == true
this Collection
will be a Vector
,
for multiplePreys == false
it will be a HashSet
public Set<Integer> getProteins()
getProteins
in interface ProteinSet
public boolean equals(Object obj)
true
if and only if the other object is also a PurificationExperiment
,
both experiments have the same bait and the prey lists are equal.
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |