edu.cmu.sei.aadl.model.property
Interface ReferencedProperty

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
PropertyConstant, PropertyDefinition
All Known Implementing Classes:
PropertyConstantImpl, PropertyDefinitionImpl, ReferencedPropertyImpl

public interface ReferencedProperty
extends org.eclipse.emf.ecore.EObject

A representation of the model object 'Referenced Property'.

See Also:
PropertyPackage.getReferencedProperty()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 AadlPropertyValue evaluate(java.lang.String sign, java.util.Map modes, PropertyHolder context)
          Evaluate a referenced property.
 PropertyType getThePropertyType()
          Get the type of the referenced property or constant.
 boolean isList()
          Does the referenced property or constant refer to a list?
 void preEvaluate(PropertyHolder context, java.util.Set reqModeContexts)
          Pre-evaluate a property value to determine which ComponentImpls have modes that can affect the property value.
 
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
 

Field Detail

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getThePropertyType

PropertyType getThePropertyType()
Get the type of the referenced property or constant.

Returns:
The type of the reference property or constant.

isList

boolean isList()
Does the referenced property or constant refer to a list?


evaluate

AadlPropertyValue evaluate(java.lang.String sign,
                           java.util.Map modes,
                           PropertyHolder context)
                           throws InvalidModelException
Evaluate a referenced property.

Parameters:
sign - the referenceSign value from the containing PropertyReference.
modes - The mode in which to look up the value; a mapping from component impls to modes
context - The context in which to look up any property value references.
Returns:
The evaluated property value: either null, a PropertyValue, or a list of PropertyValues. If the evaluation is trivial, then this will be the same as the receiver.
Throws:
InvalidModelException - Thrown if there is a problem with the model that prevents the prpoerty value from being evaluated.

preEvaluate

void preEvaluate(PropertyHolder context,
                 java.util.Set reqModeContexts)
                 throws InvalidModelException
Pre-evaluate a property value to determine which ComponentImpls have modes that can affect the property value.

Parameters:
context - The context in which the property value is to be looked up.
reqModeContexts - The working set of component implementations whose modes affect the value of the property. This set is modified as a side-effect of this method.
Throws:
InvalidModelException - Thrown if there is a problem with the model that prevents the prpoerty value from being pre-evaluated.