edu.ksu.cis.cadena.core.adapter.scenario
Class ComponentInstanceAdapter

java.lang.Object
  extended by edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
      extended by edu.ksu.cis.cadena.core.adapter.scenario.AbstractInstanceAdapter
          extended by edu.ksu.cis.cadena.core.adapter.scenario.ComponentInstanceAdapter
All Implemented Interfaces:
CadenaAdapter

public class ComponentInstanceAdapter
extends AbstractInstanceAdapter

Handles all of the checks associated with an individual ComponentInstancenode, and not any of its children.

Author:
Matt Hoosier

Field Summary
static java.lang.String DELETED_TYPE_ERROR
           
static java.lang.String UNIMPORTED_MODULE_ERROR
           
static java.lang.String UNRESOLVED_TYPE_ERROR
           
static java.lang.String UNSPECIFIED_TYPE_ERROR
           
 
Fields inherited from class edu.ksu.cis.cadena.core.adapter.scenario.AbstractInstanceAdapter
MAX_MULTIPLEXITY_ERROR, MIN_MULTIPLEXITY_ERROR, REUSED_NAME_ERROR
 
Fields inherited from class edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
REFERENCED_OBJECT_IN_TRASH_ERROR
 
Constructor Summary
ComponentInstanceAdapter()
           
 
Method Summary
 void checkNode(EObject node)
           Do all checks applicable to a ComponentInstance.
 void checkType(ComponentInstance component)
          Checks the validity of the specified type of a component instance.
 void forwardReferenceChanged(Notification notification, EObject notifyingObject, EStructuralFeature notifyingObjectFeature)
           
 void notifyChanged(Notification notification)
          Handle an update to some ComponentInstance.
 
Methods inherited from class edu.ksu.cis.cadena.core.adapter.scenario.AbstractInstanceAdapter
checkPortMultiplexities
 
Methods inherited from class edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
addAffectedReferrers, addNotificationValues, getAffectedValues, getTarget, isAdapterForType, setMarkers, setTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIMPORTED_MODULE_ERROR

public static final java.lang.String UNIMPORTED_MODULE_ERROR

UNSPECIFIED_TYPE_ERROR

public static final java.lang.String UNSPECIFIED_TYPE_ERROR

UNRESOLVED_TYPE_ERROR

public static final java.lang.String UNRESOLVED_TYPE_ERROR

DELETED_TYPE_ERROR

public static final java.lang.String DELETED_TYPE_ERROR
Constructor Detail

ComponentInstanceAdapter

public ComponentInstanceAdapter()
Method Detail

checkNode

public void checkNode(EObject node)

Do all checks applicable to a ComponentInstance. Specifically, the following are called:

Specified by:
checkNode in interface CadenaAdapter
Overrides:
checkNode in class AbstractInstanceAdapter
Parameters:
node - The current node being checked.

forwardReferenceChanged

public void forwardReferenceChanged(Notification notification,
                                    EObject notifyingObject,
                                    EStructuralFeature notifyingObjectFeature)
Specified by:
forwardReferenceChanged in interface CadenaAdapter
Specified by:
forwardReferenceChanged in class BaseCadenaAdapter

notifyChanged

public void notifyChanged(Notification notification)
Handle an update to some ComponentInstance. Various checkXXX() methods will be triggered as structural features are altered.

Overrides:
notifyChanged in class BaseCadenaAdapter

checkType

public void checkType(ComponentInstance component)
Checks the validity of the specified type of a component instance. The following checks are performed:

Parameters:
component - the component instance to check