Class Domain

java.lang.Object
  extended byDomain

public class Domain
extends java.lang.Object

Domain class holds Conformation information for a Domain in a Subunit


Constructor Summary
Domain(java.lang.String stname, java.util.Vector c, javax.vecmath.Vector3d pos, int di)
          Constructs a Domain with specified parameters (SubunitType ID, Vector of Conformations, Vector of Positions, Domain id)
Domain(java.lang.String stname, java.util.Vector c, javax.vecmath.Vector3d pos, int di, Conformation cc)
          Constructs a Domain with specified parameters (SubunitType ID, Vector of Conformations, Vector of Positions, Domain id, current Conformation)
 
Method Summary
 boolean changeConf(Conformation newconf)
          Changes this Domain's current Conformation to newconf, returns true on success, false on failure
 java.util.HashMap getConfMaps()
           
 java.util.Vector getConfs()
          Returns vector of Conformations for this Domain
 Conformation getCurConf()
          Returns the current Conformation for this Domain
 int getDomainId()
           
 javax.vecmath.Vector3d getPos()
          Returns the position of this Domain in the Subunit
 java.lang.String toString()
          Returns a String version of this Domain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Domain

public Domain(java.lang.String stname,
              java.util.Vector c,
              javax.vecmath.Vector3d pos,
              int di)
Constructs a Domain with specified parameters (SubunitType ID, Vector of Conformations, Vector of Positions, Domain id)

Parameters:
stname - String, the name of the SubunitType associated with this Domain
c - Vector of Conformations
pos - Vector3D postion of this Domain in the Subunit
di - Domain id

Domain

public Domain(java.lang.String stname,
              java.util.Vector c,
              javax.vecmath.Vector3d pos,
              int di,
              Conformation cc)
Constructs a Domain with specified parameters (SubunitType ID, Vector of Conformations, Vector of Positions, Domain id, current Conformation)

Parameters:
stname - String, the name of the SubunitType associated with this Domain
c - Vector of Conformations
pos - Vector3D postion of this Domain in the Subunit
di - Domain id
cc - Conformation, current Conformation for this Domain
Method Detail

getConfMaps

public java.util.HashMap getConfMaps()

getConfs

public java.util.Vector getConfs()
Returns vector of Conformations for this Domain

Returns:
Vector of Conformations

getPos

public javax.vecmath.Vector3d getPos()
Returns the position of this Domain in the Subunit

Returns:
Vector3d

changeConf

public boolean changeConf(Conformation newconf)
Changes this Domain's current Conformation to newconf, returns true on success, false on failure

Parameters:
newconf - changing this Domain's current Conformation to newconf
Returns:
boolean

getCurConf

public Conformation getCurConf()
Returns the current Conformation for this Domain

Returns:
Conformation

getDomainId

public int getDomainId()

toString

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

Returns:
String