Class CloudLayer

java.lang.Object
org.deltava.beans.wx.CloudLayer
All Implemented Interfaces:
Comparable<CloudLayer>

public class CloudLayer extends Object implements Comparable<CloudLayer>
A bean to store cloud layer data.
Since:
2.6
Version:
8.0
Author:
Luke
  • Constructor Details

    • CloudLayer

      public CloudLayer(int height)
      Initializes the bean.
      Parameters:
      height - the height of the cloud layer, in feet MSL
  • Method Details

    • getHeight

      public int getHeight()
      Returns the height of the cloud layer.
      Returns:
      the height in feet MSL
    • getType

      public CloudLayer.Type getType()
      Returns the cloud type.
      Returns:
      the type
    • getThickness

      public CloudLayer.Amount getThickness()
      Returns the cloud layer thickness.
      Returns:
      the thickness
    • setType

      public void setType(CloudLayer.Type ct)
      Sets the cloud type.
      Parameters:
      ct - the cloud type
    • setThickness

      public void setThickness(CloudLayer.Amount amt)
      Sets the cloud layer thickness.
      Parameters:
      amt - the thickness
    • compareTo

      public int compareTo(CloudLayer cl2)
      Specified by:
      compareTo in interface Comparable<CloudLayer>
    • toString

      public String toString()
      Overrides:
      toString in class Object