uk.ac.ed.simulator_pdb.model
Class SimBond
java.lang.Object
uk.ac.ed.simulator_pdb.model.SimBond
- public class SimBond
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimBond
public SimBond(SimBond bond)
SimBond
public SimBond(SimBondTemplate template)
SimBond
public SimBond(SimBondSite bond_site)
SimBond
public SimBond(SimBondTemplate template,
javax.vecmath.Vector3d centre_of_mass,
javax.vecmath.Quat4d orientation)
getTemplate
public SimBondTemplate getTemplate()
setTemplate
protected void setTemplate(SimBondTemplate template)
getConnectedBond
public SimBond getConnectedBond()
getCentreOfMass
public javax.vecmath.Vector3d getCentreOfMass()
getOrientation
public javax.vecmath.Quat4d getOrientation()
getTransformationMatrix
public javax.vecmath.Matrix4d getTransformationMatrix()
getInverseTransformationMatrix
public javax.vecmath.Matrix4d getInverseTransformationMatrix()
setObject
public void setObject(SimObject parent)
getObject
public SimObject getObject()
addRule
public void addRule(SimRule rule)
getRules
public SimRule[] getRules()
update
public void update(java.util.ArrayList nearby_bonds,
java.util.ArrayList possible_new_bonds,
double elapsed_time)
canBondTo
public java.lang.String canBondTo(SimBond thatBond,
double elapsed_time)
bondTo
public void bondTo(SimBond bondTo)
shouldBreakBond
public boolean shouldBreakBond(double elapsed_time)
breakBond
public void breakBond()