org.geotoolkit.referencing.operation
Class DefaultFormula

Object
  extended by DefaultFormula
All Implemented Interfaces:
Serializable, Formula

@Immutable
public class DefaultFormula
extends Object
implements Formula, Serializable

Specification of the coordinate operation method formula.

Since:
3.03
Version:
3.03
Author:
Martin Desruisseaux (Geomatys)
See Also:
Serialized Form
Module:
referencing/geotk-referencing (download)    View source code for this class

Constructor Summary
DefaultFormula(CharSequence formula)
          Creates a new formula from the given string.
DefaultFormula(Citation citation)
          Creates a new formula from the given citation.
 
Method Summary
 boolean equals(Object object)
          Compares this formula with the given object for equality.
 Citation getCitation()
          Returns the reference to a publication giving the formula(s) or procedure used by the coordinate operation method, or null if none.
 InternationalString getFormula()
          Returns the formula(s) or procedure used by the operation method, or null if none.
 int hashCode()
          Returns a hash code value for this formula.
 String toString()
          Returns a string representation of this formula.
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFormula

public DefaultFormula(CharSequence formula)
Creates a new formula from the given string.

Parameters:
formula - The formula.

DefaultFormula

public DefaultFormula(Citation citation)
Creates a new formula from the given citation.

Parameters:
citation - The citation.
Method Detail

getFormula

public InternationalString getFormula()
Returns the formula(s) or procedure used by the operation method, or null if none.

Specified by:
getFormula in interface Formula

getCitation

public Citation getCitation()
Returns the reference to a publication giving the formula(s) or procedure used by the coordinate operation method, or null if none.

Specified by:
getCitation in interface Formula

hashCode

public int hashCode()
Returns a hash code value for this formula.

Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Compares this formula with the given object for equality.

Overrides:
equals in class Object
Parameters:
object - The object to compare with this formula.
Returns:
true if both objects are equal.

toString

public String toString()
Returns a string representation of this formula.

Overrides:
toString in class Object


Copyright © 2009-2011 Geotoolkit.org. All Rights Reserved.