|
||||||||||
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.annex.AnnexInstantiationController
public class AnnexInstantiationController
Field Summary |
---|
Fields inherited from class edu.cmu.sei.aadl.model.util.ForAllAObject |
---|
copyright, 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 | |
---|---|
AnnexInstantiationController()
|
Method Summary | |
---|---|
protected void |
action(AObject obj)
Action to be performed on the currently visited model object. |
void |
instantiateAllAnnexes(ComponentInstance root)
|
protected boolean |
suchThat(AObject obj)
Method used to filter out objects during traversal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnexInstantiationController()
Method Detail |
---|
public void instantiateAllAnnexes(ComponentInstance root)
protected void action(AObject obj)
ForAllAObject
ForAllAObject.process(AObject)
:
protected void process(AObject theAObject) { if (suchThat(theAObject)) { action(theAObject); } }
By default, this method adds the object to ForAllAObject.resultList
. But this
method can do anything.
action
in class ForAllAObject
obj
- The object to visit.ForAllAObject.suchThat(AObject)
,
ForAllAObject.process(AObject)
protected boolean suchThat(AObject obj)
ForAllAObject
ForAllAObject.process(AObject)
:
protected void process(AObject theAObject) { if (suchThat(theAObject)) { action(theAObject); } }
By default, this method returns true
.
suchThat
in class ForAllAObject
obj
- The object to test
ForAllAObject.process(AObject)
,
ForAllAObject.action(AObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |