Rename getInfo -> getInformation.
This commit is contained in:
parent
875a0c8518
commit
a51e16c3dd
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ public class Arc {
|
||||
/**
|
||||
* @return Road information for this arc.
|
||||
*/
|
||||
public RoadInformation getInfo() {
|
||||
public RoadInformation getRoadInformation() {
|
||||
return info;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user