PhysicalModel
org.jscience.physics.model

Class PhysicalModel

  • All Implemented Interfaces:
    Dimension.Model
    Direct Known Subclasses:
    HighEnergyModel, NaturalModel, QuantumModel, RelativisticModel, StandardModel


    public abstract class PhysicalModelextends Objectimplements Dimension.Model

    This abstract class represents a physical model. Instances of this class determinate the current quantities dimensions.

    To select a model, one needs only to call the model select static method. For example:

         public static void main(String[] args) {          // Global (LocalContext should be used for thread-local settings).          RelativisticModel.select();          ...     

    Selecting a predefined model automatically sets the dimension of the base units.

    • Method Detail

      • current

        public static final PhysicalModel current()
        Returns the current physical model (default: instance of StandardModel).
        Returns:
        the context-local physical model.

SCaVis 2.1 © jWork.ORG