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

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

public abstract class AbstractInstanceAdapter
extends BaseCadenaAdapter


Field Summary
static java.lang.String MAX_MULTIPLEXITY_ERROR
           
static java.lang.String MIN_MULTIPLEXITY_ERROR
           
static java.lang.String REUSED_NAME_ERROR
           
 
Fields inherited from class edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
REFERENCED_OBJECT_IN_TRASH_ERROR
 
Constructor Summary
AbstractInstanceAdapter()
           
 
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 edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
addAffectedReferrers, addNotificationValues, forwardReferenceChanged, getAffectedValues, getTarget, isAdapterForType, notifyChanged, setMarkers, setTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractInstanceAdapter

public AbstractInstanceAdapter()
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 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:

Parameters:
instance - the instance to check