edu.ksu.cis.cadena.core.adapter.scenario
Class AbstractInstanceAdapter
java.lang.Object
edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
edu.ksu.cis.cadena.core.adapter.scenario.AbstractInstanceAdapter
- All Implemented Interfaces:
- CadenaAdapter
- Direct Known Subclasses:
- ComponentInstanceAdapter, ScenarioInstanceAdapter
public abstract class AbstractInstanceAdapter
- extends BaseCadenaAdapter
|
Method Summary |
void |
checkNode(EObject node)
Called when a complete check of the model is performed. |
void |
checkPortMultiplexities(Instance instance)
Checks the number of connections to a particular port of a particular
instance. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REUSED_NAME_ERROR
public static final java.lang.String REUSED_NAME_ERROR
MIN_MULTIPLEXITY_ERROR
public static final java.lang.String MIN_MULTIPLEXITY_ERROR
MAX_MULTIPLEXITY_ERROR
public static final java.lang.String MAX_MULTIPLEXITY_ERROR
AbstractInstanceAdapter
public AbstractInstanceAdapter()
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 BaseCadenaAdapter
- Parameters:
node - The current node being checked.
checkPortMultiplexities
public void checkPortMultiplexities(Instance instance)
- Checks the number of connections to a particular port of a particular
instance. The following checks are performed:
- Check that a port does not violate it's maximum multiplexity
constraint (i.e. connected to too many connections)
- Check that a port does not violate it's minimum multiplexity
constraint (i.e. connected to too few connections)
- Parameters:
instance - the instance to check