|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSubunit
Subunit holds information about a specific Subunit including its SubunitType, current Conformations, ID, Solution, location/velocity mass, radius, bound Subunits, and graphic.
| Field Summary | |
javax.vecmath.Vector3d |
mypos
|
javax.vecmath.Quat4d |
myrot
|
| Constructor Summary | |
Subunit()
Constructs a Subunit with default SubunitType, and other default parameters |
|
Subunit(SubunitType st,
java.util.Vector doms,
Solution soln,
int id,
javax.vecmath.Vector3d p,
javax.vecmath.Quat4d r,
javax.vecmath.Vector3d v,
javax.vecmath.Quat4d rv)
Constructs a Subunit with the specified SubunitType, current Conformations, Solution, ID, position, rotation, velocity, angular velocity, mass, and radius. |
|
| Method Summary | |
void |
addPartner(Subunit s)
Add Subunit s to this Subunit's list of bound partner Subunits |
boolean |
changeConf(int dmid,
Conformation newConf)
Changes the Conformation of Domain number domain to newconf. |
void |
detachGraphic()
Detaches this Subunit's graphic from its parent Assembly graphic |
boolean |
equals(Subunit s)
Returns true if this Subunit is Subunit s |
javax.vecmath.Vector3d |
getBindingSitePos(BindingSite bs)
Returns the position of bs in relation to the parent Assembly |
javax.vecmath.Quat4d |
getBindingSiteRot(BindingSite bs)
Returns the rotation of bs in relation to the parent Assembly |
java.util.Vector |
getBindSiteOrs()
Returns a Vector of the rotations of this Subunit's current BindingSites |
java.util.Vector |
getBindSitePoses()
Returns a Vector of the positions of this Subunit's current BindingSites |
java.util.Vector |
getBindSites()
Returns a Vector of the Subunit's current BindingSites and resets the BindingSites' Domain ID's |
java.util.Vector |
getBoundSubunits()
Returns a Vector of Subunits bound to this Subunit |
javax.vecmath.Vector3d |
getBSPos(BindingSite bs)
Returns the position of bs in relation to this Subunit |
javax.vecmath.Quat4d |
getBSRot(BindingSite bs)
Returns the rotation of bs in relation to this Subunit |
javax.media.j3d.Transform3D |
getBStoSubTransform(BindingSite bs)
Returns the transform of bs in relation to this Subunit |
javax.vecmath.Vector3d |
getBSUptoSub(BindingSite bs)
Returns the up vector of bs in relation to this Subunit |
java.util.Vector |
getConfs()
Returns a Vector of current Conformations (one for each Domain) |
java.util.Vector |
getConnectingBSs(Subunit s)
Returns a Vector of all the BindingSites that bind this Subunit to s. |
java.util.Vector |
getDomains()
|
int |
getid()
Returns this Subunit's ID |
double |
getMass()
Returns this Subunit's mass |
javax.vecmath.Vector3d |
getPos()
Returns this Subunit's position in relation to its Assembly |
double |
getRadius()
Returns this Subunit's radius |
javax.vecmath.Quat4d |
getRot()
Returns this Subunit's rotation in relation to its Assembly |
javax.vecmath.Quat4d |
getRotV()
Returns this Subunit's rotational velocity in relation to its Assembly |
Solution |
getSoln()
Returns this Subunit's Solution |
SubunitType |
getST()
Returns this Subunit's SubunitType |
SubunitGraphic |
getSubunitGraphic()
Returns this Subunit's SubunitGraphic |
javax.media.j3d.Transform3D |
getTransform()
|
javax.vecmath.Vector3d |
getV()
Returns this Subunit's velocity in relation to its Assembly |
boolean |
isBoundSubunit(Subunit s)
Returns true if this Subunit is bound to s, false otherwise |
boolean |
isUnbound()
Returns true if this Subunit is not bound to any other Subunit, false otherwise |
boolean |
removePartner(Subunit s)
Removes the specified Subunit from the vector of bound partner Subunits. |
void |
setid(int i)
Sets this Subunit's ID to i |
void |
setTrans(javax.media.j3d.Transform3D t)
Sets this Subunit's transformation in relation to its Assembly to t |
java.lang.String |
toString()
Returns a String version of this Subunit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public javax.vecmath.Vector3d mypos
public javax.vecmath.Quat4d myrot
| Constructor Detail |
public Subunit()
public Subunit(SubunitType st,
java.util.Vector doms,
Solution soln,
int id,
javax.vecmath.Vector3d p,
javax.vecmath.Quat4d r,
javax.vecmath.Vector3d v,
javax.vecmath.Quat4d rv)
st - SubunitTypedoms - Vector of Domains in this Subunitsoln - Solution this Simulation takes place inid - int, this Subunit's IDp - Vector3d, this Subunit's position relative to its Assemblyr - Quat4d, this Subunit's rotation relative to its Assemblyv - Vector3d, this Subunit's velocity relative to its Assemblyrv - Quat4d, this Subunit's rotational velocity relative to its
Assembly| Method Detail |
public boolean changeConf(int dmid,
Conformation newConf)
dmid - int, ID of the Domain in question
public javax.vecmath.Vector3d getBSPos(BindingSite bs)
bs - BindingSite off of this Subunit
public javax.vecmath.Quat4d getBSRot(BindingSite bs)
bs - BindingSite off of this Subunit
public void detachGraphic()
public SubunitGraphic getSubunitGraphic()
public javax.vecmath.Vector3d getPos()
public javax.vecmath.Quat4d getRot()
public javax.vecmath.Quat4d getRotV()
public javax.vecmath.Vector3d getV()
public double getRadius()
public double getMass()
public Solution getSoln()
public SubunitType getST()
public java.util.Vector getBoundSubunits()
public void setTrans(javax.media.j3d.Transform3D t)
t - Transform3Dpublic boolean isBoundSubunit(Subunit s)
s - Subunit
public java.util.Vector getConnectingBSs(Subunit s)
s - Subunit
public boolean isUnbound()
public void addPartner(Subunit s)
s - Subunit to addpublic boolean removePartner(Subunit s)
s - Subunit to be removed
public int getid()
public void setid(int i)
i - intpublic boolean equals(Subunit s)
s - Subunit
public java.util.Vector getConfs()
public java.util.Vector getDomains()
public java.util.Vector getBindSites()
public java.util.Vector getBindSitePoses()
public java.util.Vector getBindSiteOrs()
public javax.media.j3d.Transform3D getBStoSubTransform(BindingSite bs)
bs - BindingSite
public javax.vecmath.Vector3d getBSUptoSub(BindingSite bs)
bs - BindingSite
public javax.media.j3d.Transform3D getTransform()
public javax.vecmath.Vector3d getBindingSitePos(BindingSite bs)
bs - BindingSite
public javax.vecmath.Quat4d getBindingSiteRot(BindingSite bs)
bs - BindingSite
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||