com.rubecula.jquantity
Interface Normalizable

All Known Implementing Classes:
Complex, Compound, Rational

public interface Normalizable

This interface defines the operation which can be invoked on an object to "normalize" it. The type of object which implement this interface are those which have more than one piece of information which can be mutually adjusted to some "normal" form without the effective value of the object changing.

Version:
$Revision: 1.3 $
Author:
Robin Hillyard

Method Summary
 boolean isNormal()
          Method to determine if this instance is already normalized.
 void normalize()
          MUTATING instance method to normalize this object.
 

Method Detail

normalize

public void normalize()
MUTATING instance method to normalize this object. Repeated applications of this method on an object should have no effect. The effective value of this object before and after normalization must be the same.


isNormal

public boolean isNormal()
Method to determine if this instance is already normalized.

Returns:
true if this object is already normalized.