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 | ***********************************************************************************/ |
---|
6 | package vnsim.network.dsrc; |
---|
7 | |
---|
8 | import vnsim.applications.trafficview.SimulatedCarInfo; |
---|
9 | import vnsim.map.object.Globals; |
---|
10 | import vnsim.vehicular.simulator.CarInstance; |
---|
11 | |
---|
12 | public 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.