edu.cmu.sei.aadl.modelsupport.adapter
Class ExternalModelAdapter

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by edu.cmu.sei.aadl.modelsupport.adapter.ExternalModelAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal

public class ExternalModelAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl

This adapter can be attached to Aadl Object Models Its role is to keep a reference to a Java object of a model that is external to the AADL model. This can be used to create an external model (e.g., a timing model) from an AADL model, run analysis on it, and then via adapter retrieve information from that external model. You can overwrite the default implementation of notifyChanged to take action on notifications.

Author:
phf

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
ExternalModelAdapter(java.lang.Object type)
           
 
Method Summary
 java.lang.Object getExternalModelObject()
          get External Model Object - an object of the external model attached to the AADL instance model
 boolean isAdapterForType(java.lang.Object type)
          Returns false
 void setExternalModelObject(java.lang.Object external)
          get External Model Object - an object of the external model attached to the AADL instance model
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, notifyChanged, setTarget, unsetTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalModelAdapter

public ExternalModelAdapter(java.lang.Object type)
Method Detail

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Returns false

Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter
Overrides:
isAdapterForType in class org.eclipse.emf.common.notify.impl.AdapterImpl
Parameters:
type - the type.
Returns:
false

getExternalModelObject

public java.lang.Object getExternalModelObject()
get External Model Object - an object of the external model attached to the AADL instance model

Returns:
Object External Model Object

setExternalModelObject

public void setExternalModelObject(java.lang.Object external)
get External Model Object - an object of the external model attached to the AADL instance model