- java.lang.Object
-
- devplugin.ImportanceValue
-
public class ImportanceValue extends java.lang.Object
A class with a weighted importance value to calculate the program opacity.- Since:
- 3.0
- Author:
- René Mach
-
-
Constructor Summary
Constructors Constructor Description ImportanceValue(byte weight, short totalImportance)
Creates an instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getTotalImportance()
Gets the total importance of this importance valuebyte
getWeight()
Gets the weight for this importance value.
-
-
-
Constructor Detail
-
ImportanceValue
public ImportanceValue(byte weight, short totalImportance)
Creates an instance of this class.EXAMPLE: If you give a weight of 4 you mean the totalImportance contains a sum of 4 importance values. NOTE: This will ignore values that are not reachable with the possible single importance of a Program. So for instance, if you give a weight of 4 and a totalImportance of 50 this will be ignored as 40 ist the highest possible amount for a weight of 4.
- Parameters:
weight
- Is the count of importance values given.totalImportance
- Is the sum of the count importance values
-
-