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

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.ScenarioInstanceAdapter
All Implemented Interfaces:
CadenaAdapter

public class ScenarioInstanceAdapter
extends AbstractInstanceAdapter


Field Summary
static java.lang.String CIRCULAR_DEPENDENCY_ERROR
           
static java.lang.String SCENARIO_NOT_SPECIFIED_ERROR
           
static java.lang.String SCENARIO_UNRESOLVED_ERROR
           
static java.lang.String STYLE_MISMATCH_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
ScenarioInstanceAdapter()
           
 
Method Summary
 void checkCircularDependencies(ScenarioInstance scenarioInstance)
          Check to make sure a ScenaroInstance's sub scenario does not create a circular dependency
 void checkNode(EObject node)
          Called when a complete check of the model is performed.
 void checkSubScenarioStyle(ScenarioInstance scenarioInstance)
          Checks the validity of the specified sub scenario.
 void forwardReferenceChanged(Notification notification, EObject notifyingObject, EStructuralFeature notifyingObjectFeature)
           
 void notifyChanged(Notification notification)
           
 
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

STYLE_MISMATCH_ERROR

public static final java.lang.String STYLE_MISMATCH_ERROR

SCENARIO_NOT_SPECIFIED_ERROR

public static final java.lang.String SCENARIO_NOT_SPECIFIED_ERROR

SCENARIO_UNRESOLVED_ERROR

public static final java.lang.String SCENARIO_UNRESOLVED_ERROR

CIRCULAR_DEPENDENCY_ERROR

public static final java.lang.String CIRCULAR_DEPENDENCY_ERROR
Constructor Detail

ScenarioInstanceAdapter

public ScenarioInstanceAdapter()
Method Detail

checkNode

public void checkNode(EObject node)
Description copied from interface: CadenaAdapter
Called when a complete check of the model is performed. All checks that the adapter provides should be checked by this call.

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

notifyChanged

public void notifyChanged(Notification notification)
Overrides:
notifyChanged in class BaseCadenaAdapter

forwardReferenceChanged

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

checkSubScenarioStyle

public void checkSubScenarioStyle(ScenarioInstance scenarioInstance)
Checks the validity of the specified sub scenario. The following checks are performed:

Parameters:
scenarioInstance - the scenario instance to check

checkCircularDependencies

public void checkCircularDependencies(ScenarioInstance scenarioInstance)
Check to make sure a ScenaroInstance's sub scenario does not create a circular dependency

Parameters:
scenarioInstance -