io.github.mivek.model.WindShear Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metarParser Show documentation
Show all versions of metarParser Show documentation
This project is a metar-taf parser.
Use the MetarService and its method "parse()" to parse a metar string and retrieve a Metar Object.
Use the TAFService#parse to parse a TAF string and retrieve a TAF object.
package io.github.mivek.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Class representing the wind shear.
* @author mivek
*/
public class WindShear extends Wind {
/** The fHeight of the wind shear in feet. */
private int fHeight;
/**
* @return the height
*/
public int getHeight() {
return fHeight;
}
/**
* @param pHeight the height to set
*/
public void setHeight(final int pHeight) {
fHeight = pHeight;
}
@Override
public final String toString() {
return new ToStringBuilder(this).
appendSuper(super.toString()).
append("height (feet)", fHeight).
toString();
}
}