Package com.wordpress.salaboy.model

Examples of com.wordpress.salaboy.model.Location


        assertEquals(0, persistenceService.getAllCalls().size());
        persistenceService.storeCall(call);
        assertEquals(1, persistenceService.getAllCalls().size());
        emergency = new Emergency();
        emergency.setCall(call);
        emergency.setLocation(new Location(1, 2));
        emergency.setType(Emergency.EmergencyType.HEART_ATTACK);
        emergency.setNroOfPeople(1);
        assertEquals(0, persistenceService.getAllEmergencies().size());
        persistenceService.storeEmergency(emergency);
        assertEquals(1, persistenceService.getAllEmergencies().size());
View Full Code Here


    // TODO for now, only for phone call form
    Map<String, Object> info = new HashMap<String, Object>();
    Emergency emergency = new Emergency();

    // persists the emergency
    Location location = new Location();
    location.setLocationX(Integer.parseInt(data.get("Location X")));
    location.setLocationY(Integer.parseInt(data.get("Location Y")));
    emergency.setLocation(location);
    if (data.get("Number Of People") != null) {
      emergency.setNroOfPeople(Integer.valueOf(Integer.parseInt(data
          .get("Number Of People"))));
    } else {
View Full Code Here

        call = new Call(1, 2, new Date());
        persistenceService.storeCall(call);

        emergency.setCall(call);
        emergency.setLocation(new Location(1, 2));
        emergency.setType(Emergency.EmergencyType.FIRE);
        emergency.setNroOfPeople(1);
        persistenceService.storeEmergency(emergency);
        firefightersDepartment = new FirefightersDepartment("Firefighter Department 1", 12, 1);
View Full Code Here

        call = new Call(1, 2, new Date());
        persistenceService.storeCall(call);
       
        emergency = new Emergency();
        emergency.setCall(call);
        emergency.setLocation(new Location(1, 2));
        emergency.setType(Emergency.EmergencyType.HEART_ATTACK);
        emergency.setNroOfPeople(1);

        persistenceService.storeEmergency(emergency);
      
View Full Code Here

        call = new Call(1, 2, new Date());
        persistenceService.storeCall(call);
       
        emergency = new Emergency();
        emergency.setCall(call);
        emergency.setLocation(new Location(1, 2));
        emergency.setType(Emergency.EmergencyType.HEART_ATTACK);
        emergency.setNroOfPeople(1);
        persistenceService.storeEmergency(emergency);
       
View Full Code Here

        //I shoudl call the tracking component here and register the new emerency
        Emergency emergency = new Emergency();
        // String emergencyId = ContextTrackingServiceImpl.getInstance().newEmergencyId();
        // emergency.setId(emergencyId);
        emergency.setCall(retrivedCall);
        emergency.setLocation(new Location(1, 2));
        emergency.setType(Emergency.EmergencyType.HEART_ATTACK);
        emergency.setNroOfPeople(1);


        Map<String, Object> info = new HashMap<String, Object>();
View Full Code Here

        call = new Call(1, 2, new Date());

        call.setId("Call1");
        emergency.setCall(call);
        emergency.setLocation(new Location(1, 2));
        emergency.setType(Emergency.EmergencyType.FIRE);
        emergency.setNroOfPeople(1);

        firefightersDepartment = new FirefightersDepartment(
                "Firefighter Department 1", 12, 1);
View Full Code Here

TOP

Related Classes of com.wordpress.salaboy.model.Location

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.