io.github.srs.view.components.configuration

Members list

Type members

Classlikes

class ConfigurationControlsPanel(onConfigLoaded: SimulationConfig[Environment] => Unit, onConfigSave: () => Option[SimulationConfig[Environment]]) extends JPanel

ConfigurationControlsPanel handles the configuration loading, saving, and management controls. It provides buttons for loading/saving configurations and a dropdown for selecting default configurations.

ConfigurationControlsPanel handles the configuration loading, saving, and management controls. It provides buttons for loading/saving configurations and a dropdown for selecting default configurations.

Value parameters

onConfigLoaded

callback triggered when a configuration is successfully loaded

onConfigSave

callback triggered when user wants to save current configuration

Attributes

Supertypes
class JPanel
trait Accessible
class JComponent
class Container
class Component
trait Serializable
trait MenuContainer
trait ImageObserver
class Object
trait Matchable
class Any
Show all
class EntitiesPanel(fieldSpecsByType: Map[String, Seq[FieldSpec]]) extends JPanel

EntitiesPanel is a JPanel that allows users to add and remove the simulation entities.

EntitiesPanel is a JPanel that allows users to add and remove the simulation entities.

Value parameters

fieldSpecsByType

a map where keys are entity types and values are sequences of FieldSpec defining the fields for each entity type

Attributes

Supertypes
class JPanel
trait Accessible
class JComponent
class Container
class Component
trait Serializable
trait MenuContainer
trait ImageObserver
class Object
trait Matchable
class Any
Show all
class EntityRow(initialType: String, fieldSpecsByType: Map[String, Seq[FieldSpec]], removeRow: JPanel => Unit) extends JPanel

EntityRow is a JPanel that represents a single entity in the configuration view. It allows users to select the type of entity and fill in its properties.

EntityRow is a JPanel that represents a single entity in the configuration view. It allows users to select the type of entity and fill in its properties.

Value parameters

fieldSpecsByType

a map where keys are entity types and values are sequences of FieldSpec defining the fields for each entity type

initialType

the initial type of the entity

removeRow

a function to call when the user wants to remove this row from the configuration

Attributes

Supertypes
class JPanel
trait Accessible
class JComponent
class Container
class Component
trait Serializable
trait MenuContainer
trait ImageObserver
class Object
trait Matchable
class Any
Show all
class EnvironmentSettingsPanel extends JPanel

EnvironmentSettingsPanel handles the environment-specific configuration settings. It provides a form for configuring environment width and height.

EnvironmentSettingsPanel handles the environment-specific configuration settings. It provides a form for configuring environment width and height.

Value parameters

onValidationError

callback triggered when validation fails

Attributes

Supertypes
class JPanel
trait Accessible
class JComponent
class Container
class Component
trait Serializable
trait MenuContainer
trait ImageObserver
class Object
trait Matchable
class Any
Show all
class SimulationSettingsPanel extends JPanel

SimulationSettingsPanel handles the simulation-specific configuration settings. It provides a form for configuring simulation duration and seed.

SimulationSettingsPanel handles the simulation-specific configuration settings. It provides a form for configuring simulation duration and seed.

Attributes

Supertypes
class JPanel
trait Accessible
class JComponent
class Container
class Component
trait Serializable
trait MenuContainer
trait ImageObserver
class Object
trait Matchable
class Any
Show all