From: <mar...@us...> - 2007-10-17 01:14:29
|
Revision: 71 http://gridsim.svn.sourceforge.net/gridsim/?rev=71&view=rev Author: marcos_dias Date: 2007-10-16 18:14:31 -0700 (Tue, 16 Oct 2007) Log Message: ----------- This update is only to clear the lists and tables created by the allocation policies. I want to implement restart of a simulation and this will be required. Modified Paths: -------------- branches/gridsim4.0-branch3/examples/examples/workload/parallel/TurboExample01.java branches/gridsim4.0-branch3/source/gridsim/turbo/ARParallelSpaceShared.java branches/gridsim4.0-branch3/source/gridsim/turbo/ParallelSpaceShared.java branches/gridsim4.0-branch3/source/gridsim/turbo/ReservationRequester.java branches/gridsim4.0-branch3/source/gridsim/turbo/SSReservation.java Modified: branches/gridsim4.0-branch3/examples/examples/workload/parallel/TurboExample01.java =================================================================== --- branches/gridsim4.0-branch3/examples/examples/workload/parallel/TurboExample01.java 2007-10-16 07:12:49 UTC (rev 70) +++ branches/gridsim4.0-branch3/examples/examples/workload/parallel/TurboExample01.java 2007-10-17 01:14:31 UTC (rev 71) @@ -85,10 +85,10 @@ ////////////////////////////////////////// // Starts the simulation in debug mode -// GridSim.startGridSimulation(true); + GridSim.startGridSimulation(true); // Start the simulation in normal mode - GridSim.startGridSimulation(); +// GridSim.startGridSimulation(); ////////////////////////////////////////// // Final step: Prints the Gridlets when simulation is over Modified: branches/gridsim4.0-branch3/source/gridsim/turbo/ARParallelSpaceShared.java =================================================================== --- branches/gridsim4.0-branch3/source/gridsim/turbo/ARParallelSpaceShared.java 2007-10-16 07:12:49 UTC (rev 70) +++ branches/gridsim4.0-branch3/source/gridsim/turbo/ARParallelSpaceShared.java 2007-10-17 01:14:31 UTC (rev 71) @@ -276,6 +276,13 @@ System.out.println(super.get_name() + ".body(): ignore internal events"); } + + queuedGridlets_.clear(); + runningGridlets_.clear(); + orderStartTime_ = null; + reservTable_.clear(); + expiryTable_.clear(); + availProfile_.clear(); } //---------------- RESERVATION RELATED PUBLIC METHODS --------------------- Modified: branches/gridsim4.0-branch3/source/gridsim/turbo/ParallelSpaceShared.java =================================================================== --- branches/gridsim4.0-branch3/source/gridsim/turbo/ParallelSpaceShared.java 2007-10-16 07:12:49 UTC (rev 70) +++ branches/gridsim4.0-branch3/source/gridsim/turbo/ParallelSpaceShared.java 2007-10-17 01:14:31 UTC (rev 71) @@ -196,6 +196,11 @@ super.sim_get_next(ev); System.out.println(super.get_name() + ".body(): ignore internal events"); } + + queuedGridlets_.clear(); + runningGridlets_.clear(); + orderStartTime_ = null; + availProfile_.clear(); } /** Modified: branches/gridsim4.0-branch3/source/gridsim/turbo/ReservationRequester.java =================================================================== --- branches/gridsim4.0-branch3/source/gridsim/turbo/ReservationRequester.java 2007-10-16 07:12:49 UTC (rev 70) +++ branches/gridsim4.0-branch3/source/gridsim/turbo/ReservationRequester.java 2007-10-17 01:14:31 UTC (rev 71) @@ -13,7 +13,6 @@ import gridsim.GridSimTags; import gridsim.net.Link; -import java.util.ArrayList; import java.util.Calendar; import java.util.HashMap; Modified: branches/gridsim4.0-branch3/source/gridsim/turbo/SSReservation.java =================================================================== --- branches/gridsim4.0-branch3/source/gridsim/turbo/SSReservation.java 2007-10-16 07:12:49 UTC (rev 70) +++ branches/gridsim4.0-branch3/source/gridsim/turbo/SSReservation.java 2007-10-17 01:14:31 UTC (rev 71) @@ -23,7 +23,7 @@ * @since GridSim Turbo Alpha 0.1 */ -public class SSReservation implements ScheduleItem{ +public class SSReservation implements ScheduleItem { // the Reservation that this SSReservation represents private Reservation reservation_; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |