01: /*
02: * JScience - Java(TM) Tools and Libraries for the Advancement of Sciences.
03: * Copyright (C) 2006 - JScience (http://jscience.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: 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: }
|