Skip to content

Commit

Permalink
Poprawa kolorowania
Browse files Browse the repository at this point in the history
  • Loading branch information
snakoneczny committed May 21, 2013
1 parent b530bea commit 23e7f4e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Code/Graph/CityGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ public class CityGraph
private Dictionary<int, List<int>> linksDictionary = new Dictionary<int, List<int>>();

/// <summary>
/// Dictionary of edges and their weights based on current data and predictions
/// Dictionary of edges and their weights based on current data, predictions and length of edge
/// </summary>
private Dictionary<MyEdge, double> weightsWithPredictions = new Dictionary<MyEdge, double>();

/// <summary>
/// Dictionary of edges and their velocities based on current data and predictions
/// </summary>
private Dictionary<MyEdge, double> velocities = new Dictionary<MyEdge, double>();

/// <summary>
/// Streams to read file with simulation data
/// </summary>
Expand Down Expand Up @@ -354,6 +359,7 @@ public void updateSimulationData()
{
// value is based on velocity and edge distance
weightsWithPredictions[e] = value / e.distance;
velocities[e] = value;
break;
}
}
Expand All @@ -368,12 +374,12 @@ public void updateSimulationData()
}

/// <summary>
/// Getter for weightsWithPredictions
/// Getter for velocities
/// </summary>
/// <returns>edge values</returns>
public Dictionary<MyEdge, double> getEdgeValues()
/// <returns>edge velocity</returns>
public Dictionary<MyEdge, double> getVelocities()
{
return weightsWithPredictions;
return velocities;
}

/// <summary>
Expand Down

0 comments on commit 23e7f4e

Please sign in to comment.