|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.aadl.modelsupport.modeltraversal.ForAllElement
edu.cmu.sei.aadl.modelsupport.modeltraversal.AadlProcessingSwitch
edu.cmu.sei.aadl.modelsupport.modeltraversal.AadlProcessingSwitchWithProgress
edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch
public class CreateEndToEndFlowsSwitch
Field Summary |
---|
Fields inherited from class edu.cmu.sei.aadl.modelsupport.modeltraversal.AadlProcessingSwitchWithProgress |
---|
monitor |
Fields inherited from class edu.cmu.sei.aadl.modelsupport.modeltraversal.AadlProcessingSwitch |
---|
aadl2Switch, copyright, DONE, INSTANCE, instanceSwitch, NOT_DONE |
Fields inherited from class edu.cmu.sei.aadl.modelsupport.modeltraversal.ForAllElement |
---|
DEFAULT_DEFAULT_TRAVERSAL, NO_DEFAULT, PROCESS_BOTTOM_UP_COMPONENT_IMPL, PROCESS_POST_ORDER_ALL, PROCESS_PRE_ORDER_ALL, PROCESS_TOP_DOWN_COMPONENT_CLASSIFIER, PROCESS_TOP_DOWN_COMPONENT_IMPL, resultList |
Constructor Summary | |
---|---|
CreateEndToEndFlowsSwitch(org.eclipse.core.runtime.IProgressMonitor pm,
AnalysisErrorReporterManager errMgr,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Create a new instance. |
Method Summary | |
---|---|
protected void |
fillinModes(EndToEndFlowInstance etei)
|
protected org.eclipse.emf.common.util.EList<ModeInstance> |
getModeInstances(ComponentInstance ci,
org.eclipse.emf.common.util.EList<Mode> mlist)
build mode instance list from mode list relative to the component instance ci |
protected void |
initSwitches()
Subclasses override this method to set the switch fields #coreSwitch ,#componentSwitch ,
#connectionSwitch ,#featureSwitch ,#flowSwitch ,
AadlProcessingSwitch.instanceSwitch , and #propertySwitch to
analysis-specific switch implementations. |
protected void |
instantiateEndToEndFlow(ComponentInstance ci,
EndToEndFlow ete,
java.util.HashMap<EndToEndFlow,java.util.List<edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch.ETEInfo>> ete2info)
|
protected void |
processETE(ComponentInstance ci,
EndToEndFlowInstance etei,
EndToEndFlow ete)
|
protected void |
processETEElement(ComponentInstance ci,
EndToEndFlowInstance etei,
EndToEndFlowElement fe,
edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch.FlowIterator iter,
NamedElement errorElement)
Add all flow instances that continue through the next flow element. |
protected boolean |
processFlowImpl(ComponentInstance ci,
EndToEndFlowInstance etei,
FlowImplementation flowImpl)
Continue the current ETE instance with a flow implementation. |
protected void |
processFlowStep(ComponentInstance ci,
EndToEndFlowInstance etei,
EndToEndFlowElement leaf,
edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch.FlowIterator iter)
Add all ETE instances that continue through a given leaf flow element. |
protected void |
processSubcomponentFlow(ComponentInstance ci,
EndToEndFlowInstance etei,
SubcomponentFlow subFlow,
edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch.FlowIterator iter)
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 |
Methods inherited from class edu.cmu.sei.aadl.modelsupport.modeltraversal.AadlProcessingSwitchWithProgress |
---|
checkIfCancelled |
Methods inherited from class edu.cmu.sei.aadl.modelsupport.modeltraversal.AadlProcessingSwitch |
---|
getAadl2Switch, getInstanceSwitch, process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateEndToEndFlowsSwitch(org.eclipse.core.runtime.IProgressMonitor pm, AnalysisErrorReporterManager errMgr, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
pm
- the progress monitorerrMgr
- the error managerclassifierCache
- cache of known instantiated classifiers, may be
nullMethod Detail |
---|
protected final void initSwitches()
AadlProcessingSwitch
#coreSwitch
,#componentSwitch
,
#connectionSwitch
,#featureSwitch
,#flowSwitch
,
AadlProcessingSwitch.instanceSwitch
, and #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.
initSwitches
in class AadlProcessingSwitch
protected void instantiateEndToEndFlow(ComponentInstance ci, EndToEndFlow ete, java.util.HashMap<EndToEndFlow,java.util.List<edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch.ETEInfo>> ete2info)
protected void processETE(ComponentInstance ci, EndToEndFlowInstance etei, EndToEndFlow ete)
protected void processETEElement(ComponentInstance ci, EndToEndFlowInstance etei, EndToEndFlowElement fe, edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch.FlowIterator iter, NamedElement errorElement)
ci
- the component instance we're inetei
- the current flow instancefe
- the next flow elementiter
- the position in the current ETE declarationerrorElement
- the model element that we attach errors toprotected void processSubcomponentFlow(ComponentInstance ci, EndToEndFlowInstance etei, SubcomponentFlow subFlow, edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch.FlowIterator iter)
ci
- the component whose flow specification is to be processedetei
- the end to end flow instancefs
- the flow specification to be processedprotected boolean processFlowImpl(ComponentInstance ci, EndToEndFlowInstance etei, FlowImplementation flowImpl)
ci
- the component instance whose flow implementation is being
processedetei
- the end to end flow instanceflowImpl
- the flow implementation to be processed
protected void processFlowStep(ComponentInstance ci, EndToEndFlowInstance etei, EndToEndFlowElement leaf, edu.cmu.sei.aadl.instance.CreateEndToEndFlowsSwitch.FlowIterator iter)
ci
- etei
- the current end to end flow instanceleaf
- the next ETE elementiter
- the position in the current end to end flow declarationprotected org.eclipse.emf.common.util.EList<ModeInstance> getModeInstances(ComponentInstance ci, org.eclipse.emf.common.util.EList<Mode> mlist)
ci
- Component Instancemlist
- mode list
protected void fillinModes(EndToEndFlowInstance etei)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |