public abstract class AbstractTransformation
extends java.lang.Object
Constructor and Description |
---|
AbstractTransformation()
Instantiates a new abstract transformation.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getConfigProperty()
Gets the config property.
|
java.lang.String |
getFolder()
Gets the folder.
|
java.lang.String |
getPsmPackageName()
Gets the PSM package name.
|
org.eclipse.core.resources.IFile |
performPIM2PSMtransformation(org.eclipse.papyrus.editor.PapyrusMultiDiagramEditor editor,
org.eclipse.core.resources.IFile modelFile,
org.eclipse.core.runtime.IProgressMonitor monitor,
boolean replaceFile)
Executes the PIM to PSM transformation, calculating ceiling priorities for shared resources.
|
TransformationResultsData |
performTimingAnalysisWithMAST(org.eclipse.papyrus.editor.PapyrusMultiDiagramEditor editor,
org.eclipse.core.resources.IFile modelFile,
org.eclipse.core.runtime.IProgressMonitor monitor)
Execute the various steps of the transformations PIM->PSM->MAST, then runs MAST and execute back propagation of analysis result
The transformations are executed on a copy of the current model; if the process completes successfully then the transformed model
becomes the current one.
|
void |
setConfigProperty(java.util.Map<java.lang.String,java.lang.String> configProperty)
Sets the config property.
|
void |
setFolder(java.lang.String newFolder)
Sets the folder.
|
void |
setPsmPackageName(java.lang.String psmPackageName)
Sets the PSM package name.
|
public AbstractTransformation()
public java.lang.String getFolder()
public void setFolder(java.lang.String newFolder)
newFolder
- the new folderpublic java.util.Map<java.lang.String,java.lang.String> getConfigProperty()
public void setConfigProperty(java.util.Map<java.lang.String,java.lang.String> configProperty)
configProperty
- the config propertypublic java.lang.String getPsmPackageName()
public void setPsmPackageName(java.lang.String psmPackageName)
psmPackageName
- the new PSM package namepublic TransformationResultsData performTimingAnalysisWithMAST(org.eclipse.papyrus.editor.PapyrusMultiDiagramEditor editor, org.eclipse.core.resources.IFile modelFile, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.Exception
editor
- the editormodelFile
- the model filemonitor
- the monitorjava.lang.Exception
- the exception#prepareModel(IFile)}
,
org.polarsys.chess.m2m.transformations.QVToTransformation#launchRemoveMultiInstance(IFile, IProgressMonitor)}
,
org.polarsys.chess.m2m.transformations.QVToTransformation#launchCeilingAssignment(IFile, IProgressMonitor)}
,
org.polarsys.chess.m2m.transformations.QVToTransformation#launchBuildMultiInstance(IFile, IProgressMonitor)}
,
#launchPIM2PSMtransformation(IProgressMonitor, IFile)}
,
#launchMarte2MastTrasformation(IProgressMonitor, IFile, PapyrusMultiDiagramEditor)}
public org.eclipse.core.resources.IFile performPIM2PSMtransformation(org.eclipse.papyrus.editor.PapyrusMultiDiagramEditor editor, org.eclipse.core.resources.IFile modelFile, org.eclipse.core.runtime.IProgressMonitor monitor, boolean replaceFile) throws java.lang.Exception
editor
- the editormodelFile
- the input model file for a new PSM package inthe PSM view has to be generatedmonitor
- the monitorreplaceFile
- if true, then the given modelFile is replaced with the content of the transformed modelFilejava.lang.Exception
- the exception