KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jscience > geography > coordinates > crs > CoordinatesConverter


1 /*
2  * JScience - Java(TM) Tools and Libraries for the Advancement of Sciences.
3  * Copyright (C) 2006 - JScience (http://jscience.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 package org.jscience.geography.coordinates.crs;
10
11 import org.jscience.geography.coordinates.Coordinates;
12
13 /**
14  * This interface represents a converter between {@link
15  * org.jscience.geography.coordinates.Coordinates coordinates}.
16  *
17  * @author <a HREF="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
18  * @version 3.0, February 13, 2006
19  */

20 public interface CoordinatesConverter<S extends Coordinates, T extends Coordinates> {
21
22     /**
23      * Converts the specified coordinates.
24      *
25      * @param source the source coordinates.
26      * @return the corresponding target coordinates.
27      * @throws ConversionException if this conversion cannot be performed.
28      */

29     T convert(S source);
30
31 }
32
Popular Tags