Skip to content

Commit

Permalink
fixing failing build caused by errors in simulation project (obsolete
Browse files Browse the repository at this point in the history
now)
  • Loading branch information
iliasger committed Feb 14, 2015
1 parent 3787d14 commit 9754ccb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import cz.cuni.mff.d3s.deeco.network.AbstractHost;
import cz.cuni.mff.d3s.deeco.network.DataReceiver;
import cz.cuni.mff.d3s.deeco.network.DataSender;
import cz.cuni.mff.d3s.deeco.scheduler.CurrentTimeProvider;
import cz.cuni.mff.d3s.deeco.scheduler.notifier.CurrentTimeProvider;

public class DirectSimulationHost extends AbstractHost implements SimulationTimeEventListenerHolder {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cz.cuni.mff.d3s.deeco.simulation;

import cz.cuni.mff.d3s.deeco.scheduler.CurrentTimeProvider;
import cz.cuni.mff.d3s.deeco.scheduler.notifier.CurrentTimeProvider;

public abstract class Simulation implements CurrentTimeProvider,
CallbackProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static cz.cuni.mff.d3s.deeco.simulation.Simulation.secondsToMilliseconds;
import cz.cuni.mff.d3s.deeco.network.Host;
import cz.cuni.mff.d3s.deeco.network.NetworkProvider;
import cz.cuni.mff.d3s.deeco.scheduler.CurrentTimeProvider;
import cz.cuni.mff.d3s.deeco.scheduler.notifier.CurrentTimeProvider;
import cz.cuni.mff.d3s.deeco.simulation.SimulationTimeEventListener;
import cz.cuni.mff.d3s.deeco.simulation.SimulationTimeEventListenerHolder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,24 @@
import cz.cuni.mff.d3s.deeco.model.runtime.api.TimeTrigger;
import cz.cuni.mff.d3s.deeco.model.runtime.api.Trigger;
import cz.cuni.mff.d3s.deeco.network.AbstractHost;
import cz.cuni.mff.d3s.deeco.scheduler.CurrentTimeProvider;
import cz.cuni.mff.d3s.deeco.scheduler.Scheduler;
import cz.cuni.mff.d3s.deeco.scheduler.SchedulerEvent;
import cz.cuni.mff.d3s.deeco.scheduler.SchedulerNotifier;
import cz.cuni.mff.d3s.deeco.scheduler.notifier.CurrentTimeProvider;
import cz.cuni.mff.d3s.deeco.scheduler.notifier.SchedulerNotifier;
import cz.cuni.mff.d3s.deeco.simulation.CallbackProvider;
import cz.cuni.mff.d3s.deeco.simulation.SimulationTimeEventListener;
import cz.cuni.mff.d3s.deeco.task.Task;
import cz.cuni.mff.d3s.deeco.task.TaskTriggerListener;

/**
* TODO Remove this class, it is no more needed since we have a new scheduler in core.
*
* The {@link Scheduler} implementation designed for single threaded simulation.
* This scheduler is suppose to be driven by the simulation through
* {@link SimulationTimeEventListener} methods.
*
* @author Michal Kit <kit@d3s.mff.cuni.cz>
*
* TODO Remove this class, it is no more needed since we have a new scheduler in core.
*/
public class SimulationScheduler implements Scheduler,
SimulationTimeEventListener {
Expand Down Expand Up @@ -60,16 +61,6 @@ public AbstractHost getHost() {
return host;
}

@Override
public void start() {
registerNextExecution(true);
}

@Override
public void stop() {
Log.d("The simulation scheduler is stopped together with the simulation.");
}

@Override
public void addTask(Task task) {
if (task == null)
Expand Down Expand Up @@ -245,4 +236,10 @@ public boolean isRunning() {
// TODO Auto-generated method stub
return false;
}

@Override
public void setSchedulerNotifier(SchedulerNotifier schedulerNotifier) {
// TODO Auto-generated method stub

}
}

0 comments on commit 9754ccb

Please sign in to comment.