Skip to content

Commit

Permalink
Moving some helpers to their client classes + PreLauncher -> Preproce…
Browse files Browse the repository at this point in the history
…ssorLauncher
  • Loading branch information
keznikl committed Mar 5, 2013
1 parent c5d2a98 commit 5c4a877
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package cz.cuni.mff.d3s.deeco.invokable;
package cz.cuni.mff.d3s.deeco.processor;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
import cz.cuni.mff.d3s.deeco.annotations.DEECoStrongLocking;
import cz.cuni.mff.d3s.deeco.annotations.DEECoWeakLocking;
import cz.cuni.mff.d3s.deeco.annotations.ELockingMode;
import cz.cuni.mff.d3s.deeco.invokable.AnnotationHelper;
import cz.cuni.mff.d3s.deeco.invokable.SchedulableComponentProcess;
import cz.cuni.mff.d3s.deeco.invokable.creators.ParametrizedMethodCreator;
import cz.cuni.mff.d3s.deeco.invokable.creators.SchedulableComponentProcessCreator;
import cz.cuni.mff.d3s.deeco.knowledge.ComponentKnowledge;
import cz.cuni.mff.d3s.deeco.knowledge.KnowledgeManager;
import cz.cuni.mff.d3s.deeco.scheduling.ProcessPeriodicSchedule;
import cz.cuni.mff.d3s.deeco.scheduling.ProcessSchedule;
import cz.cuni.mff.d3s.deeco.scheduling.ScheduleHelper;

public class ComponentParser {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import cz.cuni.mff.d3s.deeco.annotations.DEECoEnsembleMembership;
import cz.cuni.mff.d3s.deeco.annotations.DEECoPeriodicScheduling;
import cz.cuni.mff.d3s.deeco.ensemble.Ensemble;
import cz.cuni.mff.d3s.deeco.invokable.AnnotationHelper;
import cz.cuni.mff.d3s.deeco.invokable.SchedulableEnsembleProcess;
import cz.cuni.mff.d3s.deeco.invokable.creators.BooleanMembershipCreator;
import cz.cuni.mff.d3s.deeco.invokable.creators.FuzzyMembershipCreator;
Expand All @@ -17,7 +16,6 @@
import cz.cuni.mff.d3s.deeco.knowledge.KnowledgeManager;
import cz.cuni.mff.d3s.deeco.scheduling.ProcessPeriodicSchedule;
import cz.cuni.mff.d3s.deeco.scheduling.ProcessSchedule;
import cz.cuni.mff.d3s.deeco.scheduling.ScheduleHelper;

public class EnsembleParser {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.List;

import cz.cuni.mff.d3s.deeco.exceptions.ComponentEnsembleParseException;
import cz.cuni.mff.d3s.deeco.invokable.AnnotationHelper;
import cz.cuni.mff.d3s.deeco.invokable.Parameter;
import cz.cuni.mff.d3s.deeco.knowledge.KPBuilder;
import cz.cuni.mff.d3s.deeco.path.grammar.KnowledgePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package cz.cuni.mff.d3s.deeco.scheduling;
package cz.cuni.mff.d3s.deeco.processor;

import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.List;

import cz.cuni.mff.d3s.deeco.annotations.DEECoPeriodicScheduling;
import cz.cuni.mff.d3s.deeco.annotations.DEECoTrigger;
import cz.cuni.mff.d3s.deeco.invokable.AnnotationHelper;
import cz.cuni.mff.d3s.deeco.invokable.Parameter;
import cz.cuni.mff.d3s.deeco.scheduling.ProcessPeriodicSchedule;
import cz.cuni.mff.d3s.deeco.scheduling.ProcessSchedule;
import cz.cuni.mff.d3s.deeco.scheduling.ProcessTriggeredSchedule;

/**
* Helper class for used for scheduling information retrieval.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @author Michal Kit
*
*/
public class PreLauncher {
public class PreprocessorLauncher {

/**
* Parses and serializes components and ensembles into a file.
Expand Down
4 changes: 2 additions & 2 deletions jdeeco-demo/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

<!-- run cloud demo under jpf -->
<target name="jpf-cloud">
<java fork="true" classname="cz.cuni.mff.d3s.deeco.runtime.PreLauncher" dir="${dist}">
<java fork="true" classname="cz.cuni.mff.d3s.deeco.runtime.PreprocessorLauncher" dir="${dist}">
<arg value="cloud.jar"/>
<classpath>
<pathelement location="${dist}/jdeeco.jar"/>
Expand All @@ -134,7 +134,7 @@

<!-- run convoy demo under jpf -->
<target name="jpf-convoy">
<java fork="true" classname="cz.cuni.mff.d3s.deeco.runtime.PreLauncher" dir="${dist}">
<java fork="true" classname="cz.cuni.mff.d3s.deeco.runtime.PreprocessorLauncher" dir="${dist}">
<arg value="convoy.jar"/>
<classpath>
<pathelement location="${dist}/jdeeco.jar"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import cz.cuni.mff.d3s.deeco.knowledge.local.LocalKnowledgeRepository;
import cz.cuni.mff.d3s.deeco.provider.AbstractDEECoObjectProvider;
import cz.cuni.mff.d3s.deeco.provider.PreLauncherDEECoObjectProvider;
import cz.cuni.mff.d3s.deeco.runtime.PreLauncher;
import cz.cuni.mff.d3s.deeco.runtime.PreprocessorLauncher;
import cz.cuni.mff.d3s.deeco.runtime.Runtime;
import cz.cuni.mff.d3s.deeco.scheduling.MultithreadedSchedulerJPF;
import cz.cuni.mff.d3s.deeco.scheduling.Scheduler;
Expand All @@ -22,7 +22,7 @@ public class LocalLauncherConvoyJPF {
* @param args
*/
public static void main(String[] args) {
//PreLauncher.main(args);
//PreprocessorLauncher.main(args);
KnowledgeManager km = new RepositoryKnowledgeManager(
new LocalKnowledgeRepository());
Scheduler scheduler = new MultithreadedSchedulerJPF();
Expand Down

0 comments on commit 5c4a877

Please sign in to comment.