source: proiecte/ptvs/src/vnsim/network/dsrc/EmergencyRequest.java @ 31

Last change on this file since 31 was 31, checked in by (none), 14 years ago
File size: 787 bytes
Line 
1/************************************************************************************
2 * Copyright (C) 2008 by Politehnica University of Bucharest and Rutgers University
3 * All rights reserved.
4 * Refer to LICENSE for terms and conditions of use.
5 ***********************************************************************************/
6package vnsim.network.dsrc;
7
8import vnsim.applications.trafficview.SimulatedCarInfo;
9import vnsim.map.object.Globals;
10import vnsim.vehicular.simulator.CarInstance;
11
12public class EmergencyRequest
13{
14        public static void generateEmergencyMessage(CarInstance car)
15        {
16                SimulatedCarInfo myCar = Globals.engine.getCarIdx(car.ID);
17               
18                if (myCar != null) 
19                {
20                        myCar.scheduleEmergencySendEvent(Globals.MESSAGE_PROCESSING_TIME);
21                }
22
23        }
24}
Note: See TracBrowser for help on using the repository browser.