Examples of SRApp


Examples of org.speakright.core.flows.SRApp

    ChkTrail(run, "PromptFlow;QuestionFlow;ConfYNFlow");
  }
 
  TrailWrapper createApp()
  {
        SRApp flow = new SRApp();
        flow.add(new PromptFlow("hey"));
        QuestionFlow quest = new QuestionFlow("abc.grxml", "What size?");
        YesNoConfirmerFlow confirmer = new YesNoConfirmerFlow("yn.grxml");
        confirmer.setName("ConfYNFlow");
        ConfirmationWrapper cw = new ConfirmationWrapper(quest, confirmer);
        flow.add(cw);
    TrailWrapper wrap1 = new TrailWrapper(flow);
    return wrap1;   
  }
View Full Code Here

Examples of org.speakright.core.flows.SRApp

        return flow;
  }
  public static SRApp createAppWithModelItems(boolean addConfirmer)
  {
        SRApp flow = new SRApp();

        ArrayList<IModelItem> L = new ArrayList<IModelItem>();
        L.add(new MyFlightItem("austin", 415));
//        SROListNavigator qflow = new SROListNavigator("flights", L, 0);
        SROListNavigator qflow = new SROListNavigator("flights", L, 0);
        m_sroListNav = qflow;
        qflow.setName("Lister");
        qflow.setModelVar("city");
        if (addConfirmer) {
          qflow.setConfirmer(new SROConfirmYesNo("wine"));
        }
    flow.add(qflow);

        return flow;
  }
View Full Code Here

Examples of org.speakright.core.flows.SRApp

    ChkTrail(run, "PromptFlow;QuestionFlow");
  }
 
  @Test public void confirmModel()
  {
        SRApp flow = new SRApp();
        flow.add(new PromptFlow("hey"));
        AskCityFlow quest = new AskCityFlow();
        YesNoConfirmerFlow confirmer = new YesNoConfirmerFlow("yn.grxml");
        confirmer.setName("ConfYNFlow");
        ConfirmationWrapper cw = new ConfirmationWrapper(quest, confirmer);
        flow.add(cw);
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = StartIt(wrap1);
    Proceed(run, "");
    Proceed(run, "austin", "slot1", 41); //quest
View Full Code Here

Examples of org.speakright.core.flows.SRApp

        return flow;
  }
  public static SRApp createAppWithEmptyList()
  {
        SRApp flow = new SRApp();

        ArrayList<String> L = new ArrayList<String>();
        SROListNavigator qflow = new SROListNavigator("flights", L);
        m_sroListNav = qflow;
        qflow.setName("Lister");
        qflow.setModelVar("city");
        qflow.addCommand("cancel", new SROCancelCommand());
       
    flow.add(qflow);
        return flow;
  }
View Full Code Here

Examples of org.speakright.core.flows.SRApp

public class TestChoice extends BaseTest {

  @Test public void test1()
  {
        SRApp flow = createApp();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = StartIt(wrap1);
    ChkPage(PromptType.MAIN1, "What color would you like?");
    ChkPage(PromptType.SILENCE1, "I'm sorry I didn't hear anything. You can say a color such as red or blue  What color would you like?");
View Full Code Here

Examples of org.speakright.core.flows.SRApp

  }
 
  static SROChoice m_sroChoice;
  public static SRApp createApp(boolean addConfirmer)
  {
        SRApp flow = new SRApp();

        ArrayList<String> L = new ArrayList<String>();
        L.add("red");
        L.add("blue");
        L.add("green");
        SROChoice sro = new SROChoice("color", L);
        m_sroChoice = sro;
        sro.setSampleValue1("red");
        sro.setSampleValue2("blue");
       
        sro.setModelVar("city");
        if (addConfirmer) {
//          qflow.setConfirmer(new ConfYNFlow());
          sro.setConfirmer(new SROConfirmYesNo("wine"));
        }
    flow.add(sro);

    flow.addPromptFlow("You said {$INPUT}");
        return flow;
  }
View Full Code Here

Examples of org.speakright.core.flows.SRApp

*/
public class TestDigitString extends BaseTest {

  @Test public void test1()
  {
        SRApp flow = createApp();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = StartIt(wrap1);
    ChkPage(PromptType.MAIN1, "Please enter a 4 digit login");
    ChkGrammar(GrammarType.VOICE, "builtin:digits?length=4");
View Full Code Here

Examples of org.speakright.core.flows.SRApp

  }
 
  static SRODigitString m_sroListNav;
  public static SRApp createApp(boolean addConfirmer)
  {
        SRApp flow = new SRApp();

        SRODigitString qflow = new SRODigitString("login", 4);
        m_sroListNav = qflow;
        qflow.setName("Login");
        qflow.setModelVar("city");
//        qflow.addCommand("cancel", new SROCancelCommand());
       
    flow.add(qflow);

        return flow;
  }
View Full Code Here

Examples of org.speakright.core.flows.SRApp

public class TestTransferCall extends BaseTest {

  @Test public void test1()
  {
        SRApp flow = createApp();
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = StartIt(wrap1);
    ChkPage(PromptType.MAIN1, "aaa");
    this.log("zzzzzzzzzz");
View Full Code Here

Examples of org.speakright.core.flows.SRApp

  }
 
  static SROTransferCall m_sroXfer;
  public static SRApp createApp(boolean addConfirmer)
  {
        SRApp flow = new SRApp();

        flow.add(new PromptFlow("aaa"));
        m_sroXfer = new SROTransferCall("333");
    flow.add(m_sroXfer);

    flow.add(new PromptFlow("bbb"));
        return flow;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.