drasys.or.geom
Interface CoordinateSystemI

All Known Implementing Classes:
CoordinateSystem, CoordinateSystem, CoordinateSystem

public interface CoordinateSystemI

An interface used by all algorithms to abstractly access coordinates.


Method Summary
 java.lang.String dimensionName(int i)
          Returns dimension names by ordinality.
 boolean equals(double a, double b)
          Returns true if the arguments are equal to with in the accuracy of the coordinate system.
 double getAccuracy()
          Returns the absolute accuracy required in the coordinate system.
 PointI getPointInstance(double[] coordinates)
          Returns an instance of a point object initialized to the coordinates.
 PointI getPointInstance(PointI point)
          Returns an instance of a point object initialized to point.
 PointI getPointInstance(VectorI coordinates)
          Returns an instance of a point object initialized to the coordinates.
 RangeI getRangeInstance(PointI boundaryPoint1, PointI boundaryPoint2)
          Returns an instance of a range object initialized to include the arguments.
 RangeI getRangeInstance(RangeI range)
          Returns an instance of a range object initialized to include the argument.
 boolean isSymmetric()
          Retuns true if distances are symmetric.
 int sizeOfDimensions()
          Returns the number of dimensions in the coordinate system.
 

Method Detail

getAccuracy

public double getAccuracy()
Returns the absolute accuracy required in the coordinate system. The accuracy is used globally in each coordinate system package for equality tests and to terminate numerical methods. The accuracy for each package is set using a static method int the CoordinateSystem class.

equals

public boolean equals(double a,
                      double b)
Returns true if the arguments are equal to with in the accuracy of the coordinate system.

sizeOfDimensions

public int sizeOfDimensions()
Returns the number of dimensions in the coordinate system.

dimensionName

public java.lang.String dimensionName(int i)
Returns dimension names by ordinality.

isSymmetric

public boolean isSymmetric()
Retuns true if distances are symmetric.

getPointInstance

public PointI getPointInstance(PointI point)
Returns an instance of a point object initialized to point.

getPointInstance

public PointI getPointInstance(VectorI coordinates)
Returns an instance of a point object initialized to the coordinates.

getPointInstance

public PointI getPointInstance(double[] coordinates)
Returns an instance of a point object initialized to the coordinates.

getRangeInstance

public RangeI getRangeInstance(PointI boundaryPoint1,
                               PointI boundaryPoint2)
Returns an instance of a range object initialized to include the arguments.

getRangeInstance

public RangeI getRangeInstance(RangeI range)
Returns an instance of a range object initialized to include the argument.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com