public enum BeaufortLevel extends Enum<BeaufortLevel>
Resource: http://en.wikipedia.org/wiki/Beaufort_scale
As for now this implementation has english and norwegian (bokmaal) translations of the name on each level
| Enum Constant and Description |
|---|
CALM
Id: 0
|
FRESH_BREEZE
Id: 5
|
FRESH_GALE
Id: 8
|
GENTLE_BREEZE
Id: 3
|
HURRICANE_FORCE
Id: 12
|
LIGHT_AIR
Id: 1
|
LIGHT_BREEZE
Id: 2
|
MODERATE_BREEZE
Id: 4
|
NEAR_GALE
Id: 7
|
STORM
Id: 10
|
STRONG_BREEZE
Id: 6
|
STRONG_GALE
Id: 9
|
VIOLENT_STORM
Id: 11
|
| Modifier and Type | Method and Description |
|---|---|
static BeaufortLevel |
findUnitById(int value)
Find matching unit for a given number.
|
static BeaufortLevel |
findUnitByKilometersPerHour(double value)
Find matching unit for a given number.
|
static BeaufortLevel |
findUnitByKnots(double value)
Find matching unit for a given number.
|
static BeaufortLevel |
findUnitByMetersPerSecond(double value)
Find matching unit for a given number.
|
int |
getId()
Get the beaufort id.
|
BeaufortRange |
getKmhRange()
Get the unit range in kilometers per hour.
|
BeaufortRange |
getKnRange()
Get the unit range in knots.
|
BeaufortRange |
getMsRange()
Get the unit range in meters per second.
|
String |
getNameEN()
Get he name of the unit.
|
String |
getNameNO()
Get the norwegian (bokmaal) translation of the unit name.
|
static BeaufortLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BeaufortLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BeaufortLevel CALM
Id: 0
Sea: Flat
Land: Calm. Smoke rises vertically.
public static final BeaufortLevel LIGHT_AIR
Id: 1
Sea: Ripples without crests.
Land: Smoke drift indicates wind direction and wind vanes cease moving.
public static final BeaufortLevel LIGHT_BREEZE
Id: 2
Sea: Small wavelets. Crests of glassy appearance, not breaking.
Land: Wind felt on exposed skin. Leaves rustle and wind vanes begin to move.
public static final BeaufortLevel GENTLE_BREEZE
Id: 3
Sea: Large wavelets. Crests begin to break; scattered whitecaps
Land: Leaves and small twigs constantly moving, light flags extended
public static final BeaufortLevel MODERATE_BREEZE
Id: 4
Sea: Small waves with breaking crests. Fairly frequent whitecaps.
Land: Dust and loose paper raised. Small branches begin to move.
public static final BeaufortLevel FRESH_BREEZE
Id: 5
Sea: Moderate waves of some length. Many whitecaps. Small amounts of spray.
Land: Branches of a moderate size move. Small trees in leaf begin to sway.
public static final BeaufortLevel STRONG_BREEZE
Id: 6
Sea: Long waves begin to form. White foam crests are very frequent. Some airborne spray is present.
Land: Large branches in motion. Whistling heard in overhead wires. Umbrella use becomes difficult. Empty plastic garbage cans tip over.
public static final BeaufortLevel NEAR_GALE
Id: 7
Sea: Sea heaps up. Some foam from breaking waves is blown into streaks along wind direction. Moderate amounts of airborne spray.
Land: Whole trees in motion. Effort needed to walk against the wind.
public static final BeaufortLevel FRESH_GALE
Id: 8
Sea: Moderately high waves with breaking crests forming spindrift. Well-marked streaks of foam are blown along wind direction. Considerable airborne spray.
Land: Some twigs broken from trees. Cars veer on road. Progress on foot is seriously impeded.
public static final BeaufortLevel STRONG_GALE
Id: 9
Sea: High waves whose crests sometimes roll over. Dense foam is blown along wind direction. Large amounts of airborne spray may begin to reduce visibility.
Land: Some branches break off trees, and some small trees blow over. Construction/temporary signs and barricades blow over.
public static final BeaufortLevel STORM
Id: 10
Sea: Very high waves with overhanging crests. Large patches of foam from wave crests give the sea a white appearance. Considerable tumbling of waves with heavy impact. Large amounts of airborne spray reduce visibility.
Land: Trees are broken off or uprooted, saplings bent and deformed. Poorly attached asphalt shingles and shingles in poor condition peel off roofs.
public static final BeaufortLevel VIOLENT_STORM
Id: 11
Sea: Exceptionally high waves. Very large patches of foam, driven before the wind, cover much of the sea surface. Very large amounts of airborne spray severely reduce visibility.
Land: Widespread damage to vegetation. Many roofing surfaces are damaged; asphalt tiles that have curled p and/or fractured due to age may break away completely.
public static final BeaufortLevel HURRICANE_FORCE
Id: 12
Sea: Huge waves. Sea is completely white with foam and spray. Air is filled with driving spray, greatly reducing visibility.
Land: Very widespread damage to vegetation. Some windows may break; mobile homes and poorly constructed sheds and barns are damaged. Debris may be hurled about.
public static BeaufortLevel[] values()
for (BeaufortLevel c : BeaufortLevel.values()) System.out.println(c);
public static BeaufortLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic BeaufortRange getKmhRange()
public BeaufortRange getKnRange()
public BeaufortRange getMsRange()
public String getNameEN()
public String getNameNO()
public int getId()
public static BeaufortLevel findUnitByMetersPerSecond(double value)
value - Number representing wind speed in meters per second.public static BeaufortLevel findUnitByKnots(double value)
value - Number representing wind speed in knots.public static BeaufortLevel findUnitByKilometersPerHour(double value)
value - Number representing wind speed in kilometers per hour.CALM is returned. If the value
exceeds the Beaufort scale, then HURRICANE_FORCE is returned.public static BeaufortLevel findUnitById(int value)
value - Number representing the Beaufort id.CALM is returned. If the value
exceeds the Beaufort scale, then HURRICANE_FORCE is returned.Copyright © 2015 Amedia. All rights reserved.