Class LayerBase<U>

java.lang.Object
org.jlayer.util.LayerCore<U,U>
org.jlayer.util.LayerBase<U>
All Implemented Interfaces:
BasedLayer<U>, Layer<U,U>
Direct Known Subclasses:
VectorLayerBase

public class LayerBase<U> extends LayerCore<U,U> implements BasedLayer<U>
  • Field Details

  • Constructor Details

    • LayerBase

      public LayerBase(U[] arrayD1)
    • LayerBase

      public LayerBase(U[][] arrayD2)
    • LayerBase

      public LayerBase(U[][][] arrayD3)
    • LayerBase

      public LayerBase(BasedLayer<U> layer)
    • LayerBase

      public LayerBase(BasedLayer.D1<U> layerD1)
    • LayerBase

      public LayerBase(BasedLayer.D2<U> layerD2)
    • LayerBase

      public LayerBase(BasedLayer.D3<U> layerD3)
  • Method Details

    • getD1

      public LayerBase.D1<U> getD1()
      Specified by:
      getD1 in interface BasedLayer<U>
      Specified by:
      getD1 in interface Layer<U,U>
    • getD2

      public LayerBase.D2<U> getD2()
      Specified by:
      getD2 in interface BasedLayer<U>
      Specified by:
      getD2 in interface Layer<U,U>
    • getD3

      public LayerBase.D3<U> getD3()
      Specified by:
      getD3 in interface BasedLayer<U>
      Specified by:
      getD3 in interface Layer<U,U>
    • dims

      public int dims()
      Specified by:
      dims in interface Layer<U,U>
    • length

      public int length()
      Specified by:
      length in interface Layer<U,U>
    • length

      public int length(int... ix)
      Specified by:
      length in interface Layer<U,U>
    • get

      public U get(int... ix)
      Specified by:
      get in interface Layer<U,U>
    • set

      public void set(int[] ix, U elem)
      Specified by:
      set in interface Layer<U,U>
    • set

      public void set(int x1, U elem)
      Specified by:
      set in interface Layer<U,U>
    • set

      public void set(int x1, int x2, U elem)
      Specified by:
      set in interface Layer<U,U>
    • set

      public void set(int x1, int x2, int x3, U elem)
      Specified by:
      set in interface Layer<U,U>
    • isAdapter

      public boolean isAdapter()
      Specified by:
      isAdapter in interface Layer<U,U>
    • getUnit

      public U getUnit(int... ix)
      Specified by:
      getUnit in interface Layer<U,U>
    • setUnit

      public void setUnit(int[] ix, U unit)
      Specified by:
      setUnit in interface Layer<U,U>
    • setUnit

      public void setUnit(int x1, U unit)
      Specified by:
      setUnit in interface Layer<U,U>
    • setUnit

      public void setUnit(int x1, int x2, U unit)
      Specified by:
      setUnit in interface Layer<U,U>
    • setUnit

      public void setUnit(int x1, int x2, int x3, U unit)
      Specified by:
      setUnit in interface Layer<U,U>