package nl.tudelft.simulation.examples.dsol.animation3d; import java.rmi.RemoteException; import nl.tudelft.simulation.dsol.DSOLModel; import nl.tudelft.simulation.dsol.simulators.DESSSimulatorInterface; import nl.tudelft.simulation.dsol.simulators.SimulatorInterface; import nl.tudelft.simulation.language.d3.DirectedPoint; /** * BallModel3D, the ball example in 3D
* (c) copyright 2003 Delft University of Technology , the Netherlands.
* See for project information www.simulation.tudelft.nl
* License of use: General Public License (GPL) , no warranty
* @version 1.0 10.05.2004
* @author Roy Chin */ public class BallModel3D implements DSOLModel { /** The default serial version UID for serializable classes. */ private static final long serialVersionUID = 1L; /** the simulator. */ private SimulatorInterface.TimeDouble simulator; /** * Constructs new BallModel3D */ public BallModel3D() { super(); } /** {@inheritDoc} */ @Override public void constructModel(final SimulatorInterface.TimeDouble simulator) throws RemoteException { this.simulator = simulator; System.out.println("*** Ball 3D Model ***"); for (int i = 0; i < 10; i++) { new Ball3D((DESSSimulatorInterface) simulator); } new World(new DirectedPoint(0, 0, -5.5), simulator); } /** * @return the simulator */ public SimulatorInterface.TimeDouble getSimulator() { return this.simulator; } }