Package dap4.servlet

Class ScalarOdometer

java.lang.Object
dap4.servlet.Odometer
dap4.servlet.ScalarOdometer
All Implemented Interfaces:
Iterator<ucar.ma2.Index>

public class ScalarOdometer extends Odometer
A implementation of an odometer for scalar variables.
  • Constructor Details

    • ScalarOdometer

      public ScalarOdometer()
  • Method Details

    • index

      public long index()
      Description copied from class: Odometer
      Compute the linear index from the current odometer indices.
      Overrides:
      index in class Odometer
    • totalSize

      public long totalSize()
      Description copied from class: Odometer
      Compute the total number of elements.
      Overrides:
      totalSize in class Odometer
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<ucar.ma2.Index>
      Overrides:
      hasNext in class Odometer
    • next

      public dap4.dap4lib.D4Index next()
      Specified by:
      next in interface Iterator<ucar.ma2.Index>
      Overrides:
      next in class Odometer
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<ucar.ma2.Index>
      Overrides:
      remove in class Odometer
    • isScalar

      public boolean isScalar()
      Overrides:
      isScalar in class Odometer