edu.cmu.sei.aadl.model.core
Interface Feature

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier, PropertyHolder
All Known Subinterfaces:
AbstractPort, BusAccess, ComponentAccess, DataAccess, DataPort, EventDataPort, EventPort, Parameter, Port, PortGroup, ServerSubprogram, Subprogram
All Known Implementing Classes:
AbstractPortImpl, BusAccessImpl, ComponentAccessImpl, DataAccessImpl, DataPortImpl, EventDataPortImpl, EventPortImpl, FeatureImpl, ParameterImpl, PortGroupImpl, PortImpl, ServerSubprogramImpl, SubprogramImpl

public interface Feature
extends PropertyHolder

A representation of the model object 'Feature'.

See Also:
CorePackage.getFeature()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 org.eclipse.emf.common.util.EList getAllFeatureRefinements()
          Return the feature and any of the features it refines
 ClassifierReference getClassifierReference()
          get reference names from FeatureReference
 org.eclipse.emf.common.util.EList getConnection(ComponentImpl connectionScope)
          get all connections of component impl whose source or destination is the feature.
 ModeContext getFeaturesModeContext()
          Get the component whose modes apply to the properties of a feature.
 org.eclipse.emf.common.util.EList getIncomingConnection(ComponentImpl connectionScope)
          get all connections of component impl whose destination is the feature.
 org.eclipse.emf.common.util.EList getOutgoingConnection(ComponentImpl connectionScope)
          get all connections of component impl whose source is the feature.
 RefinedReference getRefinedReference()
          get reference names from flowReference
 Feature getRefinesFeature()
          gets feature being refined
 Classifier getXAllClassifier()
          Returns the component classifier object for the feature.
 Classifier getXClassifier()
          Get the component classifier of given feature, if it has one, otherwise null.
 Feature getXRefines()
          Get the feature refined by a given feature.
 boolean isRefined()
          flag indicating whether the subcomponent is refined
 void setClassifierReference(ClassifierReference cr)
          set sets reference names from FeatureReference for refiend to
 void setRefined(boolean value)
          set flag indicating whether the subcomponent is refined
 void setRefinedReference(RefinedReference fr)
          set sets reference names from refined reference
 
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, getSystemInstance, 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

isRefined

boolean isRefined()
flag indicating whether the subcomponent is refined


setRefined

void setRefined(boolean value)
set flag indicating whether the subcomponent is refined

Parameters:
value - boolean

setClassifierReference

void setClassifierReference(ClassifierReference cr)
set sets reference names from FeatureReference for refiend to


getClassifierReference

ClassifierReference getClassifierReference()
get reference names from FeatureReference


setRefinedReference

void setRefinedReference(RefinedReference fr)
set sets reference names from refined reference


getRefinedReference

RefinedReference getRefinedReference()
get reference names from flowReference


getRefinesFeature

Feature getRefinesFeature()
gets feature being refined

Returns:
feature being refined or null

getFeaturesModeContext

ModeContext getFeaturesModeContext()
Get the component whose modes apply to the properties of a feature. If the feature is part of a component implementations "refines type" clause then that component implementation is returned. Otherwise, the feature is part of a component type declaration and cannot reference modes, so null is returned.


getXRefines

Feature getXRefines()
Get the feature refined by a given feature.

Returns:
The refined feature, or null if the feature doesn't refine another feature.

getOutgoingConnection

org.eclipse.emf.common.util.EList getOutgoingConnection(ComponentImpl connectionScope)
get all connections of component impl whose source is the feature. If the port is part of the component impl, it is an incoming connection

Parameters:
connectionScope - the component impl whose connections are considered
Returns:
EList of Connection

getIncomingConnection

org.eclipse.emf.common.util.EList getIncomingConnection(ComponentImpl connectionScope)
get all connections of component impl whose destination is the feature. If the port is part of the component impl, it is an outgoing connection

Parameters:
connectionScope - the component impl whose connections are considered
Returns:
EList of Connection

getConnection

org.eclipse.emf.common.util.EList getConnection(ComponentImpl connectionScope)
get all connections of component impl whose source or destination is the feature. If the port is part of the component impl, it is connections from/to subcomponents

Parameters:
connectionScope - the component impl whose connections are considered
Returns:
EList of Connection

getXClassifier

Classifier getXClassifier()
Get the component classifier of given feature, if it has one, otherwise null. If the feature is a Parameter, DataPort, EventDataPort, or DataAccess then this retreives the value of the "dataClassifier" attribute. If the feature is a BusAccess then this retreives the value of the "busClassifier" attribute. If the feature is a Subprogram or ServerSubprogram then this retreives the value of the "subprogramClassifier" attribute. If the feature is a PortGroup then this retrevies the value of the "portGroupType" attribute.

Returns:
The classifier, or null if no data classifier.

getXAllClassifier

Classifier getXAllClassifier()
Returns the component classifier object for the feature. Not really needed for features because we don't look for the classifier in the features being refined if it is missing: if it is missing here, then it will be missing in refined features. But we keep this method for consistency with the naming conventions.

Returns:
The data classifier or null if none is defined.

getAllFeatureRefinements

org.eclipse.emf.common.util.EList getAllFeatureRefinements()
Return the feature and any of the features it refines

Returns:
EList of feature