edu.cmu.sei.aadl.model.properties
Class ModalPropertyValueAccumulatorImpl.PAWrapper

java.lang.Object
  extended by edu.cmu.sei.aadl.model.properties.ModalPropertyValueAccumulatorImpl.PAWrapper
Direct Known Subclasses:
ModalPropertyValueAccumulatorImpl.DefaultPAWrapper
Enclosing class:
ModalPropertyValueAccumulatorImpl

protected abstract static class ModalPropertyValueAccumulatorImpl.PAWrapper
extends java.lang.Object

Wraps a reference to the PropertyAssociation as used by the ModeAssocNode. This additional layer of abstraction is needed so that in InstanceMPVA we can subclass it and add a reference to the InstanceObject that is the "current component". This instance object reference is then used as the root object during the evaluation of ReferencePropertyValue objects to correctly turn them into InstanceRefernecePropertyValue objects. (There really has to be a less complicated way of doing this stuff!)

Author:
aarong

Field Summary
protected  PropertyAssociation pa
           
 
Constructor Summary
ModalPropertyValueAccumulatorImpl.PAWrapper(PropertyAssociation pa)
           
 
Method Summary
abstract  AadlPropertyValue evaluate(PropertyHolder ph, java.util.Map modes)
           
 PropertyAssociation getPropertyAssociation()
           
 boolean isAppend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pa

protected final PropertyAssociation pa
Constructor Detail

ModalPropertyValueAccumulatorImpl.PAWrapper

public ModalPropertyValueAccumulatorImpl.PAWrapper(PropertyAssociation pa)
Method Detail

getPropertyAssociation

public final PropertyAssociation getPropertyAssociation()

isAppend

public final boolean isAppend()

evaluate

public abstract AadlPropertyValue evaluate(PropertyHolder ph,
                                           java.util.Map modes)
                                    throws InvalidModelException
Throws:
InvalidModelException