|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gicentre.utils.network.traer.physics.AbstractForce
org.gicentre.utils.network.traer.physics.TargetedForce
public abstract class TargetedForce
A Force
that has its subject Particle
s already specified, and hence does
not support the Force.apply(Particle)
method. Users wishing to create custom
Forces of this kind should extend this class, implementing the Force.apply()
method only. Examples of this kind of Force are the TwoBodyForce
s Attraction
and Spring
forces
Constructor Summary | |
---|---|
TargetedForce()
|
Method Summary | |
---|---|
Particle |
apply(Particle p)
This type of Force does not support application to any Particle p;
an exception will be thrown by this method. |
Methods inherited from class org.gicentre.utils.network.traer.physics.AbstractForce |
---|
isOff, isOn, turnOff, turnOn, turnOn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.gicentre.utils.network.traer.physics.Force |
---|
apply |
Constructor Detail |
---|
public TargetedForce()
Method Detail |
---|
public Particle apply(Particle p) throws java.lang.UnsupportedOperationException
Force
does not support application to any Particle p;
an exception will be thrown by this method.
p
- irrelevant, this method will always throw an exception
java.lang.UnsupportedOperationException
- this Force is guaranteed to throw this exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |