diff --git a/demos/AoModel.rb b/demos/AoModel.rb index 4dfef4ea4b3237b50fe8495898a54c33e877612d..ed101acf5fec39000af54989f586dba331f6ad94 100644 --- a/demos/AoModel.rb +++ b/demos/AoModel.rb @@ -126,7 +126,7 @@ if (ARGV.length != 6) STDERR.puts "\tMaintenance cycle length (int)" STDERR.puts "\tMean repair time (double)" STDERR.puts "\tNumber of days to run (int)" - STDERR.puts "\nExample: ruby AoModel.rb 50 2 0.01 90 3.0 50\n" + STDERR.puts "\nExample: ruby #{File.basename($0)} 50 2 0.01 90 3.0 50\n" else maxJeeps = ARGV[0].to_i maxMaintainers = ARGV[1].to_i @@ -134,7 +134,6 @@ else maintenanceCycleInDays = ARGV[3].to_i meanRepairTime = ARGV[4].to_f haltTimeInDays = ARGV[5].to_i - # Simulation.run(new AoModel(50, 2, 0.01, 90, 3.0, 8.0 * haltTimeInDays)) AoModel.new(maxJeeps, maxMaintainers, breakdownRate, maintenanceCycleInDays, meanRepairTime, 8.0 * haltTimeInDays).run end