uk.ac.ed.simulator_pdb.model
Class SimBond

java.lang.Object
  extended byuk.ac.ed.simulator_pdb.model.SimBond

public class SimBond
extends java.lang.Object


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

Constructor Detail

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)
Method Detail

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()