|
||||||||||
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
public abstract class AadlProcessingSwitch
This class implements the traversal over an AADL model and the invoaction of a case method for each of the classes in the AADL Meta model based on the EMF generated doSwitch. It handles the fact that the AADL Meta model consists of multiple Meta model packages, thus, multiple switches
Field Summary | |
---|---|
protected Aadl2Switch<java.lang.String> |
aadl2Switch
|
static java.lang.String |
copyright
|
static java.lang.String |
DONE
|
static AadlProcessingSwitch |
INSTANCE
|
protected InstanceSwitch<java.lang.String> |
instanceSwitch
|
static java.lang.String |
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 | |
---|---|
AadlProcessingSwitch()
Create an Aadl switch that uses AnalysisErrorReporterManager.NULL_ERROR_MANANGER . |
|
AadlProcessingSwitch(AnalysisErrorReporterManager errMgr)
Create an Aadl switch that delages to the given error manager. |
|
AadlProcessingSwitch(int defTraversal)
|
|
AadlProcessingSwitch(int defTraversal,
AnalysisErrorReporterManager errMgr)
|
Method Summary | |
---|---|
Aadl2Switch<java.lang.String> |
getAadl2Switch()
get Aadl2Switch |
InstanceSwitch<java.lang.String> |
getInstanceSwitch()
get InstanceSwitch |
protected abstract void |
initSwitches()
Subclasses override this method to set the switch fields #coreSwitch ,#componentSwitch ,
#connectionSwitch ,#featureSwitch ,#flowSwitch ,
instanceSwitch , and #propertySwitch to
analysis-specific switch implementations. |
void |
process(Element theElement)
Calls the package-specific switch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String copyright
public static final java.lang.String DONE
public static final java.lang.String NOT_DONE
public static AadlProcessingSwitch INSTANCE
protected Aadl2Switch<java.lang.String> aadl2Switch
protected InstanceSwitch<java.lang.String> instanceSwitch
Constructor Detail |
---|
public AadlProcessingSwitch(int defTraversal, AnalysisErrorReporterManager errMgr)
public AadlProcessingSwitch(int defTraversal)
public AadlProcessingSwitch(AnalysisErrorReporterManager errMgr)
public AadlProcessingSwitch()
AnalysisErrorReporterManager.NULL_ERROR_MANANGER
.
Method Detail |
---|
protected abstract void initSwitches()
#coreSwitch
,#componentSwitch
,
#connectionSwitch
,#featureSwitch
,#flowSwitch
,
instanceSwitch
, and #propertySwitch
to
analysis-specific switch implementations. Implementaions should take
care, however, as this method is invoked by the constructor
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.
public final Aadl2Switch<java.lang.String> getAadl2Switch()
public final InstanceSwitch<java.lang.String> getInstanceSwitch()
public final void process(Element theElement)
process
in class ForAllElement
ForAllElement.action(Element)
,
ForAllElement.suchThat(Element)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |