|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAssembly
Assembly holds an Assembly of Subunits and the AssemblyGraphic. It also tracks the next Event for this Assembly and its validity. Assemblies can be bonded, split, or relaxed.
| Constructor Summary | |
Assembly()
Constructs an default Assembly with no Subunits and no valid Events |
|
Assembly(java.util.Vector s,
java.lang.String name)
Constructs an Assembly named name with Subunits from s |
|
| Method Summary | |
Assembly |
bindAssemblies(Assembly bindasm,
FormBondEvent e,
Subunit bsSub1,
Subunit bsSub2)
Carries out the FormBondEvent e by binding bindasm to this through a bond between bsSub1 in this Assembly and bsSub2 in bindasm.Both Assembly(s) should be different. |
void |
compoundTransforms()
Composes Assembly and Subunit transforms so that the Subunits hold all the significant location information and the Assembly location information is all the identity function |
boolean |
containsSubunit(Subunit s)
Returns true if s is in this Assembly |
boolean |
equals(Assembly a)
Returns this true if this Assembly is the same object as Assembly a |
void |
fastBind(FormBondEvent e)
bind an broken bond which breaks a loop in an assembly |
AssemblyGraphic |
getAssemblyGraphic()
Returns this Assembly's AssemblyGraphic |
javax.vecmath.Vector3d |
getBindingSitePos(Subunit sub,
BindingSite bs)
Returns the position of the binding site relative to the real axis system |
javax.vecmath.Quat4d |
getBindingSiteRot(Subunit sub,
BindingSite bs)
Returns the rotation of the binding site relative to the real axis system |
javax.vecmath.Vector3d |
getBindingSiteTipPos(Subunit sub,
BindingSite bs)
|
int[] |
getBSCounts()
get the amounts of different types of free BindingSite(s) in an assembly |
java.util.Vector |
getFreebss()
Gets all the free BindingSite(s) in an assembly, and put them in an vector |
java.lang.String |
getName()
Returns this Assembly's name |
javax.vecmath.Vector3d |
getPos()
Returns this Assembly's position |
javax.vecmath.Quat4d |
getRot()
Returns this Assembly's rotation |
Subunit |
getSubunit(BindingSite bs)
Returns the Subunit in this Assembly that holds bs, if that's not found returns a new blank Subunit |
java.util.Vector |
getSubunits()
Returns a Vector of this Assembly's Subunits |
javax.media.j3d.Transform3D |
getTransform()
Returns this Assembly's transform |
Event |
nextEvent()
Returns this Assembly's next Event |
double |
nextEventEndTime()
Returns this Assembly's next Event's end time |
int |
numSubunits()
public boolean containsSubunit(Subunit s) { return mysubs.contains(s); } /** Returns number of subunits in this Assembly |
void |
rotate(javax.vecmath.Quat4d rot)
|
void |
setNextEvent(Event ev)
Sets the next event for this Assembly to ev |
void |
setPos(javax.vecmath.Vector3d v)
Sets this Assembly's position to v |
void |
setValidTime(double time)
Sets the valid time for this Assembly to time |
Assembly |
splitAssembly(BreakBondEvent e,
int newasmnum)
Used to split this Assembly when indicated by a BreakBondEvent. |
java.lang.String |
toString()
Returns a String version of this Assembly |
void |
updateLocation(javax.vecmath.Quat4d q,
javax.vecmath.Vector3d v)
Sets this Assembly's position to v and rotation to q |
void |
updateLocation(javax.media.j3d.Transform3D tr)
Sets this Assembly's transform to tr |
double |
validTime()
Returns this Assembly's valid time |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Assembly()
public Assembly(java.util.Vector s,
java.lang.String name)
s - Vector, all the Subunits to be in this Assemblyname - String, the name of this Assembly| Method Detail |
public java.util.Vector getFreebss()
public Subunit getSubunit(BindingSite bs)
bs - BindingSite
public void fastBind(FormBondEvent e)
e - voidpublic int[] getBSCounts()
public Assembly splitAssembly(BreakBondEvent e,
int newasmnum)
e - BreakBondEvent, the event that causes the splitnewasmnum - int, the number of the Assembly to be split off
public Assembly bindAssemblies(Assembly bindasm,
FormBondEvent e,
Subunit bsSub1,
Subunit bsSub2)
bindasm - Assembly, assembly to be bounde - FormBondEvent, the event that causes the bindingbsSub1 - Subunit, the Subunit on this Assembly that holds the
BindingSite which forms the bondbsSub2 - Subunit, the Subunit on bindasm that holds the BindingSite
which forms the bond
public void compoundTransforms()
public void rotate(javax.vecmath.Quat4d rot)
public javax.vecmath.Vector3d getBindingSitePos(Subunit sub,
BindingSite bs)
sub - Subunit, holds bsbs - BindingSite
public javax.vecmath.Vector3d getBindingSiteTipPos(Subunit sub,
BindingSite bs)
public javax.vecmath.Quat4d getBindingSiteRot(Subunit sub,
BindingSite bs)
sub - Subunit, holds bsbs - BindingSite
public AssemblyGraphic getAssemblyGraphic()
public javax.media.j3d.Transform3D getTransform()
public javax.vecmath.Quat4d getRot()
public javax.vecmath.Vector3d getPos()
public java.lang.String getName()
public java.util.Vector getSubunits()
public void setPos(javax.vecmath.Vector3d v)
v - Vector3d
public void updateLocation(javax.vecmath.Quat4d q,
javax.vecmath.Vector3d v)
q - Quat4dv - Vector3dpublic void updateLocation(javax.media.j3d.Transform3D tr)
tr - Transform3Dpublic boolean containsSubunit(Subunit s)
s - Subunit
public int numSubunits()
public void setNextEvent(Event ev)
ev - Eventpublic Event nextEvent()
public double nextEventEndTime()
public void setValidTime(double time)
time - doublepublic double validTime()
public boolean equals(Assembly a)
a - Assembly
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||