Examples of StateMachine


Examples of com.crawljax.core.state.StateMachine

    CrawlSession sess = context.getSession();
    if (crawlpath != null) {
      sess.addCrawlPath(crawlpath);
    }
    stateMachine =
            new StateMachine(graphProvider.get(),
                    crawlRules.getInvariants(), plugins, stateComparator);
    context.setStateMachine(stateMachine);
    crawlpath = new CrawlPath();
    browser.goToUrl(url);
    plugins.runOnUrlLoadPlugins(context);
View Full Code Here

Examples of com.crawljax.core.state.StateMachine

    CrawlSession sess = context.getSession();
    if (crawlpath != null) {
      sess.addCrawlPath(crawlpath);
    }
    stateMachine =
            new StateMachine(graphProvider.get(),
                    crawlRules.getInvariants(), plugins, stateComparator);
    context.setStateMachine(stateMachine);
    crawlpath = new CrawlPath();
    context.setCrawlPath(crawlpath);
    browser.goToUrl(url);
View Full Code Here

Examples of com.crawljax.core.state.StateMachine

    CrawlSession sess = context.getSession();
    if (crawlpath != null) {
      sess.addCrawlPath(crawlpath);
    }
    stateMachine =
            new StateMachine(graphProvider.get(),
                    crawlRules.getInvariants(), plugins, stateComparator);
    context.setStateMachine(stateMachine);
    crawlpath = new CrawlPath();
    browser.goToUrl(url);
    plugins.runOnUrlLoadPlugins(context);
View Full Code Here

Examples of com.linkedin.databus2.ggParser.XmlStateMachine.StateMachine

                   ReplicationBitSetterStaticConfig replicationBitConfig,
                   InputStream inputStream)
  {
    _xmlStreamReader = xmlStreamReader;
    _schemaRegistryService = schemaRegistry;
    _stateMachine = new StateMachine(schemaRegistry, tableMap, tableToSourceId, _transactionSuccessCallBack,errorOnMissingFields,replicationBitConfig);
    _shutdownRequested.set(false);
    //The reference to the inputstream is passed just for closing the stream on shutdown.`
    _inputStream = inputStream;
  }
View Full Code Here

Examples of de.nameless.gameEngine.util.StateMachine.StateMachine

    this.setupStatMachines();
  }
 
  private void setupStatMachines(){
   
    MoveAttackSM = new StateMachine();
   
    selectUnitAction = new Action("selectUnitAction");   
    deSelectUnitAction = new Action("deSelectUnitAction");   
    moveUnitAction = new Action("moveUnitAction");   
    attackUnitAction = new Action("attackUnitAction");   
View Full Code Here

Examples of dk.brics.jwig.analysis.graph.StateMachine

        this.fullStateMachine = fullStateMachine;
    }

    @Override
    public SiteMap construct() {
        StateMachine stateMachine = removeLambdaAndFilterTransitions(fullStateMachine);
        Set<State> seen = new HashSet<State>();
        LinkedList<State> worklist = new LinkedList<State>();
        SiteMap map = new SiteMap();
        for (WebMethodState initialState : stateMachine.getInitialStates()) {
            worklist.add(initialState);
            map.addPage(SiteMapper.makePage(initialState.getMethod()));
            seen.add(initialState);
        }
        while (!worklist.isEmpty()) {
View Full Code Here

Examples of net.azib.ipscan.core.state.StateMachine

    scanningResults.initNewScan(mockFeeder("someFeeder"));
  }
 
  @Test
  public void testConstructor() throws Exception {
    StateMachine stateMachine = new StateMachine(){};
    scanningResults = new ScanningResultList(fetcherRegistry, stateMachine);
    scanningResults.initNewScan(mockFeeder("inff"));
    assertFalse(scanningResults.getScanInfo().isCompletedNormally());
    stateMachine.transitionToNext();
    stateMachine.startScanning();
    stateMachine.stop();
    stateMachine.complete();
    assertTrue(scanningResults.getScanInfo().isCompletedNormally());
  }
View Full Code Here

Examples of org.apache.mina.statemachine.StateMachine

public class Main {
    /** Choose your favorite port number. */
    private static final int PORT = 12345;
   
    private static IoHandler createIoHandler() {
        StateMachine sm = StateMachineFactory.getInstance(
                IoHandlerTransition.class).create(TapeDeckServer.EMPTY,
                new TapeDeckServer());

        return new StateMachineProxyBuilder().setStateContextLookup(
                new IoSessionStateContextLookup(new StateContextFactory() {
View Full Code Here

Examples of org.apache.mina.statemachine.StateMachine

                    }
                })).create(IoHandler.class, sm);
    }
   
    private static IoFilter createAuthenticationIoFilter() {
        StateMachine sm = StateMachineFactory.getInstance(
                IoFilterTransition.class).create(AuthenticationHandler.START,
                new AuthenticationHandler());

        return new StateMachineProxyBuilder().setStateContextLookup(
                new IoSessionStateContextLookup(new StateContextFactory() {
View Full Code Here

Examples of org.apache.mina.statemachine.StateMachine

        fooOrBarInCOrFooInD = States.class.getDeclaredMethod("fooOrBarInCOrFooInD", new Class[0]);
    }

    public void testCreate() throws Exception {
        States states = new States();
        StateMachine sm = StateMachineFactory.getInstance(Transition.class).create(States.A, states);

        State a = sm.getState(States.A);
        State b = sm.getState(States.B);
        State c = sm.getState(States.C);
        State d = sm.getState(States.D);

        assertEquals(States.A, a.getId());
        assertNull(a.getParent());
        assertEquals(States.B, b.getId());
        assertSame(a, b.getParent());
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.