Package mephi.cybernetics.dhcn.common.solver

Examples of mephi.cybernetics.dhcn.common.solver.DataTaskSolver


                    result.setNodeId(this.id);
                    writeResult(result);
                }
                if ( DataTaskSolver.class.isAssignableFrom(resultSolve.getClass()))
                {
                     DataTaskSolver tasks = (DataTaskSolver)resultSolve;
                     DataTask task = (DataTask)data;
                     createPoll(tasks.countTasks(), task.getTaskId(), task.getNodeId(), task.getNumOfMessage(), tasks.getListTask());
                }
            }
        }
    }
View Full Code Here


    {
        System.out.println("SolverDataVectorMultNum");
        DataVectorMultNumTask currentTask = (DataVectorMultNumTask) task;
        Vector vector = currentTask.getVector();
        Double num = currentTask.getNum();
        DataTaskSolver tasks = new DataTaskSolver();
        for (int i = 0; i < vector.getCountElem(); i++)
        {
           DataNumMultNumTask newTask = new DataNumMultNumTask(vector.getVectorElem(i), num, -1, i, Config.NODE_SOLVER);
           tasks.addTask(newTask);
        }
        return tasks;
    }
View Full Code Here

    @Override
    public IResultSolver execute(DataTask task)
    {
        System.out.println("SolverDataMatrixMultNum");
        DataMatrixMultNumTask currentTask = (DataMatrixMultNumTask) task;
        DataTaskSolver tasks = new DataTaskSolver();
        Matrix matrix = currentTask.getMatrix();
        Double num    = currentTask.getNum();
        for(int i = 0; i < matrix.getCountVector(); i++)
        {
            DataVectorMultNumTask newTask = new DataVectorMultNumTask(matrix.getMatrixVector(i), num, -1, i, Config.NODE_SOLVER);
            tasks.addTask(newTask);
        }
        return tasks;
    }
View Full Code Here

TOP

Related Classes of mephi.cybernetics.dhcn.common.solver.DataTaskSolver

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.