edu.cmu.sei.aadl.model.instance
Interface InstanceObject

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier, PropertyHolder
All Known Subinterfaces:
AccessConnectionInstance, ComponentInstance, ConnectionInstance, EndToEndFlowInstance, FeatureInstance, FlowElementInstance, FlowSpecInstance, ModeInstance, ModeTransitionConnectionInstance, ModeTransitionInstance, PortConnectionInstance, SystemInstance
All Known Implementing Classes:
AccessConnectionInstanceImpl, ComponentInstanceImpl, ConnectionInstanceImpl, EndToEndFlowInstanceImpl, FeatureInstanceImpl, FlowElementInstanceImpl, FlowSpecInstanceImpl, InstanceObjectImpl, ModeInstanceImpl, ModeTransitionConnectionInstanceImpl, ModeTransitionInstanceImpl, PortConnectionInstanceImpl, SystemInstanceImpl

public interface InstanceObject
extends PropertyHolder

A representation of the model object 'Object'.

See Also:
InstancePackage.getInstanceObject()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 org.eclipse.emf.common.util.EList getComponentInstanceList()
          construct a list of subcomponent references It represents the path to the given Component Instance (excluding the system impl of the system instance
 java.lang.String getComponentInstancePath()
          construct a string path excluding the systeminstance as root.
 ComponentInstance getContainingComponentInstance()
          Returns the closest ancestor component (in the containment hierarchy) that is a ComponentInstance.
 java.lang.String getInstanceObjectPath()
          construct a string path from the systeminstance as root
 java.util.List getInstantiatedObjects()
          Return the declarative objects that define this instance.
 SystemInstance getSystemInstance()
          find the enclosing SystemInstance
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.PropertyHolder
acceptsProperty, addProperty, addPropertyValue, checkPropertyAssociation, findPropertyAssociation, getProperties, getPropertyAssociation, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getSimplePropertyValue, isModalPropertyValue, removeContainedPropertyAssociations, removeContainedPropertyAssociations, removePropertyAssociations, removePropertyAssociations, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setProperties, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.NamedElement
getName, setName
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.AObject
addComment, getAadlSpec, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getReferencedObject, getSecondReferencedObject, setLocationReference, setLocationReference
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getSystemInstance

SystemInstance getSystemInstance()
find the enclosing SystemInstance

Specified by:
getSystemInstance in interface AObject
Returns:
SystemInstance object

getInstanceObjectPath

java.lang.String getInstanceObjectPath()
construct a string path from the systeminstance as root

Returns:
path as string

getComponentInstancePath

java.lang.String getComponentInstancePath()
construct a string path excluding the systeminstance as root.

Returns:
path as string

getInstantiatedObjects

java.util.List getInstantiatedObjects()
Return the declarative objects that define this instance. Most of the time this will return a singleton list. But in the case of semantic connections, it will return a list of connection objects.

Returns:
A List of PropertyHolder objects that should be declarative model elements. Returns an empty list if no named declarative object exists, such as in the case of ModeTransitionInstances.

getContainingComponentInstance

ComponentInstance getContainingComponentInstance()
Returns the closest ancestor component (in the containment hierarchy) that is a ComponentInstance.

Returns:
containing component instance

getComponentInstanceList

org.eclipse.emf.common.util.EList getComponentInstanceList()
construct a list of subcomponent references It represents the path to the given Component Instance (excluding the system impl of the system instance

Returns:
EList of component instances making up the path