Package mephi.cybernetics.dhcn.common.solver

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


        {
            IMessage message = (IMessage)sender.readData();
            if ( IData.class.isAssignableFrom(message.getClass()))
            {
                IData data = (IData)message;
                IResultSolver resultSolve = this.solvers.solve(data);
                if ( DataResultSolver.class.isAssignableFrom(resultSolve.getClass()))
                {
                    DataResult result = ((DataResultSolver)resultSolve).getResult();
                    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

TOP

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

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.