edu.cmu.sei.aadl.aadl2
Interface PropertyConstant

All Superinterfaces:
AObject, Element, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier, TypedElement
All Known Implementing Classes:
PropertyConstantImpl

public interface PropertyConstant
extends TypedElement

A representation of the model object 'Property Constant'.

The following features are supported:

See Also:
Aadl2Package.getPropertyConstant()

Field Summary
 
Fields inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
copyright
 
Method Summary
 PropertyExpression createConstantValue(org.eclipse.emf.ecore.EClass eClass)
          Creates a new PropertyExpression and sets the 'Constant Value' containment reference
 PropertyType createOwnedType(org.eclipse.emf.ecore.EClass eClass)
          Creates a new PropertyType and sets the 'Owned Type' containment reference
 EvaluatedProperty evaluate(EvaluationContext ctx)
          Evaluate a referenced property.
 PropertyExpression getConstantValue()
          Returns the value of the 'Constant Value' containment reference
 long getList()
          Returns the value of the 'List' attribute
 PropertyType getOwnedType()
          Returns the value of the 'Owned Type' containment reference.
 void setConstantValue(PropertyExpression value)
          Sets the value of the 'Constant Value' containment reference
 void setList(long value)
          Sets the value of the 'List' attribute
 void setOwnedType(PropertyType value)
          Sets the value of the 'Owned Type' containment reference
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.TypedElement
getType, setType
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.NamedElement
acceptsProperty, allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getName, getNamespace, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.Element
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
getLocationReference, 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
 

Method Detail

getList

long getList()
Returns the value of the 'List' attribute.

If the meaning of the 'List' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'List' attribute.
See Also:
setList(long), Aadl2Package.getPropertyConstant_List()

setList

void setList(long value)
Sets the value of the 'List' attribute.

Parameters:
value - the new value of the 'List' attribute.
See Also:
getList()

getOwnedType

PropertyType getOwnedType()
Returns the value of the 'Owned Type' containment reference.

This feature subsets the following features:

If the meaning of the 'Owned Type' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Owned Type' containment reference.
See Also:
setOwnedType(PropertyType), Aadl2Package.getPropertyConstant_OwnedType()

setOwnedType

void setOwnedType(PropertyType value)
Sets the value of the 'Owned Type' containment reference.

Parameters:
value - the new value of the 'Owned Type' containment reference.
See Also:
getOwnedType()

createOwnedType

PropertyType createOwnedType(org.eclipse.emf.ecore.EClass eClass)
Creates a new PropertyType and sets the 'Owned Type' containment reference.

Parameters:
eClass - The Ecore class of the PropertyType to create.
Returns:
The new PropertyType.
See Also:
getOwnedType()

getConstantValue

PropertyExpression getConstantValue()
Returns the value of the 'Constant Value' containment reference.

If the meaning of the 'Constant Value' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Constant Value' containment reference.
See Also:
setConstantValue(PropertyExpression), Aadl2Package.getPropertyConstant_ConstantValue()

setConstantValue

void setConstantValue(PropertyExpression value)
Sets the value of the 'Constant Value' containment reference.

Parameters:
value - the new value of the 'Constant Value' containment reference.
See Also:
getConstantValue()

createConstantValue

PropertyExpression createConstantValue(org.eclipse.emf.ecore.EClass eClass)
Creates a new PropertyExpression and sets the 'Constant Value' containment reference.

Parameters:
eClass - The Ecore class of the PropertyExpression to create.
Returns:
The new PropertyExpression.
See Also:
getConstantValue()

evaluate

EvaluatedProperty evaluate(EvaluationContext ctx)
                           throws InvalidModelException
Evaluate a referenced property.

Parameters:
sign - The referenceSign value from the containing Operation.
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 property value from being evaluated.