|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.aadl.model.util.ForAllAObject
edu.cmu.sei.aadl.model.util.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 ComponentSwitch |
componentSwitch
|
protected ConnectionSwitch |
connectionSwitch
|
static java.lang.String |
copyright
|
protected CoreSwitch |
coreSwitch
|
static java.lang.String |
DONE
|
protected FeatureSwitch |
featureSwitch
|
protected FlowSwitch |
flowSwitch
|
static AadlProcessingSwitch |
INSTANCE
|
protected InstanceSwitch |
instanceSwitch
|
static java.lang.String |
NOT_DONE
|
protected PropertySwitch |
propertySwitch
|
protected AadlProcessingSwitch |
self
refers to itself. |
Fields inherited from class edu.cmu.sei.aadl.model.util.ForAllAObject |
---|
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 | |
---|---|
ComponentSwitch |
getComponentSwitch()
get ComponentSwitch |
ConnectionSwitch |
getConnectionSwitch()
get ConnectionSwitch |
CoreSwitch |
getCoreSwitch()
get CoreSwitch |
FeatureSwitch |
getFeatureSwitch()
get FeatureSwitch |
FlowSwitch |
getFlowSwitch()
get FlowSwitch |
InstanceSwitch |
getInstanceSwitch()
get InstanceSwitch |
PropertySwitch |
getPropertySwitch()
get PropertySwitch |
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(AObject theAObject)
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 CoreSwitch coreSwitch
protected ComponentSwitch componentSwitch
protected ConnectionSwitch connectionSwitch
protected FeatureSwitch featureSwitch
protected FlowSwitch flowSwitch
protected InstanceSwitch instanceSwitch
protected PropertySwitch propertySwitch
protected AadlProcessingSwitch self
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 CoreSwitch getCoreSwitch()
public final ConnectionSwitch getConnectionSwitch()
public final PropertySwitch getPropertySwitch()
public final FlowSwitch getFlowSwitch()
public final FeatureSwitch getFeatureSwitch()
public final ComponentSwitch getComponentSwitch()
public final InstanceSwitch getInstanceSwitch()
public final void process(AObject theAObject)
process
in class ForAllAObject
ForAllAObject.action(AObject)
,
ForAllAObject.suchThat(AObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |