public class CHESSProfileManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANALYSIS_VIEW
The Constant ANALYSIS_VIEW.
|
static boolean |
ARE_VIEWS_LOADED
The are views loaded.
|
static java.lang.String |
CHESS_PROFILE
The Constant CHESS_PROFILE.
|
static java.lang.String |
CHESS_STRT
The Constant CHESS_STRT.
|
static java.util.HashSet<java.lang.String> |
CHESS_VIEWS_LIST
The Design View list.
|
static java.lang.String |
CHESSML_PATH
The pathmap url of the profile.
|
static java.lang.String |
COMPONENT_VIEW
The Constant COMPONENT_VIEW.
|
static java.lang.String |
COMPONENTMODEL_PROFILE
The Constant COMPONENTMODEL_PROFILE.
|
static java.util.ArrayList<java.lang.String> |
CONCURRENT_VIEWS
Views that may be simultaneously active on top of a view.
|
static java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
CONCURRENT_VIEWS_ASSOCIATION
The map from concrete views to concurrent views.
|
static java.util.ArrayList<java.lang.String> |
CONCURRENT_VIEWS_COMPONENT
The concurrent views of the component (functional) view.
|
static java.util.ArrayList<java.lang.String> |
CONCURRENT_VIEWS_DEPLOYMENT
The concurrent views of the deployment view.
|
static java.lang.String |
CORE_PROFILE
The Constant CORE_PROFILE.
|
static java.lang.String |
DEPENDABILITY_ANALYSIS_VIEW
The Constant DEPENDABILITY_ANALYSIS_VIEW.
|
static java.lang.String |
DEPENDABILITY_VIEW
The Constant DEPENDABILITY_VIEW.
|
static java.lang.String |
DEPLOYMENT_VIEW
The Constant DEPLOYMENT_VIEW.
|
static java.lang.String |
EXTRAFUNCTIONAL_VIEW
The Constant EXTRAFUNCTIONAL_VIEW.
|
static java.lang.String |
NULL_VIEW
The Constant NULL_VIEW.
|
static java.util.ArrayList<java.lang.String> |
PREDEFINED_PROFILES
The predefined profiles list.
|
static java.lang.String |
PSM_VIEW
The Constant PSM_VIEW.
|
static java.lang.String |
RAILWAY_VIEW
The Constant RAILWAY_VIEW.
|
static java.lang.String |
REQUIREMENT_VIEW
The Constant REQUIREMENT_VIEW.
|
static java.util.HashSet<java.lang.String> |
ROOT_VIEWS
The list of views applied to the root packages.
|
static java.lang.String |
RT_ANALYSIS_VIEW
The Constant RT_ANALYSIS_VIEW.
|
static java.util.ArrayList<java.lang.String> |
SUBVIEWS
Views that are inside other views.
|
static java.lang.String |
SYSTEM_VIEW
The Constant SYSTEM_VIEW.
|
static java.lang.String |
TIMING_DATAFLOW_VIEW
The Constant TIMING_DATAFLOW_VIEW.
|
static java.util.ArrayList<java.lang.String> |
UNUSED_VIEWS
List of views that reside in the CHESS profile but are not applied to the CHESS model.
|
static java.lang.String |
VIEWS_PROFILE
The Constant VIEWS_PROFILE.
|
Constructor and Description |
---|
CHESSProfileManager(org.eclipse.emf.ecore.resource.ResourceSet rs)
Creates the CHESS profile manager for the given resource set.
|
Modifier and Type | Method and Description |
---|---|
static org.eclipse.uml2.uml.Stereotype |
applyCH_HwBusStereotype(org.eclipse.uml2.uml.Element element)
Applies the CH_HwBus stereotype to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyCH_HwComputingResourceStereotype(org.eclipse.uml2.uml.Element element)
Apply the CH_HwComputingResource to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyCH_HwProcessorStereotype(org.eclipse.uml2.uml.Element element)
Apply the CH_HwProcessor to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyCHESSStereotype(org.eclipse.uml2.uml.Element element)
Applies the CHESS Stereotype to the element.
|
static org.eclipse.uml2.uml.Stereotype |
applyCHGaResourcePlatformStereotype(org.eclipse.uml2.uml.Package pack)
Applies the CHGaResourcePlatform stereotype to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyChRTPortSlotStereotype(org.eclipse.uml2.uml.InstanceSpecification element)
Applies the CHRtPortSlot stereotype to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyChRTPortSlotStereotype(org.eclipse.uml2.uml.Slot element)
Applies the CHRtPortSlot stereotype to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyFPTCPortSlotStereotype(org.eclipse.uml2.uml.Slot element)
Applies the FPTCPortSlot stereotype to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyMultiInstanceStereotype(org.eclipse.uml2.uml.InstanceSpecification element)
Applies the MultiInstance stereotype to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyMultiSlotStereotype(org.eclipse.uml2.uml.Slot element)
Applies the Propagation stereotype to the given element.
|
static org.eclipse.uml2.uml.Stereotype |
applyPropagationStereotype(org.eclipse.uml2.uml.InstanceSpecification element)
Applies the Propagation stereotype to the given element.
|
static void |
applyRecursively(org.eclipse.uml2.uml.Model model)
applies CHESS, VIEWS and CORE profile to the given CHESS Model.
|
static org.eclipse.uml2.uml.Stereotype |
applyViewStereotype(java.lang.String viewName,
org.eclipse.uml2.uml.Element element)
Apply view stereotype.
|
static void |
createModel(org.eclipse.uml2.uml.Model currentModel)
Initialize the given Model with the necessary elements in order to create a CHESS Model.
|
static void |
createViews(org.eclipse.uml2.uml.Model model)
Creates the concrete Design Views (packages) in the given model.
|
static org.eclipse.uml2.uml.Stereotype |
getCH_HWBus(org.eclipse.uml2.uml.Element element)
Returns the CH_HwBus stereotype of an element.
|
static org.eclipse.uml2.uml.Stereotype |
getCH_HWComputingResource(org.eclipse.uml2.uml.Element element)
Returns the CH_HwComputingResource stereotype of an element.
|
static org.eclipse.uml2.uml.Stereotype |
getCH_HWProcessor(org.eclipse.uml2.uml.Element element)
Returns the CH_HwProcessor stereotype of an element.
|
static org.eclipse.uml2.uml.Stereotype |
getCHRTSpecification(org.eclipse.uml2.uml.Element element)
Returns the CHRtSpecification stereotype of an element.
|
static org.eclipse.uml2.uml.Stereotype |
getComponentImplementation(org.eclipse.uml2.uml.Element element)
Returns the
ComponentImplementation stereotype of the given model elemment. |
static org.eclipse.uml2.uml.Stereotype |
getComponentType(org.eclipse.uml2.uml.Element element)
Returns the
ComponentType stereotype of the given model elemment. |
static org.eclipse.uml2.uml.Stereotype |
getFI4FASpecification(org.eclipse.uml2.uml.Element element)
Returns the FPTCSpecification stereotype of an element.
|
static org.eclipse.uml2.uml.Stereotype |
getFPTCSpecification(org.eclipse.uml2.uml.Element element)
Returns the FPTCSpecification stereotype of an element.
|
static org.eclipse.uml2.uml.Package |
getView(org.eclipse.uml2.uml.Model model,
java.lang.String view)
Deprecated.
|
static org.eclipse.uml2.uml.Package |
getViewByStereotype(org.eclipse.uml2.uml.Model model,
java.lang.String view)
Gets the view by stereotype.
|
static org.eclipse.uml2.uml.Stereotype |
getViewStereotype(org.eclipse.uml2.uml.Element element,
java.lang.String viewName)
Gets the view stereotype.
|
static void |
initializeProfileList(org.eclipse.uml2.uml.Profile CHESSProfile)
Populates the profile list.
|
static void |
initializeViewList(org.eclipse.uml2.uml.Profile viewsProfile)
Populates the static Design View list.
|
static void |
loadCHESSProfile(org.eclipse.emf.ecore.resource.ResourceSet rs)
Load the Design View list for the given ResourceSet.
|
static void |
loadExternalProfiles(org.eclipse.emf.ecore.resource.ResourceSet rs)
Loads the profiles for the given resource set.
|
static java.lang.String |
viewName(org.eclipse.uml2.uml.Model model,
java.lang.String name)
Deprecated.
Not safe to retrieve views based on the model name
|
public static final java.lang.String COMPONENT_VIEW
public static final java.lang.String EXTRAFUNCTIONAL_VIEW
public static final java.lang.String DEPLOYMENT_VIEW
public static final java.lang.String ANALYSIS_VIEW
public static final java.lang.String DEPENDABILITY_ANALYSIS_VIEW
public static final java.lang.String RT_ANALYSIS_VIEW
public static final java.lang.String PSM_VIEW
public static final java.lang.String TIMING_DATAFLOW_VIEW
public static final java.lang.String REQUIREMENT_VIEW
public static final java.lang.String DEPENDABILITY_VIEW
public static final java.lang.String SYSTEM_VIEW
public static final java.lang.String RAILWAY_VIEW
public static final java.lang.String NULL_VIEW
public static final java.util.ArrayList<java.lang.String> UNUSED_VIEWS
public static final java.util.ArrayList<java.lang.String> CONCURRENT_VIEWS
public static final java.util.ArrayList<java.lang.String> SUBVIEWS
public static final java.util.ArrayList<java.lang.String> CONCURRENT_VIEWS_COMPONENT
public static final java.util.ArrayList<java.lang.String> CONCURRENT_VIEWS_DEPLOYMENT
public static final java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> CONCURRENT_VIEWS_ASSOCIATION
public static final java.lang.String CHESS_PROFILE
public static final java.lang.String CORE_PROFILE
public static final java.lang.String VIEWS_PROFILE
public static final java.lang.String COMPONENTMODEL_PROFILE
public static final java.lang.String CHESS_STRT
public static java.util.HashSet<java.lang.String> CHESS_VIEWS_LIST
public static java.util.HashSet<java.lang.String> ROOT_VIEWS
public static java.util.ArrayList<java.lang.String> PREDEFINED_PROFILES
public static final java.lang.String CHESSML_PATH
public static boolean ARE_VIEWS_LOADED
public CHESSProfileManager(org.eclipse.emf.ecore.resource.ResourceSet rs)
rs
- the resource setpublic static org.eclipse.uml2.uml.Stereotype applyCH_HwBusStereotype(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype applyCHGaResourcePlatformStereotype(org.eclipse.uml2.uml.Package pack)
pack
- the packpublic static org.eclipse.uml2.uml.Stereotype applyChRTPortSlotStereotype(org.eclipse.uml2.uml.Slot element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype applyChRTPortSlotStereotype(org.eclipse.uml2.uml.InstanceSpecification element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype applyFPTCPortSlotStereotype(org.eclipse.uml2.uml.Slot element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype applyMultiInstanceStereotype(org.eclipse.uml2.uml.InstanceSpecification element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype applyMultiSlotStereotype(org.eclipse.uml2.uml.Slot element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype applyPropagationStereotype(org.eclipse.uml2.uml.InstanceSpecification element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype getCH_HWBus(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype getCH_HWComputingResource(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype getCH_HWProcessor(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype getCHRTSpecification(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype getFI4FASpecification(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype getFPTCSpecification(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static void initializeProfileList(org.eclipse.uml2.uml.Profile CHESSProfile)
CHESSProfile
- the CHESS profilepublic static void initializeViewList(org.eclipse.uml2.uml.Profile viewsProfile)
viewsProfile
- the profile containing the viewspublic static org.eclipse.uml2.uml.Stereotype applyCH_HwComputingResourceStereotype(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype applyCH_HwProcessorStereotype(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static org.eclipse.uml2.uml.Stereotype applyCHESSStereotype(org.eclipse.uml2.uml.Element element)
element
- the elementpublic static void applyRecursively(org.eclipse.uml2.uml.Model model)
model
- the modelpublic static org.eclipse.uml2.uml.Stereotype applyViewStereotype(java.lang.String viewName, org.eclipse.uml2.uml.Element element)
viewName
- the view nameelement
- the elementpublic static org.eclipse.uml2.uml.Stereotype getViewStereotype(org.eclipse.uml2.uml.Element element, java.lang.String viewName)
element
- the elementviewName
- the view name@Deprecated public static java.lang.String viewName(org.eclipse.uml2.uml.Model model, java.lang.String name)
model
- the modelname
- the namepublic static void createViews(org.eclipse.uml2.uml.Model model)
model
- the modelpublic static org.eclipse.uml2.uml.Stereotype getComponentImplementation(org.eclipse.uml2.uml.Element element)
ComponentImplementation
stereotype of the given model elemment.element
- the elementComponentImplementation
stereotypepublic static org.eclipse.uml2.uml.Stereotype getComponentType(org.eclipse.uml2.uml.Element element)
ComponentType
stereotype of the given model elemment.element
- the elementComponentType
stereotypepublic static void loadExternalProfiles(org.eclipse.emf.ecore.resource.ResourceSet rs)
rs
- the resource set.public static void loadCHESSProfile(org.eclipse.emf.ecore.resource.ResourceSet rs)
rs
- the resource setpublic static void createModel(org.eclipse.uml2.uml.Model currentModel)
currentModel
- the model@Deprecated public static org.eclipse.uml2.uml.Package getView(org.eclipse.uml2.uml.Model model, java.lang.String view)
model
- the modelview
- the viewpublic static org.eclipse.uml2.uml.Package getViewByStereotype(org.eclipse.uml2.uml.Model model, java.lang.String view)
model
- the modelview
- the view