Enum SwingQuantityMode

java.lang.Object
java.lang.Enum<SwingQuantityMode>
net.finmath.modelling.products.SwingQuantityMode
All Implemented Interfaces:
Serializable, Comparable<SwingQuantityMode>, java.lang.constant.Constable

public enum SwingQuantityMode extends Enum<SwingQuantityMode>
Quantity-control mode for a swing contract.

BANG_BANG restricts each decision to the local minimum or local maximum quantity. DISCRETE_QUANTITY_GRID allows intermediate quantities on a discretized local grid.

  • Enum Constant Details

    • BANG_BANG

      public static final SwingQuantityMode BANG_BANG
      The bang bang.
    • DISCRETE_QUANTITY_GRID

      public static final SwingQuantityMode DISCRETE_QUANTITY_GRID
      The discrete quantity grid.
  • Method Details

    • values

      public static SwingQuantityMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SwingQuantityMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null