You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
632 B

package mock.model.wind;
import shared.model.Wind;
/**
* Interface for wind generators. It allows for generating a baseline wind, and subsequent winds.
*/
public interface WindGenerator {
/**
* Generates a wind object using the baseline wind speed and bearing.
* @return Baseline wind object.
*/
Wind generateBaselineWind();
/**
* Generates the next Wind object, according to the implementation of the wind generator.
* @param currentWind The current wind to change. This is not modified.
* @return Generated wind object.
*/
Wind generateNextWind(Wind currentWind);
}