Package eu.admire.dispel.graph

Examples of eu.admire.dispel.graph.RequestNode


                LiteralValuesNode literal = (LiteralValuesNode)node;
                List<Object> values = literal.getValues();
                Connection output = literal.getOutput();
                for (RequestNodeInput target : output.getTargets())
                {
                    RequestNode targetNode = target.getRequestNode();
                    if (targetNode instanceof ProcessingElementNode)
                    {
                        ProcessingElementNode peNode = (ProcessingElementNode)targetNode;
                        String dataSourceName = (String)peNode.getAnnotation(AnnotationKeys.DATA_SOURCE_ANCHOR);
                        if (dataSourceName != null)
View Full Code Here


   
    protected Exchange insertExchange(
            Connection connection,
            RequestNodeInput targetInput) throws ExchangeException
    {
        RequestNode source = connection.getSource();
        Location sourceLocation = (Location)source.getAnnotation(AnnotationKeys.LOCATION);
        PipelineWorkflow sourcePipeline = mWorkflows.get(sourceLocation);
        ProcessingElement sourcePE = mPEs.get(source);

        RequestNode target = targetInput.getRequestNode();
        Location targetLocation = (Location)target.getAnnotation(AnnotationKeys.LOCATION);
        PipelineWorkflow targetPipeline = mWorkflows.get(targetLocation);
        ProcessingElement targetPE = mPEs.get(target);

        Exchange exchange = mResultsFactory.createAndInsertExchange(
                connection, targetInput,
View Full Code Here

        {
            somethingChanged = false;
           
            // If we have an annotation we have not visited then propagate
            // from it.
            RequestNode node = findNonVisitedAnnotatedNode(graph);
           
            if (node != null)
            {
                String executionEngine =
                    (String) node.getAnnotation(AnnotationKeys.EXECUTION_ENGINE);
                visit(node, executionEngine);
                somethingChanged = true;
            }
            else
            {
View Full Code Here

     * @return the non-visited PE with the smallest set of candidate execution engines.
     */
    private RequestNode findPEWithFewestCandidates(Graph graph)
    {
        int fewestChoices = 10000;
        RequestNode nodeWithFewestChoices = null;
       
        for (RequestNode node : graph.getNodes())
        {
            if (node.isProcessingElement())
            {
View Full Code Here

            PipelineWorkflow sourcePipeline,
            ProcessingElement sourcePE)
        throws ExchangeException
    {
        OGSADAIDataSourceExchange ds = (OGSADAIDataSourceExchange)exchange;
        RequestNode source = connection.getSource();
        Location sourceLocation = (Location)source.getAnnotation(AnnotationKeys.LOCATION);
        ds.setService(sourceLocation);
        Serialiser serialiser = new GenericSerialiser();
        ds.setSerialiser(serialiser);
        TraversableSingleActivityOutput serOut = serialiser.applySerialiser(
                sourcePipeline,
View Full Code Here

            ProcessingElement targetPE)
        throws ExchangeException
    {
        OGSADAIDataSourceExchange ds = (OGSADAIDataSourceExchange)exchange;
        Serialiser serialiser = new GenericSerialiser();
        RequestNode source = connection.getSource();
        TraversableSingleActivityOutput output =
            mConfigure.addActivity(source, ds, targetPipeline);
           
        ProcessingElement obtain =
            new ProcessingElement(ObtainFromDataSource.DEFAULT_ACTIVITY_NAME);
View Full Code Here

TOP

Related Classes of eu.admire.dispel.graph.RequestNode

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.