test_class.declarator: geomFact = new GeometryFactory()
test_class.modifier: private static
test_class.original_string: private static GeometryFactory geomFact = new GeometryFactory();
test_class.type: GeometryFactory
test_class.var_name: geomFact
test_class.declarator: wktReader = new WKTReader()
test_class.modifier: private static
test_class.original_string: private static WKTReader wktReader = new WKTReader();
test_class.type: WKTReader
test_class.var_name: wktReader
test_class.file: core/src/test/java/org/datasyslab/geospark/geometryObjects/CircleTest.java
test_class.identifier: CircleTest
test_case.body: @Test
      public void testSetRadius()
              throws Exception
      {
          Circle circle = new Circle(makePoint(0.0, 0.0), 0.1);
          circle.setRadius(0.2);
          assertEquals(circle.getRadius(), 0.2, 0.01);
      }
test_case.class_method_signature: CircleTest.testSetRadius()
test_case.full_signature: @Test public void testSetRadius()
test_case.identifier: testSetRadius
test_case.invocations: makePoint setRadius assertEquals getRadius
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetRadius()
focal_class.declarator: centerGeometry
focal_class.modifier: private
focal_class.original_string: private Geometry centerGeometry;
focal_class.type: Geometry
focal_class.var_name: centerGeometry
focal_class.declarator: centerPoint
focal_class.modifier: private
focal_class.original_string: private Coordinate centerPoint;
focal_class.type: Coordinate
focal_class.var_name: centerPoint
focal_class.declarator: radius
focal_class.modifier: private
focal_class.original_string: private Double radius;
focal_class.type: Double
focal_class.var_name: radius
focal_class.declarator: MBR
focal_class.modifier: private
focal_class.original_string: private Envelope MBR;
focal_class.type: Envelope
focal_class.var_name: MBR
focal_class.file: core/src/main/java/org/datasyslab/geospark/geometryObjects/Circle.java
focal_class.identifier: Circle
focal_class.class_method_signature: Circle.getCenterGeometry()
focal_class.full_signature: public Geometry getCenterGeometry()
focal_class.identifier: getCenterGeometry
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Geometry
focal_class.signature: Geometry getCenterGeometry()
focal_class.class_method_signature: Circle.Circle(Geometry centerGeometry, Double givenRadius)
focal_class.full_signature: public  Circle(Geometry centerGeometry, Double givenRadius)
focal_class.identifier: Circle
focal_class.modifiers: public
focal_class.parameters: (Geometry centerGeometry, Double givenRadius)
focal_class.signature:  Circle(Geometry centerGeometry, Double givenRadius)
focal_class.class_method_signature: Circle.getCenterPoint()
focal_class.full_signature: public Coordinate getCenterPoint()
focal_class.identifier: getCenterPoint
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Coordinate
focal_class.signature: Coordinate getCenterPoint()
focal_class.class_method_signature: Circle.getRadius()
focal_class.full_signature: public Double getRadius()
focal_class.identifier: getRadius
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Double
focal_class.signature: Double getRadius()
focal_class.class_method_signature: Circle.setRadius(Double givenRadius)
focal_class.full_signature: public void setRadius(Double givenRadius)
focal_class.identifier: setRadius
focal_class.modifiers: public
focal_class.parameters: (Double givenRadius)
focal_class.return: void
focal_class.signature: void setRadius(Double givenRadius)
focal_class.class_method_signature: Circle.covers(Geometry other)
focal_class.full_signature: @Override public boolean covers(Geometry other)
focal_class.identifier: covers
focal_class.modifiers: @Override public
focal_class.parameters: (Geometry other)
focal_class.return: boolean
focal_class.signature: boolean covers(Geometry other)
focal_class.class_method_signature: Circle.covers(LineString lineString)
focal_class.full_signature: private boolean covers(LineString lineString)
focal_class.identifier: covers
focal_class.modifiers: private
focal_class.parameters: (LineString lineString)
focal_class.return: boolean
focal_class.signature: boolean covers(LineString lineString)
focal_class.class_method_signature: Circle.covers(Point point)
focal_class.full_signature: private boolean covers(Point point)
focal_class.identifier: covers
focal_class.modifiers: private
focal_class.parameters: (Point point)
focal_class.return: boolean
focal_class.signature: boolean covers(Point point)
focal_class.class_method_signature: Circle.intersects(Geometry other)
focal_class.full_signature: @Override public boolean intersects(Geometry other)
focal_class.identifier: intersects
focal_class.modifiers: @Override public
focal_class.parameters: (Geometry other)
focal_class.return: boolean
focal_class.signature: boolean intersects(Geometry other)
focal_class.class_method_signature: Circle.intersects(Polygon polygon)
focal_class.full_signature: private boolean intersects(Polygon polygon)
focal_class.identifier: intersects
focal_class.modifiers: private
focal_class.parameters: (Polygon polygon)
focal_class.return: boolean
focal_class.signature: boolean intersects(Polygon polygon)
focal_class.class_method_signature: Circle.intersects(LineString lineString)
focal_class.full_signature: private boolean intersects(LineString lineString)
focal_class.identifier: intersects
focal_class.modifiers: private
focal_class.parameters: (LineString lineString)
focal_class.return: boolean
focal_class.signature: boolean intersects(LineString lineString)
focal_class.class_method_signature: Circle.intersects(Point start, Point end)
focal_class.full_signature: private boolean intersects(Point start, Point end)
focal_class.identifier: intersects
focal_class.modifiers: private
focal_class.parameters: (Point start, Point end)
focal_class.return: boolean
focal_class.signature: boolean intersects(Point start, Point end)
focal_class.class_method_signature: Circle.getGeometryType()
focal_class.full_signature: @Override public String getGeometryType()
focal_class.identifier: getGeometryType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGeometryType()
focal_class.class_method_signature: Circle.getCoordinate()
focal_class.full_signature: @Override public Coordinate getCoordinate()
focal_class.identifier: getCoordinate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Coordinate
focal_class.signature: Coordinate getCoordinate()
focal_class.class_method_signature: Circle.getCoordinates()
focal_class.full_signature: @Override public Coordinate[] getCoordinates()
focal_class.identifier: getCoordinates
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Coordinate[]
focal_class.signature: Coordinate[] getCoordinates()
focal_class.class_method_signature: Circle.getNumPoints()
focal_class.full_signature: @Override public int getNumPoints()
focal_class.identifier: getNumPoints
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumPoints()
focal_class.class_method_signature: Circle.isEmpty()
focal_class.full_signature: @Override public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: Circle.getDimension()
focal_class.full_signature: @Override public int getDimension()
focal_class.identifier: getDimension
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getDimension()
focal_class.class_method_signature: Circle.getBoundary()
focal_class.full_signature: @Override public Geometry getBoundary()
focal_class.identifier: getBoundary
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Geometry
focal_class.signature: Geometry getBoundary()
focal_class.class_method_signature: Circle.getBoundaryDimension()
focal_class.full_signature: @Override public int getBoundaryDimension()
focal_class.identifier: getBoundaryDimension
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getBoundaryDimension()
focal_class.class_method_signature: Circle.reverse()
focal_class.full_signature: @Override public Geometry reverse()
focal_class.identifier: reverse
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Geometry
focal_class.signature: Geometry reverse()
focal_class.class_method_signature: Circle.clone()
focal_class.full_signature: @Override public Object clone()
focal_class.identifier: clone
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Object
focal_class.signature: Object clone()
focal_class.class_method_signature: Circle.equalsExact(Geometry g, double tolerance)
focal_class.full_signature: @Override public boolean equalsExact(Geometry g, double tolerance)
focal_class.identifier: equalsExact
focal_class.modifiers: @Override public
focal_class.parameters: (Geometry g, double tolerance)
focal_class.return: boolean
focal_class.signature: boolean equalsExact(Geometry g, double tolerance)
focal_class.class_method_signature: Circle.apply(CoordinateFilter filter)
focal_class.full_signature: @Override public void apply(CoordinateFilter filter)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (CoordinateFilter filter)
focal_class.return: void
focal_class.signature: void apply(CoordinateFilter filter)
focal_class.class_method_signature: Circle.apply(CoordinateSequenceFilter filter)
focal_class.full_signature: @Override public void apply(CoordinateSequenceFilter filter)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (CoordinateSequenceFilter filter)
focal_class.return: void
focal_class.signature: void apply(CoordinateSequenceFilter filter)
focal_class.class_method_signature: Circle.apply(GeometryFilter filter)
focal_class.full_signature: @Override public void apply(GeometryFilter filter)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (GeometryFilter filter)
focal_class.return: void
focal_class.signature: void apply(GeometryFilter filter)
focal_class.class_method_signature: Circle.apply(GeometryComponentFilter filter)
focal_class.full_signature: @Override public void apply(GeometryComponentFilter filter)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (GeometryComponentFilter filter)
focal_class.return: void
focal_class.signature: void apply(GeometryComponentFilter filter)
focal_class.class_method_signature: Circle.normalize()
focal_class.full_signature: @Override public void normalize()
focal_class.identifier: normalize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void normalize()
focal_class.class_method_signature: Circle.computeEnvelopeInternal()
focal_class.full_signature: @Override protected Envelope computeEnvelopeInternal()
focal_class.identifier: computeEnvelopeInternal
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Envelope
focal_class.signature: Envelope computeEnvelopeInternal()
focal_class.class_method_signature: Circle.compareToSameClass(Object other)
focal_class.full_signature: @Override protected int compareToSameClass(Object other)
focal_class.identifier: compareToSameClass
focal_class.modifiers: @Override protected
focal_class.parameters: (Object other)
focal_class.return: int
focal_class.signature: int compareToSameClass(Object other)
focal_class.class_method_signature: Circle.compareToSameClass(Object other, CoordinateSequenceComparator comp)
focal_class.full_signature: @Override protected int compareToSameClass(Object other, CoordinateSequenceComparator comp)
focal_class.identifier: compareToSameClass
focal_class.modifiers: @Override protected
focal_class.parameters: (Object other, CoordinateSequenceComparator comp)
focal_class.return: int
focal_class.signature: int compareToSameClass(Object other, CoordinateSequenceComparator comp)
focal_class.class_method_signature: Circle.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends Geometry
focal_method.body: public void setRadius(Double givenRadius)
      {
          // Get the internal radius of the object. We need to make sure that the circle at least should be the minimum circumscribed circle
          Envelope centerGeometryMBR = this.centerGeometry.getEnvelopeInternal();
          double width = centerGeometryMBR.getMaxX() - centerGeometryMBR.getMinX();
          double length = centerGeometryMBR.getMaxY() - centerGeometryMBR.getMinY();
          double centerGeometryInternalRadius = Math.sqrt(width * width + length * length) / 2;
          this.radius = givenRadius > centerGeometryInternalRadius ? givenRadius : centerGeometryInternalRadius;
          this.MBR = new Envelope(this.centerPoint.x - this.radius, this.centerPoint.x + this.radius, this.centerPoint.y - this.radius, this.centerPoint.y + this.radius);
      }
focal_method.class_method_signature: Circle.setRadius(Double givenRadius)
focal_method.full_signature: public void setRadius(Double givenRadius)
focal_method.identifier: setRadius
focal_method.invocations: getEnvelopeInternal getMaxX getMinX getMaxY getMinY sqrt
focal_method.modifiers: public
focal_method.parameters: (Double givenRadius)
focal_method.return: void
focal_method.signature: void setRadius(Double givenRadius)