nenok.va
Interface Scalability
- All Superinterfaces:
- Labeled, Separativity, Serializable, Valuation
- All Known Subinterfaces:
- Idempotency
- All Known Implementing Classes:
- Identity
public interface Scalability
- extends Separativity
Specifies a scalable valuation. Scaling is basically an application of the division
operator and therefore this interface extends Separativity
. 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 Scalability.Implementor.getInstance().scale(this);
}
- Version:
- $LastChangedRevision: 559 $
$LastChangedDate: 2008-03-26 14:25:18 +0100 (Mi, 26 Mrz 2008) $
- Author:
- Marc Pouly
scale
Scalability scale()
- Scales the current valuation.
- Returns:
- The scaled version of this valuation.