com.ibm.geolib.st

Interface SolidMovingGeometry<T extends Geometry>

  • Type Parameters:
    T - - type representing a geometry value at a specific moment
    All Superinterfaces:
    java.lang.Cloneable, Geometry, Moving, MovingGeometry<T>, Spatial


    public interface SolidMovingGeometry<T extends Geometry>
    extends MovingGeometry<T>

    This class serves for tracking movement of a spatial object over time where the spatial object has a solid reference geometry. For example, an application might track movement of a ship and the ship's own geometry is important for computation.

    The common scenario for using moving geometry is as follows:
    1. Create a new solid moving geometry object using MovingGeometryFactory
    2. Report geometry changes over time via transformation methods (e.g. rotate, move, scale, etc.)
    3. Call other methods for queries over the tracked history of the object's movement (e.g. get geometry value at given time moment, compute speed, detect geofence breaches etc.)
    A snapshot represents the geometry value at a specific moment. Any geometry change performed by either of the above methods is stored as a snapshot. Conceptually the movement history can be represented as a sequence of snapshots.

    Theoretically one can imagine a moving geometry that tracks the entire history of an object's movement from its creation to its end of life, which in some cases might not be limited in time. However, in reality this is impractical and often not necessary. Therefore one can limit the size of the geometry history by providing a value for the history time limit. By default the history is limited to 24 hours.

    • Method Detail

      • getReferenceGeometry

        T getReferenceGeometry()
        Represent the shape of a moving object with a fixed shape. The most common use of reference geometry is when the movement of the tracked object is described as a series of transformations.
        Returns:
        the reference geometry as was defined when constructing the moving geometry instance
      • moveTo

        T moveTo(Point point,
               java.time.ZonedDateTime time)
        Move this object to the specified point (relative to its reference geometry)
        Parameters:
        point -
        time -
        Returns:
        the geometry value after the movement
      • moveTo

        T moveTo(double x,
               double y,
               java.time.ZonedDateTime time)
        Deprecated. use MovingGeometry#moveTo(Point, ZonedDateTime)) instead
        Move this object to the 2d point defined by the coordinates (x,y)
        Parameters:
        point -
        time -
        Returns:
        the geometry after the movement
      • move

        T move(double x,
             double y,
             LengthUnit units,
             java.time.ZonedDateTime time)
        Deprecated. use MovingGeometry#move(Vector, LengthUnit, ZonedDateTime) instead
        Move by the vector defined by the coordinates x and y, defined by the lngth unit
        Parameters:
        x -
        y -
        units -
        time -
        Returns:
        the geometry after the movement
      • scale

        T scale(double scaleFactor,
              java.time.ZonedDateTime time)
        Scale the geometry by the scale factor in both axes
        Parameters:
        scaleFactor -
        time - the time of the transformation
        Returns:
        the geometry after the transformation
      • scale

        T scale(double[] scaleVector,
              java.time.ZonedDateTime time)
        Scale the geometry by the scale factor in both axes
        Parameters:
        scaleVector -
        time - - the time of the transformation
        Returns:
        the geometry after the transformation
      • scale

        T scale(double sx,
              double sy,
              java.time.ZonedDateTime time)
        Deprecated. use MovingGeometry#scale(double[], ZonedDateTime) instead
        Scale the geometry by the scale factor defined by sx and sy for the x and y axis, accordingly
        Parameters:
        sx -
        sy -
        time - - the time of the transformation
        Returns:
        the geometry after the transformation
      • scale

        T scale(double scale,
              Point currentRefPoint,
              java.time.ZonedDateTime time)
        Scale the geometry by the scale factor defined by scale on all axes around currentRefPoint
        Parameters:
        scale -
        currentRefPoint -
        time - the time of the transformation
        Returns:
        the geometry after the transformation
      • scale

        T scale(double scaleFactor1,
              double scaleFactor2,
              Point currentRefPoint,
              java.time.ZonedDateTime time)
        Deprecated. use MovingGeometry#scale(double[], Point, ZonedDateTime) instead
        Scale the geometry by the scale factors defined by scaleFactor1 and scaleFactor2 for the x and y axes, respectively. The scaling is around the point currentRefPoint
        Parameters:
        scaleFactor1 -
        scaleFactor2 -
        currentRefPoint -
        time - the time of the transformation
        Returns:
        the geometry after the transformation
      • scale

        T scale(double[] scale,
              Point currentRefPoint,
              java.time.ZonedDateTime time)
        Scale the geometry by the scale array. The scaling is around the point currentRefPoint
        Parameters:
        scale -
        currentRefPoint -
        time - the time of the transformation
        Returns:
        the geometry after the transformation
      • shear

        T shear(double sx,
              double sy,
              java.time.ZonedDateTime time)
        Deprecated. use SolidMovingGeometry#shear(double[]) instead
        Shear the geometry by the factor of sx and sy for the x and y axes, respectively
        Parameters:
        sx -
        sy -
        time - - the time of the transformation
        Returns:
        the geometry after the transformation
      • transform

        T transform(Transformation transformation,
                  java.time.ZonedDateTime time)
        Transform the geometry according to the transformation parameter
        Parameters:
        transformation -
        time - the time of the transformation
        Returns:
        the geometry after the transformation
      • rotate

        T rotate(double angle,
               AngleUnit units,
               java.time.ZonedDateTime time)
        Rotate the geometry by the value of angle, defined by the angle units
        Parameters:
        angle -
        units -
        time - - the time of the transformation
        Returns:
        the geometry after the transformation
      • move

        T move(Vector direction,
             LengthUnit units,
             java.time.ZonedDateTime time)
        Move in the direction of the direction parameter defined by the length unit.
        Parameters:
        direction -
        units -
        time -
        Returns:
        the geometry value after the transformation

© Copyright IBM 2017