Class Euclidean2DPlane

    • Constructor Detail

      • Euclidean2DPlane

        public Euclidean2DPlane()
      • Euclidean2DPlane

        public Euclidean2DPlane​(java.lang.String name)
    • Method Detail

      • getDefaultCoordinate

        public CoordinateIfc getDefaultCoordinate()
        Description copied from class: SpatialModel
        Returns a default set of coordinates to be used to initialize the location of spatial elements if necessary.
        Specified by:
        getDefaultCoordinate in class SpatialModel
        Returns:
      • getCoordinate

        public CoordinateIfc getCoordinate​(double x1,
                                           double x2,
                                           double x3)
        Description copied from class: SpatialModel
        Creates a valid coordinate for this spatial model This method should check whether the coordinate can be represented spatially within this spatial model. If not, an IllegalArgumentException should be thrown
        Specified by:
        getCoordinate in class SpatialModel
        Returns:
      • isValid

        public boolean isValid​(CoordinateIfc coordinate)
        Description copied from class: SpatialModel
        Checks to see if the supplied coordinate is physically valid within the spatial model. This depends on the underlying spatial representation. This method should check whether the coordinate can be represented spatially within this spatial model. If so, this method should return true.
        Specified by:
        isValid in class SpatialModel
        Returns:
      • comparePositions

        public boolean comparePositions​(CoordinateIfc coordinate1,
                                        CoordinateIfc coordinate2)
        Description copied from class: SpatialModel
        Returns true if the first coordinate is the same as second coordinate within the underlying spatial model. This is not object reference equality, but rather whether or not the positions within the underlying spatial model can be considered spatially (equivalent). Requirement: The coordinates must be valid within the spatial model. If they are not valid within same spatial model, then this method should return false.
        Specified by:
        comparePositions in class SpatialModel
        Returns: