edu.cmu.sei.aadl.model.property.predeclared
Class SharedAccess

java.lang.Object
  extended by edu.cmu.sei.aadl.model.property.predeclared.SharedAccess

public class SharedAccess
extends java.lang.Object


Constructor Summary
SharedAccess(PropertyDefinition pa, PropertyDefinition ra)
           
 
Method Summary
 java.lang.String getAccessForm(ComponentAccess ca)
          Get the form of the access.
 java.lang.String getAccessForm(FeatureInstance fi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedAccess

public SharedAccess(PropertyDefinition pa,
                    PropertyDefinition ra)
Method Detail

getAccessForm

public java.lang.String getAccessForm(ComponentAccess ca)
Get the form of the access.

Parameters:
ca - The bus or data access feature.
Returns:
One of read_only, write_only, read_write, or by_method. (Never returns null)
Throws:
PropertyIsModalException - Thrown if the "PROVIDED_ACCESS" (if ca is a provides access feature) or "REQUIRED_ACCESS" (if ca is a requires access feature) property value is modal.

getAccessForm

public java.lang.String getAccessForm(FeatureInstance fi)