當前位置: 首頁>>代碼示例>>Java>>正文


Java ExecutionMode類代碼示例

本文整理匯總了Java中org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode的典型用法代碼示例。如果您正苦於以下問題:Java ExecutionMode類的具體用法?Java ExecutionMode怎麽用?Java ExecutionMode使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ExecutionMode類屬於org.eclipse.gemoc.xdsmlframework.api.core包,在下文中一共展示了ExecutionMode類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: engineSelectionChanged

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
@Override
public void engineSelectionChanged(IExecutionEngine engine) 
{
	_currentSelectedEngine = engine;
	
	if (_currentSelectedEngine == null)
	{
		setEnabled(false);			
	}
	else
	{
		setEnabled(
				!_currentSelectedEngine.getRunningStatus().equals(RunStatus.Stopped)
				&& _currentSelectedEngine.getExecutionContext().getExecutionMode().equals(ExecutionMode.Animation));
					
	}
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:18,代碼來源:AbstractEngineAction.java

示例2: createAndLaunchConfiguration

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
private ILaunch createAndLaunchConfiguration(ExecutionMode executionMode,
		IProgressMonitor monitor, URI launchURI) {
	ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
	String launchPathName = launchURI.toPlatformString(true);
	String tmpProjectName = launchPathName.substring(1, launchPathName.length());
	String projectName = tmpProjectName.substring(0, tmpProjectName.indexOf('/'));
	IProject launchProject = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
	IFile launchFile = launchProject.getFile(launchPathName.replaceFirst("/"+projectName+"/", ""));
	ILaunchConfiguration launch = manager.getLaunchConfiguration(launchFile);
	try {
		ILaunch startedLaunch = launch.launch(ILaunchManager.DEBUG_MODE, monitor);
		return startedLaunch;
	} catch (CoreException e) {
		e.printStackTrace();
	}
	return null;
}
 
開發者ID:gemoc,項目名稱:coordination,代碼行數:18,代碼來源:CoordinatedModelExecutionContext.java

示例3: createExecutionEngine

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
@Override
protected IExecutionEngine createExecutionEngine(RunConfiguration runConfiguration, ExecutionMode executionMode)
		throws CoreException, EngineContextException {
	// create and initialize engine
	IExecutionEngine executionEngine = new PlainK3ExecutionEngine();
	ModelExecutionContext executioncontext = new SequentialModelExecutionContext(runConfiguration, executionMode);
	executioncontext.getExecutionPlatform().getModelLoader().setProgressMonitor(this.launchProgressMonitor);
	executioncontext.initializeResourceModel();
	executionEngine.initialize(executioncontext);
	return executionEngine;
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:12,代碼來源:Launcher.java

示例4: canDisplayTimeline

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
private boolean canDisplayTimeline(IExecutionEngine engine) {
	if (engine.getExecutionContext().getExecutionMode().equals(ExecutionMode.Run)
			&& engine.getRunningStatus().equals(RunStatus.Stopped)) {
		return true;
	}
	if (engine.getExecutionContext().getExecutionMode().equals(ExecutionMode.Animation)) {
		return true;
	}
	return false;
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:11,代碼來源:MultidimensionalTimelineViewPart.java

示例5: prepareEngine

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
public void prepareEngine(BenchmarkRunConfiguration runConf) throws CoreException, EngineContextException {
	ExecutionMode executionMode = ExecutionMode.Run;
	executionContext = new SequentialModelExecutionContext(runConf, executionMode);
	executionContext.initializeResourceModel();
	_executionEngine = new PlainK3ExecutionEngine();
	_executionEngine.initialize(executionContext);
	_executionEngine.stopOnAddonError = true;
}
 
開發者ID:SiriusLab,項目名稱:ModelDebugging,代碼行數:9,代碼來源:EngineHelper.java

示例6: SequentialModelExecutionContext

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
public SequentialModelExecutionContext(IRunConfiguration runConfiguration, ExecutionMode executionMode)
		throws EngineContextException
{
	super(runConfiguration, executionMode);
	
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:7,代碼來源:SequentialModelExecutionContext.java

示例7: createExecutionEngine

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
protected abstract IExecutionEngine createExecutionEngine(RunConfiguration runConfiguration,
ExecutionMode executionMode) throws CoreException, EngineContextException;
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:3,代碼來源:AbstractSequentialGemocLauncher.java

示例8: getExecutionMode

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
@Override
public ExecutionMode getExecutionMode() {
	return _executionMode;
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:5,代碼來源:ModelExecutionContext.java

示例9: getExecutionMode

import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
@Override
public ExecutionMode getExecutionMode()
{
	return _executionMode;
}
 
開發者ID:gemoc,項目名稱:coordination,代碼行數:6,代碼來源:CoordinatedModelExecutionContext.java


注:本文中的org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。