Class QuantityParameter<Q extends Quantity<Q>>

java.lang.Object
org.episteme.core.ui.Parameter<Quantity<Q>>
org.episteme.core.ui.QuantityParameter<Q>
Type Parameters:
Q - the type of quantity

public class QuantityParameter<Q extends Quantity<Q>> extends Parameter<Quantity<Q>>
Metadata for a physical quantity parameter (e.g. Length, Mass). Handles unit conversion for UI display while maintaining type safety.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • QuantityParameter

      public QuantityParameter(String name, String description, Quantity<Q> min, Quantity<Q> max, Quantity<Q> step, Quantity<Q> defaultValue, Unit<Q> unit, Consumer<Quantity<Q>> onValueChange)
      Creates a new QuantityParameter.
      Parameters:
      name - display name
      description - tooltip description
      min - minimum value
      max - maximum value
      step - increment step
      defaultValue - initial value
      unit - the unit used for the slider/display logic
      onValueChange - callback
  • Method Details