|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use AbstractForce | |
|---|---|
| org.gicentre.utils.network.traer.physics | Physics library for use with Processing. |
| Uses of AbstractForce in org.gicentre.utils.network.traer.physics |
|---|
| Subclasses of AbstractForce in org.gicentre.utils.network.traer.physics | |
|---|---|
class |
Attraction
This class implements TwoBodyForce to represent an inverse-square law force with a force constant and minimal distance. |
class |
Spring
Class for representing a physical spring by extending TwoBodyForce to calculate
the force with a spring constant (Spring.ks), damping factor (Spring.d), and an
ideal length (Spring.l). |
class |
TargetedForce
A Force that has its subject Particles already specified, and hence does
not support the Force.apply(Particle) method. |
class |
TwoBodyForce
TwoBodyForce is Force between two specified Particles, which extends
TargetedForce and simplifies implementation of custom Forces. |
class |
UniversalForce
A Force that is applied to Particles at the user's discretion, and hence
does not support the Force.apply() method. |
| Methods in org.gicentre.utils.network.traer.physics that return AbstractForce | |
|---|---|
AbstractForce |
UniversalForce.apply()
This type of Force must have a target Particle; an exception will be thrown by this method. |
AbstractForce |
ParticleSystem.getCustomForce(int i)
Provides the custom force at the given position in the collection of custom forces stored in this particle system. |
AbstractForce |
ParticleSystem.removeCustomForce(int i)
Removes the custom force at the given position in the collection of custom forces stored in this particle system. |
AbstractForce |
AbstractForce.turnOff()
Turns the force off. |
AbstractForce |
AbstractForce.turnOn()
Turns the force on. |
AbstractForce |
AbstractForce.turnOn(boolean isOn)
Sets the force to the given state. |
| Methods in org.gicentre.utils.network.traer.physics that return types with arguments of type AbstractForce | |
|---|---|
java.util.Collection<AbstractForce> |
ParticleSystem.customForces()
Deprecated. Replace in favour of the more consistently named getCustomForces(). |
java.util.Collection<AbstractForce> |
ParticleSystem.getCustomForces()
Provides a collection of the custom forces currently defined as part of this particle system. |
| Methods in org.gicentre.utils.network.traer.physics with parameters of type AbstractForce | |
|---|---|
ParticleSystem |
ParticleSystem.addCustomForce(AbstractForce customForce)
Adds a custom force to those in this particle system. |
ParticleSystem |
ParticleSystem.removeCustomForce(AbstractForce customForce)
Removes the given custom force from the collection of custom forces stored in this particle system if it exists. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||