edu.cmu.sei.aadl.model.properties
Class InstanceMPVA

java.lang.Object
  extended by edu.cmu.sei.aadl.model.properties.ModalPropertyValueAccumulatorImpl
      extended by edu.cmu.sei.aadl.model.properties.InstanceMPVA
All Implemented Interfaces:
ModalPropertyValue, ModalPropertyValueAccumulator

public final class InstanceMPVA
extends ModalPropertyValueAccumulatorImpl

Author:
aarong

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.cmu.sei.aadl.model.properties.ModalPropertyValueAccumulatorImpl
ModalPropertyValueAccumulatorImpl.DefaultPAWrapper, ModalPropertyValueAccumulatorImpl.ModalAssociations, ModalPropertyValueAccumulatorImpl.NonExistentPropertyException, ModalPropertyValueAccumulatorImpl.PAWrapper
 
Field Summary
 
Fields inherited from class edu.cmu.sei.aadl.model.properties.ModalPropertyValueAccumulatorImpl
NOT_MODAL, propHolder, VALUE_UNDEFINED
 
Constructor Summary
InstanceMPVA(boolean list, InstanceObject ph)
          Create a new property value accumulator for looking up property values from an instance model element.
 
Method Summary
protected  ModalPropertyValueAccumulatorImpl.ModalAssociations createModalAssociations(PropertyHolder ph)
           
protected  ModalPropertyValueAccumulatorImpl.ModalAssociations createModalAssociations(PropertyHolder ph, java.util.List inModes)
           
protected  java.util.List fixComponentInModesForDeclarative(java.util.List modes)
           
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.
protected  java.util.List fixPropertyInModesForDeclarative(java.util.List modes)
           
 ComponentInstance popCurrentComponent()
          Pop the current component instance from the current component stack.
 void pushCurrentComponent(ComponentInstance comp)
          Push the current component instance onto the current component stack.
 
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
 

Constructor Detail

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.
Method Detail

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