-
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.
Merge branch 'newgen' into newgen-iliasg
- Loading branch information
Showing
15 changed files
with
1,228 additions
and
294 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
33 changes: 33 additions & 0 deletions
33
jdeeco-core/src/cz/cuni/mff/d3s/deeco/model/runtime/custom/KnowledgeChangeTriggerExt.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package cz.cuni.mff.d3s.deeco.model.runtime.custom; | ||
|
||
import cz.cuni.mff.d3s.deeco.model.runtime.api.KnowledgeChangeTrigger; | ||
import cz.cuni.mff.d3s.deeco.model.runtime.impl.KnowledgeChangeTriggerImpl; | ||
|
||
/** | ||
* @author Tomas Bures <bures@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public class KnowledgeChangeTriggerExt extends KnowledgeChangeTriggerImpl { | ||
|
||
public KnowledgeChangeTriggerExt() { | ||
super(); | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see java.lang.Object#equals(java.lang.Object) | ||
*/ | ||
@Override | ||
public boolean equals(Object that) { | ||
if (that != null && that instanceof KnowledgeChangeTrigger) { | ||
return getKnowledgePath().equals(((KnowledgeChangeTrigger)that).getKnowledgePath()); | ||
} | ||
return false; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return getKnowledgePath().hashCode(); | ||
} | ||
} |
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
31 changes: 31 additions & 0 deletions
31
jdeeco-core/src/cz/cuni/mff/d3s/deeco/model/runtime/custom/PathNodeCoordinatorExt.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package cz.cuni.mff.d3s.deeco.model.runtime.custom; | ||
|
||
import cz.cuni.mff.d3s.deeco.model.runtime.api.PathNodeCoordinator; | ||
import cz.cuni.mff.d3s.deeco.model.runtime.impl.PathNodeCoordinatorImpl; | ||
|
||
/** | ||
* @author Tomas Bures <bures@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public class PathNodeCoordinatorExt extends PathNodeCoordinatorImpl { | ||
|
||
public PathNodeCoordinatorExt() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object that) { | ||
return that != null && that instanceof PathNodeCoordinator; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return 3872467; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "<COORDINATOR>"; | ||
} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
jdeeco-core/src/cz/cuni/mff/d3s/deeco/model/runtime/custom/PathNodeFieldExt.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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package cz.cuni.mff.d3s.deeco.model.runtime.custom; | ||
|
||
import cz.cuni.mff.d3s.deeco.model.runtime.api.PathNodeField; | ||
import cz.cuni.mff.d3s.deeco.model.runtime.impl.PathNodeFieldImpl; | ||
|
||
/** | ||
* @author Michal Kit <kit@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public class PathNodeFieldExt extends PathNodeFieldImpl { | ||
|
||
public PathNodeFieldExt() { | ||
super(); | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see java.lang.Object#equals(java.lang.Object) | ||
*/ | ||
@Override | ||
public boolean equals(Object that) { | ||
if (that != null && that instanceof PathNodeField) { | ||
return ((PathNodeField) that).getName().equals(getName()); | ||
} | ||
return false; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return getName().hashCode(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getName(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
jdeeco-core/src/cz/cuni/mff/d3s/deeco/model/runtime/custom/PathNodeMemberExt.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package cz.cuni.mff.d3s.deeco.model.runtime.custom; | ||
|
||
import cz.cuni.mff.d3s.deeco.model.runtime.api.PathNodeMember; | ||
import cz.cuni.mff.d3s.deeco.model.runtime.impl.PathNodeMemberImpl; | ||
|
||
/** | ||
* @author Tomas Bures <bures@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public class PathNodeMemberExt extends PathNodeMemberImpl { | ||
|
||
public PathNodeMemberExt() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object that) { | ||
return that != null && that instanceof PathNodeMember; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return 1847356; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "<MEMBER>"; | ||
} | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
jdeeco-core/src/cz/cuni/mff/d3s/deeco/model/runtime/custom/PeriodicTriggerExt.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package cz.cuni.mff.d3s.deeco.model.runtime.custom; | ||
|
||
import cz.cuni.mff.d3s.deeco.model.runtime.api.PeriodicTrigger; | ||
import cz.cuni.mff.d3s.deeco.model.runtime.impl.PeriodicTriggerImpl; | ||
|
||
/** | ||
* @author Tomas Bures <bures@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public class PeriodicTriggerExt extends PeriodicTriggerImpl { | ||
|
||
public PeriodicTriggerExt() { | ||
super(); | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see java.lang.Object#equals(java.lang.Object) | ||
*/ | ||
@Override | ||
public boolean equals(Object that) { | ||
if (that != null && that instanceof PeriodicTrigger) { | ||
return getPeriod() == ((PeriodicTrigger)that).getPeriod(); | ||
} | ||
return false; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return (int)getPeriod(); | ||
} | ||
} |
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
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); | ||
|
||
} |
Oops, something went wrong.