net.algart.model3d.common.movement
Class MovingSpheresModel
java.lang.Object
net.algart.model3d.common.movement.MovingSpheresModel
public class MovingSpheresModel
extends java.lang.Object
A simple physical model of moving and impacting elastic balls.
It is a "model" part of MVC pattern, implemented by this package.
Please see the source code for more details.
AlgART Laboratory 2010
- Since:
- JDK 1.5
- Version:
- 1.0
- Author:
- Daniel Alievsky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EULER_MOVEMENT_INTEGRATOR
public static final int EULER_MOVEMENT_INTEGRATOR
- See Also:
- Constant Field Values
RK4_MOVEMENT_INTEGRATOR
public static final int RK4_MOVEMENT_INTEGRATOR
- See Also:
- Constant Field Values
RKF45_MOVEMENT_INTEGRATOR
public static final int RKF45_MOVEMENT_INTEGRATOR
- See Also:
- Constant Field Values
movementIntegrator
protected MovementIntegrator movementIntegrator
MovingSpheresModel
public MovingSpheresModel(ParameterGetter pg)
resetRandSeed
public void resetRandSeed()
setRandSeed
public void setRandSeed(long seed)
getRand
public java.util.Random getRand()
getItemSet
public ItemSet getItemSet()
removeAll
public void removeAll()
addInitialItems
public void addInitialItems()
addNonintersectingRandomElasticBallsInBunker
public void addNonintersectingRandomElasticBallsInBunker(int count,
double averageRadius,
double standardDeviation,
double minRadius,
double maxRadius)
getBunkerMinX
public double getBunkerMinX()
setBunkerMinX
public void setBunkerMinX(double bunkerMinX)
getBunkerMaxX
public double getBunkerMaxX()
setBunkerMaxX
public void setBunkerMaxX(double bunkerMaxX)
getBunkerMinY
public double getBunkerMinY()
setBunkerMinY
public void setBunkerMinY(double bunkerMinY)
getBunkerMaxY
public double getBunkerMaxY()
setBunkerMaxY
public void setBunkerMaxY(double bunkerMaxY)
getBunkerMinZ
public double getBunkerMinZ()
setBunkerMinZ
public void setBunkerMinZ(double bunkerMinZ)
getBunkerMaxZ
public double getBunkerMaxZ()
setBunkerMaxZ
public void setBunkerMaxZ(double bunkerMaxZ)
getNumberOfWalls
public int getNumberOfWalls()
getBallDensity
public double getBallDensity()
setBallDensity
public void setBallDensity(double ballDensity)
getBallElasticityModulus
public double getBallElasticityModulus()
setBallElasticityModulus
public void setBallElasticityModulus(double ballElasticityModulus)
getBallFrictionCoefficient
public double getBallFrictionCoefficient()
setBallFrictionCoefficient
public void setBallFrictionCoefficient(double ballFrictionCoefficient)
getEarth
public Earth getEarth()
getPhysicalMedium
public PhysicalMedium getPhysicalMedium()
createInteractionRules
protected java.util.List<InteractionRule> createInteractionRules()
createMovementIntegrator
protected MovementIntegrator createMovementIntegrator(int movementIntegratorCode)
getMovementIntegratorCode
public int getMovementIntegratorCode()
setMovementIntegrator
public void setMovementIntegrator(int movementIntegratorCode)