Package org.impalaframework.graph

Examples of org.impalaframework.graph.Vertex


     */
    private List<Vertex> getVertexAndOrderedDependants(String name) {
       
        Assert.notNull(name, "name cannot be null");
       
        final Vertex current = getRequiredVertex(name);
       
        //get all dependents
        final List<Vertex> dependents = getVertexDependants(name);
        List<Vertex> ordered = getOrderedDependants(current, dependents);
        return ordered;
View Full Code Here


     */
    private List<Vertex> getVertexDependencyList(String name) {
       
        Assert.notNull(name, "name cannot be null");
       
        Vertex vertex = getRequiredVertex(name);
       
        //list the vertices in the correct order
        final List<Vertex> vertextList = GraphHelper.list(vertex);
        return vertextList;
    }
View Full Code Here

        Assert.notNull(definitions, "definitions cannot be null");
       
        List<Vertex> vertices = new ArrayList<Vertex>();
        for (ModuleDefinition moduleDefinition : definitions) {
            final Vertex vertex = getRequiredVertex(moduleDefinition.getName());
           
            vertices.add(vertex);
        }
        return vertices;
    }
View Full Code Here

    private Vertex populateVertex(ModuleDefinition moduleDefinition) {
       
        Assert.notNull(moduleDefinition, "moduleDefinition cannot be null");
       
        String name = moduleDefinition.getName();
        final Vertex vertex = new Vertex(moduleDefinition);
        vertexMap.put(name, vertex);
        return vertex;
    }
View Full Code Here

    private void populateDependencies(Vertex vertex, ModuleDefinition moduleDefinition, boolean optional) {
       
        final List<String> dependentModuleNames = moduleDefinition.getDependentModuleNames(optional);
        for (String dependent : dependentModuleNames) {
           
            final Vertex dependentVertex = vertexMap.get(dependent);
           
            if (dependentVertex == null) {
                if (!optional) {
                    throw new InvalidStateException("Unable to dependency named named '" + dependent
                            + "' for module definition '" + moduleDefinition.getName() + "'");
View Full Code Here

TOP

Related Classes of org.impalaframework.graph.Vertex

Copyright © 2018 www.massapicom. 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.