public abstract class Interaction extends Module
Constructor and Description |
---|
Interaction(double distance,
Mass m1,
Mass m2)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
double |
calcDist1D() |
abstract void |
compute()
Compute behavior of the Interaction (depends on the concrete implementation of concerned module).
|
double |
getElongation()
Get the elongation (distance minus resting length between mat modules connected by the interaction
|
Mass |
getMat1()
Access the first Mass connected to this Interaction.
|
Mass |
getMat2()
Access the second Mass connected to this Interaction.
|
interType |
getType()
Get the m_type of the Interaction module.
|
void |
init() |
public abstract void compute()
public Mass getMat1()
public Mass getMat2()
public interType getType()
public void init()
public double calcDist1D()
public double getElongation()
Processing Library miPhysics by James Leonard. (c) 2019