Rename getInfo -> getInformation.

This commit is contained in:
Mikael Capelle 2018-03-01 13:35:11 +01:00
parent 875a0c8518
commit a51e16c3dd
4 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ public class WeaklyConnectedComponentsAlgorithm extends AbstractAlgorithm<Weakly
for (Node node: getInstance().getGraph().getNodes()) {
for (Arc arc: node.getSuccessors()) {
res.get(node.getId()).add(arc.getDestination().getId());
if (arc.getInfo().isOneWay()) {
if (arc.getRoadInformation().isOneWay()) {
res.get(arc.getDestination().getId()).add(node.getId());
}
}

View File

@ -67,7 +67,7 @@ public class Arc {
/**
* @return Road information for this arc.
*/
public RoadInformation getInfo() {
public RoadInformation getRoadInformation() {
return info;
}

View File

@ -519,7 +519,7 @@ public class BasicDrawing extends JPanel implements Drawing {
this.initialize(graph);
for (Node node: graph.getNodes()) {
for (Arc arc: node.getSuccessors()) {
if (arc.getInfo().isOneWay()
if (arc.getRoadInformation().isOneWay()
|| arc.getOrigin().compareTo(arc.getDestination()) < 0) {
drawArc(arc, palette);
}

View File

@ -34,7 +34,7 @@ public class BasicGraphPalette implements GraphPalette {
@Override
public Color getColorForArc(Arc arc) {
RoadType type = arc.getInfo().getType();
RoadType type = arc.getRoadInformation().getType();
Color color = Color.BLACK;
switch (type) {
case MOTORWAY:
@ -68,7 +68,7 @@ public class BasicGraphPalette implements GraphPalette {
@Override
public int getWidthForArc(Arc arc) {
RoadType type = arc.getInfo().getType();
RoadType type = arc.getRoadInformation().getType();
int width = 1;
switch (type) {
case MOTORWAY: