public class CreateConnectionsSwitch extends AadlProcessingSwitchWithProgress
copyright, DONE, INSTANCE, NOT_DONE
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
Constructor and Description |
---|
CreateConnectionsSwitch(org.eclipse.core.runtime.IProgressMonitor pm,
AnalysisErrorReporterManager errMgr,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Connection> |
filterIncomingConnections(java.util.List<Connection> incomingconnlist,
Feature feature)
get incoming connections for specified feature This method does not work
on subcomponent, because we need the enclosing subcomponent rather than
the enclosing component implementation in order to get the subcomponent
inheritance correct Otherwise the incorrect connections get picked up
|
java.util.List<Connection> |
filterOutgoingConnections(java.util.List<Connection> conns,
Feature feature)
Get outgoing connections for specified feature port group connections are
non-directional, i.e., they are always added
|
java.util.List<Connection> |
filterOutgoingConnections(java.util.List<Connection> conns,
Feature feature,
Subcomponent sub)
Get outgoing connections for specified feature port group connections are
non-directional, i.e., they are always added
|
boolean |
isConnectionEnd(java.util.List<Connection> conns,
Feature feature)
Check if one of the connections in a list has a feature as its end.
|
boolean |
isDestination(java.util.List<Connection> conns,
Feature feature)
Check if one of the connections in a list points to a feature.
|
getAadl2Switch, getInstanceSwitch, process
cancelled, 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, processPreOrderComponentInstanceStop, processResources, processResources, processResourcesIgnoreFailure, processTopDownComponentClassifier, processTopDownComponentClassifierAllDeclarativeModels, processTopDownComponentImpl, processTopDownComponentImpl, processTree, processTreeIgnoreFailure, warning, warning
public CreateConnectionsSwitch(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
nullpublic java.util.List<Connection> filterIncomingConnections(java.util.List<Connection> incomingconnlist, Feature feature)
incomingconnlist
- feature
- subcomponent feature that is the destination of a
connectionpublic java.util.List<Connection> filterOutgoingConnections(java.util.List<Connection> conns, Feature feature)
conns
- a list of connections that go away from a subcomponentfeature
- subcomponent feature that can be the source of a
connectionpublic java.util.List<Connection> filterOutgoingConnections(java.util.List<Connection> conns, Feature feature, Subcomponent sub)
conns
- a list of connections that go away from a subcomponentfeature
- subcomponent feature that can be the source of a
connectionpublic boolean isDestination(java.util.List<Connection> conns, Feature feature)
conns
- a list of connections owned by a subcomponentfeature
- a subcomponent featurepublic boolean isConnectionEnd(java.util.List<Connection> conns, Feature feature)
conns
- a list of connections owned by a subcomponentfeature
- a subcomponent feature