nenok.va
Interface Scalability
- All Superinterfaces:
- Cloneable, Regularity, Serializable, Valuation
- All Known Implementing Classes:
- Identity, ScaledSRValuation
public interface Scalability
- extends Regularity
Specifies a scalable valuation. Scaling is basically an application of the division
operator and therefore this interface extends Regularity
. Based on the
division operator in its super-interface, the scaling operation can be pre-implemented.
In order to prevent the user to be reliant on abstract classes (because multiple inheritance
is not allowed in JAVA), this interface offers a delegator inner class that reduces scaling on
the division operator. Therefore, the user can implement this interface as follows:
public Scalability scale() {
return new Scalability.Implementor().scale(this);
}
- Version:
- 1.1
- Author:
- Marc Pouly
scale
Scalability scale()
- Scales the current valuation.
- Returns:
- The scaled version of this valuation.