public interface Operation extends CatalogType, Comparable<Operation>
AttributeModifier
to modify the
value of an Attribute
.Modifier and Type | Method and Description |
---|---|
boolean |
changeValueImmediately()
Gets if, when applied, this operation should change the value of the
attribute immediately, or if it's incrementations should be summed up,
then added.
|
double |
getIncrementation(double base,
double modifier,
double currentValue)
Gets the amount the
Attribute should be incremented when this
modifier is applied to it. |
getId, getName
compareTo
double getIncrementation(double base, double modifier, double currentValue)
Attribute
should be incremented when this
modifier is applied to it.base
- The base value of the Attributemodifier
- The modifier to modify the Attribute withcurrentValue
- The current value of the Attributeboolean changeValueImmediately()
true
if, when applied, this operation should change the
value of the attribute immediately, or false
if it's
incrementations should be summed up, then added