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