public class AnalysisResultUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHECK_TYPE |
static java.lang.String |
PROPERTY |
static java.lang.String |
SELECTED_COMPONENTS |
static java.lang.String |
SELECTED_PROPERTIES |
Constructor and Description |
---|
AnalysisResultUtil() |
Modifier and Type | Method and Description |
---|---|
boolean |
createOrUpdateAnalysisContext(org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.Analysis type,
org.eclipse.emf.common.util.EList<java.lang.String> conditions,
java.lang.String resultFilePath,
boolean storeResultFilePath,
org.eclipse.uml2.uml.Class rootComponent,
org.polarsys.chess.chessmlprofile.ParameterizedArchitecture.InstantiatedArchitectureConfiguration instantiatedArchitecture,
org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.AnalysisContextElement analysisContext)
Creates a ResultElement and store the given result.
|
org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.AnalysisContextElement |
getAnalysisContextElementFromUmlElement(org.eclipse.uml2.uml.Element element)
Returns the ResultElement application from a given UML element.
|
java.util.List<org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.AnalysisContextElement> |
getAnalysisContexts(org.eclipse.uml2.uml.Class element,
org.polarsys.chess.chessmlprofile.ParameterizedArchitecture.InstantiatedArchitectureConfiguration instantiatedArchitecture,
org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.Analysis analysisType,
org.eclipse.uml2.uml.Model model) |
org.eclipse.uml2.uml.Package |
getDependabilityView()
Returns the requested view, starting from the UML model.
|
org.eclipse.uml2.uml.Package |
getDependabilityViewFromPackage(org.eclipse.uml2.uml.Package pkg)
Returns the requested view starting from the given package.
|
static AnalysisResultUtil |
getInstance() |
java.lang.String |
getPackageName(org.eclipse.uml2.uml.Package pkg)
Return a kind of qualified name for the given package.
|
java.lang.String |
getResultDir()
Returns the directory where validation result files are stored.
|
org.eclipse.uml2.uml.Class |
getSystemComponentFromEvent(org.eclipse.core.commands.ExecutionEvent event)
Gets the System component from the selected event, if any.
|
void |
showResult(java.lang.String functionName,
java.lang.String fileName)
Shows the result of the given function, reading data from the given file.
|
public static final java.lang.String PROPERTY
public static final java.lang.String CHECK_TYPE
public static final java.lang.String SELECTED_PROPERTIES
public static final java.lang.String SELECTED_COMPONENTS
public static AnalysisResultUtil getInstance()
public org.eclipse.uml2.uml.Package getDependabilityView()
public org.eclipse.uml2.uml.Package getDependabilityViewFromPackage(org.eclipse.uml2.uml.Package pkg)
pkg
- the package from which go up and find the wiewpublic org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.AnalysisContextElement getAnalysisContextElementFromUmlElement(org.eclipse.uml2.uml.Element element)
element
- the element containing the appplication, if anypublic java.lang.String getPackageName(org.eclipse.uml2.uml.Package pkg)
pkg
- the packagepublic boolean createOrUpdateAnalysisContext(org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.Analysis type, org.eclipse.emf.common.util.EList<java.lang.String> conditions, java.lang.String resultFilePath, boolean storeResultFilePath, org.eclipse.uml2.uml.Class rootComponent, org.polarsys.chess.chessmlprofile.ParameterizedArchitecture.InstantiatedArchitectureConfiguration instantiatedArchitecture, org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.AnalysisContextElement analysisContext)
type
- the type of the analysisconditions
- the specified conditionsfilePath
- the path of the result filerootComponent
- the root component of the architectureanalysisContext
- the context analysis used to run the checkpublic org.eclipse.uml2.uml.Class getSystemComponentFromEvent(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
event
- the eventorg.eclipse.core.commands.ExecutionException
public java.lang.String getResultDir()
public void showResult(java.lang.String functionName, java.lang.String fileName)
functionName
- the name of the function used to obtain the resultfileName
- the file containing the data to visualizepublic java.util.List<org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.AnalysisContextElement> getAnalysisContexts(org.eclipse.uml2.uml.Class element, org.polarsys.chess.chessmlprofile.ParameterizedArchitecture.InstantiatedArchitectureConfiguration instantiatedArchitecture, org.polarsys.chess.chessmlprofile.Dependability.DependableComponent.Analysis analysisType, org.eclipse.uml2.uml.Model model)