OutlineElement[] children= arch.getChildren();
//return all the instantiations
for(int i=0; i< children.length;i++){
if (children[i] instanceof EntityInstElement) {
//do not add recursive children
EntityInstElement e = (EntityInstElement)children[i];
if(e.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase())==false){
childInstantiations.add(e);
}
}
if (children[i] instanceof ComponentInstElement) {
//do not add recursive children
ComponentInstElement comp = (ComponentInstElement)children[i];
if(comp.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase())==false){
childInstantiations.add(comp);
}
}
}
return (Object[]) childInstantiations.toArray();
}
//child instantiation
else if (parentElement instanceof EntityInstElement) {
EntityInstElement entityInst = (EntityInstElement) parentElement;
String entityName= entityInst.GetEntityName().toUpperCase();
//list of architectures for this entity
return (Object[])m_EntityArchList.get(entityName).toArray();
}
else if (parentElement instanceof ComponentInstElement) {
ComponentInstElement compInst = (ComponentInstElement) parentElement;