Examples of AbstractFamixEntity


Examples of org.evolizer.famix.model.entities.AbstractFamixEntity

     * @param node The node to configure.
     */
    private void configureNode(Node node) {
        Graph2D graph = (Graph2D) node.getGraph();
        DependencyGraph rootGraph = (DependencyGraph) graph.getHierarchyManager().getRootGraph();
        AbstractFamixEntity entity = rootGraph.getFamixEntity(node);

        NodeRealizer nr = graph.getRealizer(node);
        NodeRealizer newNodeRealizer = null;
        if (nr instanceof GroupNodeRealizer) {
            newNodeRealizer = new FamixGroupNodeRealizer(nr);
View Full Code Here

Examples of org.evolizer.famix.model.entities.AbstractFamixEntity

     * @return FAMIX entities to remove from the graph.
     */
    protected List<AbstractFamixEntity> getEntitiesToRemove() {
        Set<AbstractFamixEntity> remainingEntities = new HashSet<AbstractFamixEntity>();

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(getSelectedNode());

        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);
        remainingEntities.addAll(descendants);

        List<AbstractFamixEntity> dependentEntities = getDependentEntities();
View Full Code Here

Examples of org.evolizer.famix.model.entities.AbstractFamixEntity

     * Determine child entities with no dependency to an outside entity.
     *
     * @return the entities to remove
     */
    protected Set<AbstractFamixEntity> getEntitiesToRemove() {
        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(fSelectedNode);

        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);
        descendants.remove(entity);

        List<FamixAssociation> associationsToOtherEntities = getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, null, "from");
        associationsToOtherEntities.addAll(getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, null, "to"));

        Set<AbstractFamixEntity> entitiesToRemove = new HashSet<AbstractFamixEntity>(descendants);
        for (FamixAssociation association : associationsToOtherEntities) {
            Edge edge = getGraphLoader().getGraph().getEdge(association);
            if (edge != null) {
                AbstractFamixEntity from = association.getFrom();
                AbstractFamixEntity to = association.getTo();
                if (descendants.contains(from) && getGraphLoader().getGraph().contains(to)) {
                    entitiesToRemove.remove(from);
                    entitiesToRemove.removeAll(getGraphLoader().getSnapshotAnalyzer().getParentEntities(from));
                } else if (descendants.contains(to) && getGraphLoader().getGraph().contains(from)) {
                    entitiesToRemove.remove(to);
View Full Code Here

Examples of org.evolizer.famix.model.entities.AbstractFamixEntity

     * @return the associations to remove
     */
    protected Set<FamixAssociation> getAssociationsToRemove() {
        Set<FamixAssociation> associationsToRemove = new HashSet<FamixAssociation>();

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(fSelectedNode);

        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);
        associationsToRemove.addAll(getGraphLoader().getSnapshotAnalyzer().queryAssociationsBetweenEntities(descendants, null));

        return associationsToRemove;
View Full Code Here

Examples of org.evolizer.famix.model.entities.AbstractFamixEntity

     */
    @Override
    protected List<AbstractFamixEntity> getDependentEntities() {
        Set<AbstractFamixEntity> dependentEntities = new HashSet<AbstractFamixEntity>();

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(getSelectedNode());
        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);

        List<? extends FamixAssociation> associationsToOtherEntities = getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, getAssociationType(), "to");
        for (FamixAssociation association : associationsToOtherEntities) {
            Edge edge = getGraphLoader().getGraph().getEdge(association);
View Full Code Here

Examples of org.evolizer.famix.model.entities.AbstractFamixEntity

    /**
     * {@inheritDoc}
     */
    @Override
    protected List<FamixAssociation> getAdditionalAssoctionsToRmove() {
        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(getSelectedNode());
        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);
        List<FamixAssociation> associationsToOtherEntities = getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, null, "from");

        return associationsToOtherEntities;
    }
View Full Code Here

Examples of org.evolizer.famix.model.entities.AbstractFamixEntity

    @SuppressWarnings("unchecked")
    @Override
    protected List<AbstractFamixEntity> getDependentEntities() {
        Set<AbstractFamixEntity> dependentEntities = new HashSet<AbstractFamixEntity>();

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(getSelectedNode());
        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);

        List<FamixAssociation> associationsToOtherEntities = (List<FamixAssociation>) getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, getAssociationType(), "from");
        associationsToOtherEntities.addAll((List<FamixAssociation>) getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, getAssociationType(), "to"));
        for (FamixAssociation association : associationsToOtherEntities) {
            Edge edge = getGraphLoader().getGraph().getEdge(association);
            if (edge != null) {
                AbstractFamixEntity dependentEntity = null;
                if (descendants.contains(association.getFrom())) {
                    dependentEntity = association.getTo();
                } else {
                    dependentEntity = association.getFrom();
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.