|
||||||||||
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.UniversalForce
public abstract class UniversalForce
A Force
that is applied to Particle
s at the user's discretion, and hence
does not support the Force.apply()
method. Users wishing to create custom Forces
of this kind should extend this class, implementing the Force.apply(Particle)
method only.
Examples of this kind of Force are the Gravity
and Drag
classes.
Constructor Summary | |
---|---|
UniversalForce()
|
Method Summary | |
---|---|
AbstractForce |
apply()
This type of Force must have a target Particle ; 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 UniversalForce()
Method Detail |
---|
public AbstractForce apply() throws java.lang.UnsupportedOperationException
Force
must have a target Particle
; an exception will be thrown by this method.
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 |