Rename getInfo -> getInformation.
This commit is contained in:
		
							parent
							
								
									875a0c8518
								
							
						
					
					
						commit
						a51e16c3dd
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		|  | @ -82,7 +82,7 @@ public class WeaklyConnectedComponentsAlgorithm extends AbstractAlgorithm<Weakly | ||||||
|         for (Node node: getInstance().getGraph().getNodes()) { |         for (Node node: getInstance().getGraph().getNodes()) { | ||||||
|             for (Arc arc: node.getSuccessors()) { |             for (Arc arc: node.getSuccessors()) { | ||||||
|                 res.get(node.getId()).add(arc.getDestination().getId()); |                 res.get(node.getId()).add(arc.getDestination().getId()); | ||||||
|                 if (arc.getInfo().isOneWay()) { |                 if (arc.getRoadInformation().isOneWay()) { | ||||||
|                     res.get(arc.getDestination().getId()).add(node.getId()); |                     res.get(arc.getDestination().getId()).add(node.getId()); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |  | ||||||
|  | @ -67,7 +67,7 @@ public class Arc { | ||||||
|     /** |     /** | ||||||
|      * @return Road information for this arc. |      * @return Road information for this arc. | ||||||
|      */ |      */ | ||||||
|     public RoadInformation getInfo() { |     public RoadInformation getRoadInformation() { | ||||||
|         return info; |         return info; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -519,7 +519,7 @@ public class BasicDrawing extends JPanel implements Drawing { | ||||||
|         this.initialize(graph); |         this.initialize(graph); | ||||||
|         for (Node node: graph.getNodes()) { |         for (Node node: graph.getNodes()) { | ||||||
|             for (Arc arc: node.getSuccessors()) { |             for (Arc arc: node.getSuccessors()) { | ||||||
|                 if (arc.getInfo().isOneWay() |                 if (arc.getRoadInformation().isOneWay() | ||||||
|                         || arc.getOrigin().compareTo(arc.getDestination()) < 0) { |                         || arc.getOrigin().compareTo(arc.getDestination()) < 0) { | ||||||
|                     drawArc(arc, palette); |                     drawArc(arc, palette); | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|  | @ -34,7 +34,7 @@ public class BasicGraphPalette implements GraphPalette { | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|     public Color getColorForArc(Arc arc) { |     public Color getColorForArc(Arc arc) { | ||||||
|         RoadType type = arc.getInfo().getType(); |         RoadType type = arc.getRoadInformation().getType(); | ||||||
|         Color color = Color.BLACK; |         Color color = Color.BLACK; | ||||||
|         switch (type) { |         switch (type) { | ||||||
|         case MOTORWAY: |         case MOTORWAY: | ||||||
|  | @ -68,7 +68,7 @@ public class BasicGraphPalette implements GraphPalette { | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|     public int getWidthForArc(Arc arc) { |     public int getWidthForArc(Arc arc) { | ||||||
|         RoadType type = arc.getInfo().getType(); |         RoadType type = arc.getRoadInformation().getType(); | ||||||
|         int width = 1; |         int width = 1; | ||||||
|         switch (type) { |         switch (type) { | ||||||
|         case MOTORWAY: |         case MOTORWAY: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue