edu.cmu.sei.aadl.model.properties
Class InstanceMPVA
java.lang.Object
edu.cmu.sei.aadl.model.properties.ModalPropertyValueAccumulatorImpl
edu.cmu.sei.aadl.model.properties.InstanceMPVA
- All Implemented Interfaces:
- ModalPropertyValue, ModalPropertyValueAccumulator
public final class InstanceMPVA
- extends ModalPropertyValueAccumulatorImpl
- Author:
- aarong
Constructor Summary |
InstanceMPVA(boolean list,
InstanceObject ph)
Create a new property value accumulator for looking up property values
from an instance model element. |
Methods inherited from class edu.cmu.sei.aadl.model.properties.ModalPropertyValueAccumulatorImpl |
addDefaultValue, addLocalContainedPropertyAssociations, addLocalContainedPropertyAssociations, addPropertyAssociations, addPropertyAssociations, getAllModeBindings, getAllValues, getModeContexts, getModeContextsAsArray, getValue, getValue, isModal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstanceMPVA
public InstanceMPVA(boolean list,
InstanceObject ph)
- Create a new property value accumulator for looking up property values
from an instance model element.
- Parameters:
list
- Whether the property value being looked up is a list.ph
- The element for which the value is being looked up.
pushCurrentComponent
public void pushCurrentComponent(ComponentInstance comp)
- Push the current component instance onto the current component stack.
- See Also:
popCurrentComponent()
popCurrentComponent
public ComponentInstance popCurrentComponent()
- Pop the current component instance from the current component stack.
- See Also:
pushCurrentComponent(ComponentInstance)
fixPropertyInModesForDeclarative
protected final java.util.List fixPropertyInModesForDeclarative(java.util.List modes)
fixComponentInModesForDeclarative
protected java.util.List fixComponentInModesForDeclarative(java.util.List modes)
fixModeContext
protected ModeContext fixModeContext(ModeContext mc)
- The mode context is replaced with the a mode context representing
the system instance that contains the instance object associated with
this accumulator.
- Specified by:
fixModeContext
in class ModalPropertyValueAccumulatorImpl
- Parameters:
mc
- The input mode context; non-null
.
- Returns:
- The "fixed" mode context; non-
null
.
createModalAssociations
protected ModalPropertyValueAccumulatorImpl.ModalAssociations createModalAssociations(PropertyHolder ph,
java.util.List inModes)
- Specified by:
createModalAssociations
in class ModalPropertyValueAccumulatorImpl
createModalAssociations
protected ModalPropertyValueAccumulatorImpl.ModalAssociations createModalAssociations(PropertyHolder ph)
- Specified by:
createModalAssociations
in class ModalPropertyValueAccumulatorImpl