Skip to content

Commit

Permalink
Bugfix/#52 javadoc coverage (#134)
Browse files Browse the repository at this point in the history
* WIP

* WIP
  • Loading branch information
DorianRec authored and 1-alex98 committed Jan 14, 2020
1 parent cbc5bd1 commit 9f7e802
Show file tree
Hide file tree
Showing 12 changed files with 217 additions and 75 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/treasure/hunt/analysis/StatisticObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import lombok.Value;

/**
* This defines a component, we want to analyze in our simulation.
*
* @author Trostorff, Daniel
*/
@Value
Expand Down
13 changes: 1 addition & 12 deletions src/main/java/com/treasure/hunt/game/GameManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,6 @@ public void stopBeat() {
beatThreadRunning.set(false);
}

/**
* @return whether the game of the {@link GameEngine} is finished or not.
*/
public boolean isGameFinished() {
return gameEngine.isFinished();
}

/**
* @return {@code true}, if the shown step is the most up to date one. {@code false}, otherwise.
*/
Expand Down Expand Up @@ -300,12 +293,8 @@ public CompletableFuture<Void> beat(ReadOnlyObjectProperty<Double> delay) {
}

/**
* @return {@code true}, if the shown step is the first one. {@code false}, otherwise.
* {@inheritDoc}
*/
public boolean isFirstStepShown() {
return stepBackwardImpossibleBinding.getValue();
}

@Override
public void write(Kryo kryo, Output output) {
kryo.writeObject(output, gameEngine);
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/com/treasure/hunt/jts/geom/Circle.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
* @see org.locationtech.jts.geom.Geometry
*/
public class Circle extends Polygon {
/**
* The radius of the circle.
*/
double radius;

/**
* The constructor
*
Expand Down
17 changes: 10 additions & 7 deletions src/main/java/com/treasure/hunt/jts/geom/GeometryAngle.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* @author jotoh
*/
public class GeometryAngle extends LineString implements Shapeable {

/**
* GeometryAngle constructor via three {@link Coordinate}s.
*
Expand All @@ -34,11 +33,7 @@ public class GeometryAngle extends LineString implements Shapeable {
* @param left the left angles arm end point
*/
public GeometryAngle(GeometryFactory factory, Coordinate right, Coordinate center, Coordinate left) {
super(
factory.getCoordinateSequenceFactory()
.create(new Coordinate[]{center, left, right}),
factory
);
super(factory.getCoordinateSequenceFactory().create(new Coordinate[]{center, left, right}), factory);
}

/**
Expand Down Expand Up @@ -98,7 +93,6 @@ public void setRight(Coordinate right) {
setCoordinate(2, right);
}


public Vector2D rightVector() {
return new Vector2D(getCenter(), getRight());
}
Expand All @@ -123,6 +117,9 @@ public double extend() {
return extend;
}

/**
* {@inheritDoc}
*/
@Override
public Shape toShape(AdvancedShapeWriter shapeWriter) {
GeneralPath generalPath = new GeneralPath();
Expand All @@ -135,6 +132,9 @@ public Shape toShape(AdvancedShapeWriter shapeWriter) {
return generalPath;
}

/**
* {@inheritDoc}
*/
@Override
public String getGeometryType() {
return "Angle";
Expand All @@ -147,6 +147,9 @@ public boolean inView(Coordinate coordinate) {
return testExtend >= 0 && testExtend <= extend();
}

/**
* {@inheritDoc}
*/
@Override
public GeometryAngle copy() {
return new GeometryAngle(factory, getRight().copy(), getCenter().copy(), getLeft().copy());
Expand Down
65 changes: 60 additions & 5 deletions src/main/java/com/treasure/hunt/jts/geom/GeometryLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,101 +15,156 @@ public GeometryLine(GeometryFactory factory) {
super(factory);
}

/**
* {@inheritDoc}
*/
@Override
public String getGeometryType() {
return null;
}

/**
* {@inheritDoc}
*/
@Override
public Coordinate getCoordinate() {
return null;
}

/**
* {@inheritDoc}
*/
@Override
public Coordinate[] getCoordinates() {
return new Coordinate[0];
}

/**
* {@inheritDoc}
*/
@Override
public int getNumPoints() {
return 0;
}

/**
* {@inheritDoc}
*/
@Override
public boolean isEmpty() {
return false;
}

/**
* {@inheritDoc}
*/
@Override
public int getDimension() {
return 0;
}

/**
* {@inheritDoc}
*/
@Override
public Geometry getBoundary() {
return null;
}

/**
* {@inheritDoc}
*/
@Override
public int getBoundaryDimension() {
return 0;
}

/**
* {@inheritDoc}
*/
@Override
public Geometry reverse() {
return null;
}

/**
* {@inheritDoc}
*/
@Override
public boolean equalsExact(Geometry other, double tolerance) {
return false;
}

/**
* {@inheritDoc}
*/
@Override
public void apply(CoordinateFilter filter) {

}

/**
* {@inheritDoc}
*/
@Override
public void apply(CoordinateSequenceFilter filter) {

}

/**
* {@inheritDoc}
*/
@Override
public void apply(GeometryFilter filter) {

}

/**
* {@inheritDoc}
*/
@Override
public void apply(GeometryComponentFilter filter) {

}

/**
* {@inheritDoc}
*/
@Override
protected Geometry copyInternal() {
return null;
}

/**
* {@inheritDoc}
*/
@Override
public void normalize() {

}

/**
* {@inheritDoc}
*/
@Override
protected Envelope computeEnvelopeInternal() {
return null;
}

/**
* {@inheritDoc}
*/
@Override
protected int compareToSameClass(Object o) {
return 0;
}

/**
* {@inheritDoc}
*/
@Override
protected int compareToSameClass(Object o, CoordinateSequenceComparator comp) {
return 0;
}

/**
* {@inheritDoc}
*/
@Override
protected int getSortIndex() {
return 0;
Expand Down
Loading

0 comments on commit 9f7e802

Please sign in to comment.