Package rinde.sim.event

Examples of rinde.sim.event.ListenerEventHistory.clear()


    // nothing should happen
    fsm.handle(CONTEXT);
    assertEquals(startState, fsm.getCurrentState());

    // should go to SPECIAL and back to STARTED immediately
    history.clear();
    fsm.handle(Events.SPEZIAL, SPECIAL_CONTEXT);
    assertEquals(startState, fsm.getCurrentState());
    assertEquals(2, history.getHistory().size());
    assertTrue(((StateTransitionEvent) history.getHistory().get(0))
        .equalTo(startState, Events.SPEZIAL, specialState));
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.