Class Histogram
- java.lang.Object
-
- de.uka.ipd.sdq.codegen.simudatavisualisation.datatypes.Histogram
-
public class Histogram extends Object
Deprecated.Superseded by EDP2.This class stores the information necessary to display a histogram. The histogram can be visualized using the information about the bucket width and the probability for the buckets.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<HistogramBucketInformation>bucketInformationDeprecated.List of the entities, that describe the probability for each of the bucketsprotected doublebucketWidthDeprecated.Contains the width of each bucket of the histogram.static doubleDEFAULT_BUCKET_WIDTHDeprecated.The default width for histogram classesstatic doubleMAXIMUM_NUMBER_OF_BUCKETSDeprecated.The maximum number of buckets to show when initialising the diagram.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddEntity(HistogramBucketInformation entity)Deprecated.Adds a new bucket to the histogram.List<HistogramBucketInformation>getBucketInformation()Deprecated.Returns the list of the buckets and their respective probability.doublegetBucketWidth()Deprecated.Receives the bucket width of the histogram.StringgetTitle()Deprecated.Receives the title or name of the histogram.voidremoveEntity(HistogramBucketInformation entity)Deprecated.Removes a bucket from the histogram.voidsetBucketWidth(double bucketWidth)Deprecated.Sets the bucket width of the histogram.voidsetTitle(String title)Deprecated.Sets the title or name of the histogram.
-
-
-
Field Detail
-
DEFAULT_BUCKET_WIDTH
public static final double DEFAULT_BUCKET_WIDTH
Deprecated.The default width for histogram classes- See Also:
- Constant Field Values
-
MAXIMUM_NUMBER_OF_BUCKETS
public static final double MAXIMUM_NUMBER_OF_BUCKETS
Deprecated.The maximum number of buckets to show when initialising the diagram. The user can decide to show more.- See Also:
- Constant Field Values
-
bucketInformation
protected List<HistogramBucketInformation> bucketInformation
Deprecated.List of the entities, that describe the probability for each of the buckets- See Also:
HistogramBucketInformation
-
bucketWidth
protected double bucketWidth
Deprecated.Contains the width of each bucket of the histogram.
-
-
Constructor Detail
-
Histogram
public Histogram(String title)
Deprecated.Creates a new histogram without buckets and default bucket width.- Parameters:
title- Title od name of the histogram.
-
Histogram
public Histogram(String title, double bucketWidth)
Deprecated.Creates a new histogram without buckets.- Parameters:
title- Title or name of the histogram.bucketWidth- Width of a bucket of the histogram.
-
-
Method Detail
-
addEntity
public void addEntity(HistogramBucketInformation entity)
Deprecated.Adds a new bucket to the histogram.- Parameters:
entity- information about the bucket.
-
removeEntity
public void removeEntity(HistogramBucketInformation entity)
Deprecated.Removes a bucket from the histogram.- Parameters:
entity- bucket to remove.
-
getBucketInformation
public List<HistogramBucketInformation> getBucketInformation()
Deprecated.Returns the list of the buckets and their respective probability.- Returns:
- the list of the entities.
-
getTitle
public String getTitle()
Deprecated.Receives the title or name of the histogram.- Returns:
- Title or name of the histogram.
-
setTitle
public void setTitle(String title)
Deprecated.Sets the title or name of the histogram.- Parameters:
title- The new title.
-
getBucketWidth
public double getBucketWidth()
Deprecated.Receives the bucket width of the histogram.- Returns:
- the bucket width.
-
setBucketWidth
public void setBucketWidth(double bucketWidth)
Deprecated.Sets the bucket width of the histogram.- Parameters:
bucketWidth- the new bucket width.
-
-