Package uk.ac.cranfield.thesis.client.service

Examples of uk.ac.cranfield.thesis.client.service.ParserServiceAsync


       
    }
   
    public void testMathExpressions()
    {
        final ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
        parserService.parseEquation("y'=sin(x)+cos(x)+exp(x)+log(x)+tan(x)+sqrt(x), y = 0",
                new AsyncCallback<Equation>()
                {
                   
                    @Override
                    public void onFailure(Throwable caught)
View Full Code Here


    }
   
    public void testWrongInitVariable()
    {
       
        final ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
        parserService.parseEquation("  y' = y +3, u =4", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onFailure(Throwable caught)
            {
View Full Code Here

    }
   
    public void testNoInitVariable()
    {
       
        final ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
        parserService.parseEquation("  y' = x + 4", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onFailure(Throwable caught)
            {
View Full Code Here

    }
   
    public void testNoODEWithInitVariable()
    {
       
        final ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
        parserService.parseEquation(" y = tre , y  = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onFailure(Throwable caught)
            {
View Full Code Here

    }
   
    public void testSystemOfODE()
    {
       
        final ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        List<String> systemInput = new ArrayList<String>(2);
        systemInput.add("y'= y + x, y = 0");
        systemInput.add("z'= z + y + x, z = 0");
       
        parserService.parseEquationsSystem(systemInput, new AsyncCallback<System>()
        {
           
            @Override
            public void onFailure(Throwable caught)
            {
View Full Code Here

        return "uk.ac.cranfield.thesis.ThesisModule";
    }
   
    public void testCorrectEquation1()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y' + x", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testCorrectEquation2()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y''' + x", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testCorrectEquation3()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y ' ' ' + x", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testCorrectEquation4()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y''' + y'' + y' + y + x = 5", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testNoODE()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y + x", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

TOP

Related Classes of uk.ac.cranfield.thesis.client.service.ParserServiceAsync

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.