Package cz.matfyz.aai.fantom.message.MessageMoveBase

Examples of cz.matfyz.aai.fantom.message.MessageMoveBase.ActorMove.serialize()


   
    TransportType bus = g.getTransportType("bus");
    assertNotNull(bus);
   
    ActorMove move = new ActorMove(fantomas, nd1, null);
    Properties record = move.serialize();
   
    assertNotNull(record);
    assertEquals(2, record.size());
    assertTrue(record.containsKey(MessageMoveBase.PROPERTY_ACTOR));
    assertEquals("Fantomas", record.getProperty(MessageMoveBase.PROPERTY_ACTOR));
View Full Code Here


    assertEquals("Fantomas", record.getProperty(MessageMoveBase.PROPERTY_ACTOR));
    assertTrue(record.containsKey(MessageMoveBase.PROPERTY_TO_NODE));
    assertEquals("1", record.getProperty(MessageMoveBase.PROPERTY_TO_NODE));
   
    move = new ActorMove(fantomas, null, bus);
    record = move.serialize();
   
    assertNotNull(record);
    assertEquals(2, record.size());
    assertTrue(record.containsKey(MessageMoveBase.PROPERTY_ACTOR));
    assertEquals("Fantomas", record.getProperty(MessageMoveBase.PROPERTY_ACTOR));
View Full Code Here

    assertEquals("Fantomas", record.getProperty(MessageMoveBase.PROPERTY_ACTOR));
    assertTrue(record.containsKey(MessageMoveBase.PROPERTY_TRANSPORT_TYPE));
    assertEquals("bus", record.getProperty(MessageMoveBase.PROPERTY_TRANSPORT_TYPE));
   
    move = new ActorMove(fantomas, nd1, bus);
    record = move.serialize();
   
    assertNotNull(record);
    assertEquals(3, record.size());
    assertTrue(record.containsKey(MessageMoveBase.PROPERTY_ACTOR));
    assertEquals("Fantomas", record.getProperty(MessageMoveBase.PROPERTY_ACTOR));
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.