edu.ksu.cis.cadena.core.adapter.scenario
Class ScenarioInstanceAdapter
java.lang.Object
edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
edu.ksu.cis.cadena.core.adapter.scenario.AbstractInstanceAdapter
edu.ksu.cis.cadena.core.adapter.scenario.ScenarioInstanceAdapter
- All Implemented Interfaces:
- CadenaAdapter
public class ScenarioInstanceAdapter
- extends AbstractInstanceAdapter
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ScenarioInstanceAdapter
public ScenarioInstanceAdapter()
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:
- checks that the specified sub scenario is not null
- checks that the specified sub scenario is resolved
- checks that the specified sub scenario's style is compatible with
the containing scenario's style
- 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 -