[clean] Apply formatting and add formatter configuration.

This commit is contained in:
Mikael Capelle
2021-07-08 13:53:33 +02:00
committed by Mikael CAPELLE
parent 2f936d44ec
commit 730cda6426
86 changed files with 1460 additions and 1214 deletions

View File

@@ -5,16 +5,15 @@ import org.insa.graphs.model.Graph;
import org.insa.graphs.model.GraphStatistics;
/**
* Base class for algorithm input data classes. This class contains the basic
* data that are required by most graph algorithms, i.e. a graph, a mode (time /
* length) and a filter for the arc.
*
* Base class for algorithm input data classes. This class contains the basic data that
* are required by most graph algorithms, i.e. a graph, a mode (time / length) and a
* filter for the arc.
*/
public abstract class AbstractInputData {
/**
* Enum specifying the top mode of the algorithms.
*
*
* @see ArcInspector
*/
public enum Mode {
@@ -29,7 +28,7 @@ public abstract class AbstractInputData {
/**
* Create a new AbstractInputData instance for the given graph, mode and filter.
*
*
* @param graph Graph for this input data.
* @param arcInspector Arc inspector for this input data.
*/
@@ -46,13 +45,11 @@ public abstract class AbstractInputData {
}
/**
* Retrieve the cost associated with the given arc according to the underlying
* arc inspector.
*
* Retrieve the cost associated with the given arc according to the underlying arc
* inspector.
*
* @param arc Arc for which cost should be retrieved.
*
* @return Cost for the given arc.
*
* @see ArcInspector
*/
public double getCost(Arc arc) {
@@ -61,7 +58,6 @@ public abstract class AbstractInputData {
/**
* @return Mode associated with this input data.
*
* @see Mode
*/
public Mode getMode() {
@@ -70,10 +66,10 @@ public abstract class AbstractInputData {
/**
* Retrieve the maximum speed associated with this input data, or
* {@link GraphStatistics#NO_MAXIMUM_SPEED} if none is associated. The maximum
* speed associated with input data is different from the maximum speed
* associated with graph (accessible via {@link Graph#getGraphInformation()}).
*
* {@link GraphStatistics#NO_MAXIMUM_SPEED} if none is associated. The maximum speed
* associated with input data is different from the maximum speed associated with
* graph (accessible via {@link Graph#getGraphInformation()}).
*
* @return The maximum speed for this inspector, or
* {@link GraphStatistics#NO_MAXIMUM_SPEED} if none is set.
*/
@@ -83,11 +79,9 @@ public abstract class AbstractInputData {
/**
* Check if the given arc is allowed for the filter corresponding to this input.
*
*
* @param arc Arc to check.
*
* @return true if the given arc is allowed.
*
* @see ArcInspector
*/
public boolean isAllowed(Arc arc) {