edu.cmu.sei.aadl.instance
Class CreateEndToEndFlowsSwitch
java.lang.Object
edu.cmu.sei.aadl.model.util.ForAllAObject
edu.cmu.sei.aadl.model.util.AadlProcessingSwitch
edu.cmu.sei.aadl.model.util.AadlProcessingSwitchWithProgress
edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch
public class CreateEndToEndFlowsSwitch
- extends AadlProcessingSwitchWithProgress
Fields inherited from class edu.cmu.sei.aadl.model.util.AadlProcessingSwitch |
componentSwitch, connectionSwitch, copyright, coreSwitch, DONE, featureSwitch, flowSwitch, INSTANCE, instanceSwitch, NOT_DONE, propertySwitch, self |
Method Summary |
protected void |
addFlowStepInstance(EndToEndFlowInstance etei,
ComponentInstance ci,
FlowSpec fs)
add a component instance/flowspec instance to the end to end flow instance
if there is a previous such pair, first find and add the connection instance |
protected void |
createEndToEndFlowInstance(ComponentInstance ci,
EndToEndFlow ete)
|
protected void |
doProcessFlowImpl(EndToEndFlowInstance etei,
ComponentInstance ci,
FlowImpl fsq)
instantiate a flow implementation by recursively processing its flow specifications |
protected void |
doProcessFlowSpec(EndToEndFlowInstance etei,
ComponentInstance ci,
FlowSpec fs)
instantiate a flow specification by recursively following its implementation until a leaf element is reached
In case of a leaf element add it as a flow step |
protected void |
fillinModes(EndToEndFlowInstance etei)
|
protected org.eclipse.emf.common.util.EList |
getModeInstances(ComponentInstance ci,
org.eclipse.emf.common.util.EList mlist)
build mode instance list from mode list relaive to the component instance ci |
protected void |
initSwitches()
Subclasses override this method to set the switch fields
AadlProcessingSwitch.coreSwitch ,AadlProcessingSwitch.componentSwitch ,
AadlProcessingSwitch.connectionSwitch ,AadlProcessingSwitch.featureSwitch ,AadlProcessingSwitch.flowSwitch ,
AadlProcessingSwitch.instanceSwitch , and AadlProcessingSwitch.propertySwitch to
analysis-specific switch implementations. |
protected void |
processETE(ComponentInstance ci,
EndToEndFlow ete,
EndToEndFlowInstance etei)
|
Methods inherited from class edu.cmu.sei.aadl.model.util.ForAllAObject |
action, cancelled, cancelTraversal, defaultTraversal, defaultTraversal, defaultTraversalAllDeclarativeModels, defaultTraversalAllInstances, error, error, getErrorManager, getResultList, info, info, internalError, internalError, notCancelled, processAllComponentImpl, processBottomUpComponentImpl, processBottomUpComponentImpl, processEList, processObject, processPostOrderAll, processPostOrderAll, processPostOrderAll, processPostOrderAllDeclarativeModels, processPostOrderAllInstances, processPostOrderComponentInstance, processPostOrderComponentInstance, processPreOrderAll, processPreOrderAll, processPreOrderAll, processPreOrderAllDeclarativeModels, processPreOrderAllInstances, processPreOrderComponentInstance, processPreOrderComponentInstance, processResources, processResources, processResourcesIgnoreFailure, processTopDownComponentClassifier, processTopDownComponentClassifierAllDeclarativeModels, processTopDownComponentImpl, processTopDownComponentImpl, processTree, processTreeIgnoreFailure, suchThat, warning, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateEndToEndFlowsSwitch
public CreateEndToEndFlowsSwitch(org.eclipse.core.runtime.IProgressMonitor pm,
AnalysisErrorReporterManager errMgr)
initSwitches
protected final void initSwitches()
- Description copied from class:
AadlProcessingSwitch
- Subclasses override this method to set the switch fields
AadlProcessingSwitch.coreSwitch
,AadlProcessingSwitch.componentSwitch
,
AadlProcessingSwitch.connectionSwitch
,AadlProcessingSwitch.featureSwitch
,AadlProcessingSwitch.flowSwitch
,
AadlProcessingSwitch.instanceSwitch
, and AadlProcessingSwitch.propertySwitch
to
analysis-specific switch implementations. Implementaions should take
care, however, as this method is invoked by the constructor
AadlProcessingSwitch.AadlProcessingSwitch()
. Only the switches that are actually
needed need to be initialized, as the switch fields are previously
inialized to default do-nothing switch implementations.
- Specified by:
initSwitches
in class AadlProcessingSwitch
createEndToEndFlowInstance
protected void createEndToEndFlowInstance(ComponentInstance ci,
EndToEndFlow ete)
processETE
protected void processETE(ComponentInstance ci,
EndToEndFlow ete,
EndToEndFlowInstance etei)
doProcessFlowSpec
protected void doProcessFlowSpec(EndToEndFlowInstance etei,
ComponentInstance ci,
FlowSpec fs)
- instantiate a flow specification by recursively following its implementation until a leaf element is reached
In case of a leaf element add it as a flow step
- Parameters:
etei
- End to end flow instanceci
- the component whose flow specification is to be processedfs
- the flow specification to be processed
getModeInstances
protected org.eclipse.emf.common.util.EList getModeInstances(ComponentInstance ci,
org.eclipse.emf.common.util.EList mlist)
- build mode instance list from mode list relaive to the component instance ci
- Parameters:
ci
- Component Instancemlist
- mode list
- Returns:
- list of mode instances
doProcessFlowImpl
protected void doProcessFlowImpl(EndToEndFlowInstance etei,
ComponentInstance ci,
FlowImpl fsq)
- instantiate a flow implementation by recursively processing its flow specifications
- Parameters:
etei
- the end to end flow instanceci
- the component instance whose flow implementation is being processedfsq
- the flow implementation to be processed
addFlowStepInstance
protected void addFlowStepInstance(EndToEndFlowInstance etei,
ComponentInstance ci,
FlowSpec fs)
- add a component instance/flowspec instance to the end to end flow instance
if there is a previous such pair, first find and add the connection instance
- Parameters:
etei
- end to end flow instanceci
- component instance who flow spec is to be addedfs
- the flow spec to be added
fillinModes
protected void fillinModes(EndToEndFlowInstance etei)