uk.ac.ebi.intact.application.goDensity.business.binaryInteractions
Class GoGoDensity
java.lang.Object
|
+--uk.ac.ebi.intact.application.goDensity.business.binaryInteractions.GoGoDensity
- public class GoGoDensity
- extends java.lang.Object
GoGoDensity represents a repository for a set of data, which consist of:
- goId1
- goId2
- possible Interactions between and under these two goIds
- existing Interactions between and under these two goIds
- Version:
- $Id: GoGoDensity.java,v 1.1 2003/09/02 15:08:32 markusbrosch Exp $
- Author:
- Markus Brosch (markus @ brosch.cc)
|
Constructor Summary |
GoGoDensity(java.lang.String goId1,
java.lang.String goId2,
int countPossibleInteractions,
int countInteractions)
Constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GoGoDensity
public GoGoDensity(java.lang.String goId1,
java.lang.String goId2,
int countPossibleInteractions,
int countInteractions)
- Constructor
- Parameters:
goId1 - 1st goId for this groupgoId2 - 2nd goIdcountPossibleInteractions - all possible interactions between the
two goIds and all theire childrencountInteractions - all real existing interactions in data between
the two goIds and all theire children
getGoId1
public java.lang.String getGoId1()
- Returns:
- goId1 which belongs to this group
getGoId2
public java.lang.String getGoId2()
- Returns:
- goId2 which belongs to this group
getDensity
public double getDensity()
- The proportion between all possilbe interactions for the two GoIds and the
real existing interactions can be expressed as the density.
- Returns:
- density of interactions between goId1 and goId2, depending on the data which was
given by the caller.
getCoutInteractions
public int getCoutInteractions()
- Returns:
- number of real interactions
getCountPossibleIAs
public int getCountPossibleIAs()
- Returns:
- number of possible interactions
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()
main
public static void main(java.lang.String[] args)
IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk