Skip to content

Commit

Permalink
mala poprawka
Browse files Browse the repository at this point in the history
  • Loading branch information
snakoneczny committed May 22, 2013
1 parent bfc361f commit 661624d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Code/Graph/CityGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public IEnumerable<MyEdge> getEdges()
/// Creating graph
/// </summary>
/// <param name="graphPath">Path of file containing graph</param>
public void createGraphFromXML(String graphPath)
private void createGraphFromXML(String graphPath)
{
int id = 0;
Dictionary<int, double> latitudeDic = new Dictionary<int, double>();
Expand Down Expand Up @@ -178,7 +178,7 @@ public void createGraphFromXML(String graphPath)
/// Link is the set of edges on which we got data from TSF
/// </summary>
/// <param name="sourcePath">Path of file containing links</param>
public void createLinksDictionary(String sourcePath)
private void createLinksDictionary(String sourcePath)
{
List<int> links = new List<int>(); // list of nodes from one link
string line; // one line of rebuild file
Expand Down Expand Up @@ -249,7 +249,8 @@ public void createLinksDictionary(String sourcePath)
/// Gets data from simulation data file, start simulation
/// </summary>
/// <param name="path">Simulation data file path</param>
public void startSimulation(String path)
/// <param name="beginningTime">Time on which simulation starts</param>
public void startSimulation(String path, int beginningTime)
{
// fields used to read simulation data file
String line;
Expand Down Expand Up @@ -308,7 +309,7 @@ public void startSimulation(String path)

simulationData = outList.ToArray();

ServerCore.Instance.serverConfiguration = new ServerConfiguration { simulation_start_minute = 1 };
ServerCore.Instance.serverConfiguration = new ServerConfiguration { simulation_start_minute = beginningTime };
ServerCore.Instance.getDaemon().Start();
}
catch (Exception e)
Expand Down

0 comments on commit 661624d

Please sign in to comment.