public class Aadl2InstanceUtil
extends java.lang.Object
Constructor and Description |
---|
Aadl2InstanceUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containedIn(InstanceObject element,
InstanceObject parent) |
static AnnexSubclause |
getAnnexSubclause(ComponentInstance ci,
java.lang.String annexName) |
static ConnectionInstanceEnd |
getDestEndPointInstance(ComponentInstance ci,
ConnectionInstance conni)
Find the destination endpoint of the connection in the specified component instance
the endpoint can be a feature instance or a component instance
The connection instance may go inside the component instance
|
static org.eclipse.emf.common.util.EList<ConnectionInstance> |
getIncomingConnection(ComponentInstance ci,
FeatureInstance fi)
find incoming connection that goes through the feature of the specified component instance
|
static org.eclipse.emf.common.util.EList<ConnectionInstance> |
getIncomingConnections(ComponentInstance ci)
get incoming connection instances from the component instance or any contained component instance
|
static org.eclipse.emf.common.util.EList<ConnectionInstance> |
getOutgoingConnection(ComponentInstance ci,
FeatureInstance fi)
find outgoing connection that goes through the feature of the specified component instance
|
static org.eclipse.emf.common.util.EList<ConnectionInstance> |
getOutgoingConnections(ComponentInstance ci)
get outgoing connection instances from the component instance or any contained component instance
|
static ConnectionInstanceEnd |
getSrcEndPointInstance(ComponentInstance ci,
ConnectionInstance conni)
Find the source endpoint of the connection in the specified component instance
the endpoint can be a feature instance or a component instance
The connection instance may go inside the component instance
|
static boolean |
isIncomingConnection(ConnectionInstance connectionInstance,
ComponentInstance ci) |
static boolean |
isOutgoingConnection(ConnectionInstance connectionInstance,
ComponentInstance ci) |
public static org.eclipse.emf.common.util.EList<ConnectionInstance> getOutgoingConnections(ComponentInstance ci)
ci
- component instancepublic static org.eclipse.emf.common.util.EList<ConnectionInstance> getIncomingConnections(ComponentInstance ci)
ci
- component instancepublic static org.eclipse.emf.common.util.EList<ConnectionInstance> getOutgoingConnection(ComponentInstance ci, FeatureInstance fi)
ci
- Component instancefi
- Feature instancepublic static org.eclipse.emf.common.util.EList<ConnectionInstance> getIncomingConnection(ComponentInstance ci, FeatureInstance fi)
ci
- Component instancefi
- Feature instancepublic static boolean isOutgoingConnection(ConnectionInstance connectionInstance, ComponentInstance ci)
public static boolean isIncomingConnection(ConnectionInstance connectionInstance, ComponentInstance ci)
public static boolean containedIn(InstanceObject element, InstanceObject parent)
public static AnnexSubclause getAnnexSubclause(ComponentInstance ci, java.lang.String annexName)
public static ConnectionInstanceEnd getSrcEndPointInstance(ComponentInstance ci, ConnectionInstance conni)
ci
- context component instanceconni
- connection instancepublic static ConnectionInstanceEnd getDestEndPointInstance(ComponentInstance ci, ConnectionInstance conni)
ci
- context component instanceconni
- connection instance