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
 
Method Summary
 int getCountPossibleIAs()
           
 int getCoutInteractions()
           
 double getDensity()
          The proportion between all possilbe interactions for the two GoIds and the real existing interactions can be expressed as the density.
 java.lang.String getGoId1()
           
 java.lang.String getGoId2()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GoGoDensity

public GoGoDensity(java.lang.String goId1,
                   java.lang.String goId2,
                   int countPossibleInteractions,
                   int countInteractions)
Constructor

Parameters:
goId1 - 1st goId for this group
goId2 - 2nd goId
countPossibleInteractions - all possible interactions between the two goIds and all theire children
countInteractions - all real existing interactions in data between the two goIds and all theire children
Method Detail

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