Class BindingSiteType

java.lang.Object
  extended byBindingSiteType

public class BindingSiteType
extends java.lang.Object

BindingSiteType hold information that is common to every BindingSite of a certain type (compatibility with other BindingSites and tolerences).


Constructor Summary
BindingSiteType()
          Constructs a BindingSiteType using default parameters, sets tolerance to 0, ID and Conformation ID to -1.
BindingSiteType(double[] t, java.lang.String n, java.util.Vector p)
          Constructs a BindingSiteType with the given tolerances, id, name, and compatible partners.
 
Method Summary
 void addPartner(java.lang.String pn)
          Adds the name of a new BindingSiteType to the list of compatible BindingSiteTypes
 java.lang.String getName()
          Returns name of this BindingSiteType
 java.util.Vector getPartners()
          Gets the vector of names of compatible BindingSiteTypes (Strings)
 boolean isCompat(BindingSiteType bst)
          Checks whether this BindingSiteType is compatible with the specified BindingSiteType bst
 void setConf(java.lang.String cname)
          Sets this BindingSiteType's Conformation name
 java.lang.String toString()
          Returns a String version of this BindingSiteType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindingSiteType

public BindingSiteType()
Constructs a BindingSiteType using default parameters, sets tolerance to 0, ID and Conformation ID to -1.


BindingSiteType

public BindingSiteType(double[] t,
                       java.lang.String n,
                       java.util.Vector p)
Constructs a BindingSiteType with the given tolerances, id, name, and compatible partners. Sets Conformation ID to -1.

Parameters:
t - array of 3 doubles as the tolerences
n - String the name BindingSiteType
p - Vector of String, the names of compatible BindingSiteTypes
Method Detail

isCompat

public boolean isCompat(BindingSiteType bst)
Checks whether this BindingSiteType is compatible with the specified BindingSiteType bst

Parameters:
bst - BindingSiteType, which is checked for compatibility
Returns:
boolean, true if compatible, otherwise false

setConf

public void setConf(java.lang.String cname)
Sets this BindingSiteType's Conformation name

Parameters:
cname - String, the new conformation name

getPartners

public java.util.Vector getPartners()
Gets the vector of names of compatible BindingSiteTypes (Strings)

Returns:
Vector of Strings, names of compatible BindingSiteTypes

addPartner

public void addPartner(java.lang.String pn)
Adds the name of a new BindingSiteType to the list of compatible BindingSiteTypes

Parameters:
pn - String the name of a BindingSiteType to add

getName

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

Returns:
String

toString

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

Returns:
String