Package dev.roanh.gmark.core
Interface Distribution
- All Known Implementing Classes:
GaussianDistribution
,UniformDistribution
,ZipfianDistribution
public interface Distribution
Abstract interface for value distributions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Distribution
Used when a distribution is not explicitly specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic Distribution
Parses the given configuration XML element to the corresponding distribution.getType()
Gets the type of this distribution.
-
Field Details
-
UNDEFINED
Used when a distribution is not explicitly specified.
-
-
Method Details
-
getType
DistributionType getType()Gets the type of this distribution.- Returns:
- The type of this distribution.
-
fromXML
Parses the given configuration XML element to the corresponding distribution.- Parameters:
data
- The XML element to parse.- Returns:
- The parsed distribution.
-