-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SingleThreadedScheduler impl and test
- Loading branch information
Showing
6 changed files
with
352 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 23 additions & 23 deletions
46
jdeeco-core/src/cz/cuni/mff/d3s/deeco/scheduler/Scheduler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
package cz.cuni.mff.d3s.deeco.scheduler; | ||
|
||
import cz.cuni.mff.d3s.deeco.executor.ExecutionListener; | ||
import cz.cuni.mff.d3s.deeco.executor.Executor; | ||
import cz.cuni.mff.d3s.deeco.task.Task; | ||
|
||
|
||
/** | ||
* Interface Scheduler for LocalTimeScheduler(and others if needed) | ||
* | ||
* @author Andranik Muradyan <muradian@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public interface Scheduler extends ExecutionListener { | ||
public void start(); | ||
public void stop(); | ||
public void addTask( Task task ); | ||
public void removeTask( Task task ); | ||
|
||
public void executionFailed(Task task, Exception e); | ||
public void executionCompleted( Task task ); | ||
public void setExecutor(Executor executor); | ||
|
||
package cz.cuni.mff.d3s.deeco.scheduler; | ||
|
||
import cz.cuni.mff.d3s.deeco.executor.ExecutionListener; | ||
import cz.cuni.mff.d3s.deeco.executor.Executor; | ||
import cz.cuni.mff.d3s.deeco.task.Task; | ||
|
||
|
||
/** | ||
* Interface Scheduler for LocalTimeScheduler(and others if needed) | ||
* | ||
* @author Andranik Muradyan <muradian@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public interface Scheduler extends ExecutionListener { | ||
public void start(); | ||
public void stop(); | ||
public void addTask( Task task ); | ||
public void removeTask( Task task ); | ||
|
||
public void executionFailed(Task task, Exception e); | ||
public void executionCompleted( Task task ); | ||
public void setExecutor(Executor executor); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.