|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.aadl.aadl2.properties.InstanceUtil
public class InstanceUtil
Nested Class Summary | |
---|---|
static class |
InstanceUtil.InstantiatedClassifier
|
Constructor Summary | |
---|---|
InstanceUtil()
|
Method Summary | |
---|---|
static ComponentClassifier |
getComponentClassifier(ComponentInstance ci,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the component classifier of a component instance. |
static ComponentImplementation |
getComponentImplementation(ComponentInstance ci,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the component implementation of a component instance. |
static ComponentType |
getComponentType(ComponentInstance ci,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the component type of a component instance. |
static InstanceUtil.InstantiatedClassifier |
getInstantiatedClassifier(InstanceObject iobj,
int index)
Get the component or feature group classifier that is instantiated by an instance object. |
static InstanceUtil.InstantiatedClassifier |
getInstantiatedClassifier(InstanceObject iobj,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the component or feature group classifier that is instantiated by an instance object. |
static ComponentReference |
resolveComponentPrototype(Prototype proto,
InstanceObject context,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Find the binding for a given component prototype. |
static FeatureGroupReference |
resolveFeatureGroupPrototype(Prototype proto,
InstanceObject context,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Find the binding for a given feature group prototype. |
static FeaturePrototypeActual |
resolveFeaturePrototype(Prototype proto,
InstanceObject context,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Find the binding for a given feature prototype. |
static PrototypeBinding |
resolvePrototype(Prototype proto,
InstanceObject context,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Find the binding for a given prototype. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceUtil()
Method Detail |
---|
public static ComponentType getComponentType(ComponentInstance ci, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
ci
- the component instanceindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be null
public static ComponentImplementation getComponentImplementation(ComponentInstance ci, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
ci
- the component instanceindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be null
public static ComponentClassifier getComponentClassifier(ComponentInstance ci, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
ci
- the component instanceindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be null
public static InstanceUtil.InstantiatedClassifier getInstantiatedClassifier(InstanceObject iobj, int index)
iobj
- the instance objectindex
- the index of the instance object in an array
public static InstanceUtil.InstantiatedClassifier getInstantiatedClassifier(InstanceObject iobj, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
iobj
- the instance objectindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be null
public static ComponentReference resolveComponentPrototype(Prototype proto, InstanceObject context, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
subcomponent instanceclassifierCache
- an optional cache of known instantiated
classifiers, may be null
public static FeatureGroupReference resolveFeatureGroupPrototype(Prototype proto, InstanceObject context, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
subcomponent instanceclassifierCache
- an optional cache of known instantiated
classifiers, may be null
public static FeaturePrototypeActual resolveFeaturePrototype(Prototype proto, InstanceObject context, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
subcomponent instanceclassifierCache
- an optional cache of known instantiated
classifiers, may be null
public static PrototypeBinding resolvePrototype(Prototype proto, InstanceObject context, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
subcomponent instanceclassifierCache
- an optional cache of known instantiated
classifiers, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |