malawski / cloudworkflowsimulator

Other
24 stars 20 forks source link

Fixed checking whether vm is free when it is terminated #143

Closed aciepiela closed 8 years ago

aciepiela commented 8 years ago

Why? Because:

Exception in thread "main" java.lang.IllegalStateException: Attempted to determine whether terminated VM is free. Check for termination first.
    at cws.core.VM.isFree(VM.java:113)
    at cws.core.scheduler.WorkflowAndLocalityAwareEnsembleScheduler.scheduleJobsWithTheSamePriority(Unknown Source)
    at cws.core.scheduler.WorkflowAndLocalityAwareEnsembleScheduler.scheduleJobs(Unknown Source)
    at cws.core.WorkflowEngine.jobFinished(WorkflowEngine.java:197)
    at cws.core.WorkflowEngine.processEvent(WorkflowEngine.java:71)
    at cws.core.cloudsim.CWSSimEntity.processEvent(CWSSimEntity.java:56)
    at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
    at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:518)
    at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:882)
    at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:188)
    at cws.core.cloudsim.CloudSimWrapper.startSimulation(CloudSimWrapper.java:69)
    at cws.core.algorithms.DynamicAlgorithm.simulateInternal(DynamicAlgorithm.java:35)
    at cws.core.algorithms.Algorithm.simulate(Algorithm.java:53)
    at cws.core.simulation.Simulation.runTest(Simulation.java:425)
    at cws.core.simulation.Simulation.main(Simulation.java:224)

Imports reorder is due to the automatic formatter

pkoniu commented 8 years ago

OK. :shipit: