|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.action.Actor net.jinx.physics.spring.SpringManager
public class SpringManager
Constructor Summary | |
---|---|
SpringManager()
|
Method Summary | |
---|---|
void |
added(PhysicalObject obj)
Called by Universe to notify this Force that a PhysicalObject has been added to the simulation. |
void |
applyForce(PhysicalObject obj)
Provides the force acting on object due to this Force. |
static boolean |
isSpringNode(PhysicalObject obj)
|
protected void |
processEvent(ActorEvent e)
Processes an ActorEvent. |
void |
removed(PhysicalObject obj)
Called by Universe to notify this Force that a PhysicalObject has been removed from the simulation. |
Methods inherited from class net.jinx.action.Actor |
---|
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringManager()
Method Detail |
---|
public static boolean isSpringNode(PhysicalObject obj)
public void added(PhysicalObject obj)
Force
added
in interface Force
obj
- the PhysicalObject that was added.public void removed(PhysicalObject obj)
Force
removed
in interface Force
obj
- the PhysicalObject that was removed.public void applyForce(PhysicalObject obj)
Force
applyForce
in interface Force
obj
- the PhysicalObject.protected void processEvent(ActorEvent e)
Actor
processEvent
in class Actor
e
- the ActorEvent to process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |