private void validateComposite(Integer index) { ents.add(library.getCompositePhysicalEntity(index)); for (Integer i : library.getCompositeEntityIndicies(index)) { if (library.getSemSimType(i) == SemSimTypes.CUSTOM_PHYSICAL_ENTITY) { ents.add(library.getCustomPhysicalEntity(i)); } else { ents.add(library.getReferencePhysicalEntity(i)); } } }
private void validate() { for (Integer index : drawer.getAllAssociatedComposites()) { SemSimTypes type = library.getSemSimType(index); if (type == SemSimTypes.COMPOSITE_PHYSICAL_ENTITY) { validateComposite(index); } else { validateProcess(index); } } }
private void validateProcess(Integer index) { procs.add(library.getPhysicalProcess(index)); for (Integer i : library.getAllProcessParticipantIndicies(index)) { validateComposite(i); } }