Class Conformation

java.lang.Object
  extended byConformation

public class Conformation
extends java.lang.Object

Conformation holds information about a particular conformation Domain of a Subunit (energy, SubunitType, Domain, BindingSites present in this Conformation)


Constructor Summary
Conformation()
          Constructs a default conformation
Conformation(java.util.Vector bs, double e, java.lang.String n)
          Constructs a Conformation with specified BindingSite Vector bs, energy e, and name.
 
Method Summary
 boolean bound()
          Checks if any BindingSite in this Conformation is bound, if so, returns true
 java.util.Vector getBindSites()
          Returns the bindingsites present in this conformation
 int getDomainID()
          Returns the ID of this Conformation's Domain
 double getE()
          Returns of energy of this Conformation
 java.lang.String getName()
          Returns the name of this Conformation
 java.util.Vector getSites()
          Returns Vector of BindingSites present in this Conformation
 boolean hasBS(BindingSite bs)
          Returns true if this Conformation contains the BindingSite bs
 boolean isEqual(Conformation c)
          Returns true if c is equal to this
 void setSubunitType(java.lang.String stname, int did)
          Sets the name of SubunitType in this Conformation to stname, sets the ID of Domain of this Conformation to did
 java.lang.String toString()
          Returns a String version of this Conformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Conformation

public Conformation()
Constructs a default conformation


Conformation

public Conformation(java.util.Vector bs,
                    double e,
                    java.lang.String n)
Constructs a Conformation with specified BindingSite Vector bs, energy e, and name. Sets the ID of SubunitTypeID and DomainID associated to -1.

Parameters:
bs - Vector of BindingSite
e - double energy
n - String name of this Conformation
Method Detail

getBindSites

public java.util.Vector getBindSites()
Returns the bindingsites present in this conformation

Returns:
Vector

bound

public boolean bound()
Checks if any BindingSite in this Conformation is bound, if so, returns true

Returns:
boolean

hasBS

public boolean hasBS(BindingSite bs)
Returns true if this Conformation contains the BindingSite bs

Parameters:
bs - BindingSite to be checked
Returns:
boolean

setSubunitType

public void setSubunitType(java.lang.String stname,
                           int did)
Sets the name of SubunitType in this Conformation to stname, sets the ID of Domain of this Conformation to did

Parameters:
stname - String stname
did - int Domain ID

getName

public java.lang.String getName()
Returns the name of this Conformation

Returns:
String

getDomainID

public int getDomainID()
Returns the ID of this Conformation's Domain

Returns:
int

getE

public double getE()
Returns of energy of this Conformation

Returns:
double

getSites

public java.util.Vector getSites()
Returns Vector of BindingSites present in this Conformation

Returns:
Vector

isEqual

public boolean isEqual(Conformation c)
Returns true if c is equal to this

Returns:
boolean

toString

public java.lang.String toString()
Returns a String version of this Conformation

Returns:
String