Class CarTrafficDemo

java.lang.Object
javafx.application.Application
All Implemented Interfaces:
App, Simulatable, Viewer

public class CarTrafficDemo extends AbstractSimulationDemo
Car Traffic Simulation Demo. Merged implementation of Viewer and Demo.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Nested Class Summary

    Nested classes/interfaces inherited from class javafx.application.Application

    javafx.application.Application.Parameters
  • Field Summary

    Fields inherited from class AbstractDemo

    viewer

    Fields inherited from class javafx.application.Application

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected javafx.scene.layout.VBox
     
    protected javafx.scene.Node
     
    Returns the category for grouping (e.g., "Chemistry", "Physics").
    Returns a short description (1-2 lines).
    Returns a long description (multi-line, detailed explanation).
    Returns the display name of the viewer/demo.
    boolean
    Returns true if the simulation is currently playing.
    void
    Pauses the simulation.
    void
     
    void
    Starts or resumes the simulation.
    void
    reset(int count)
     
    void
    setSpeed(double multiplier)
    Sets the simulation speed (e.g., 1.0 for normal, 2.0 for double).
    void
    Advances the simulation by a single step.
    void
    Stops and resets the simulation.

    Methods inherited from class AbstractDemo

    getViewerParameters, isDemo, show, start

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Viewer

    getParameter, setParameter