[31] | 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.applications.vitp.predefinedqueries; |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | import java.util.*; |
---|
| 10 | |
---|
| 11 | import vnsim.applications.vitp.utils.*; |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | public class PredefinedQueries { |
---|
| 15 | |
---|
| 16 | public static HashMap<Integer, Query> queries |
---|
| 17 | = new HashMap<Integer, Query> (); |
---|
| 18 | |
---|
| 19 | // public static VITPRequest req=new VITPRequest((short)5, (short)6100, (short)6000, (short)0, (short)0, (short) 0, new Date(), new Date(), "none", |
---|
| 20 | // -1, "A Query", "GET", "/vehicle/traffic?[cnt=5&tout=3000msec]"); |
---|
| 21 | |
---|
| 22 | public static VITPRequest req=new VITPRequest((short)13, (short)0, (short)100, (short)0, (short)0, (short) 0, new Date(), new Date(), "none", |
---|
| 23 | -1, "INFO", "POST", ""); |
---|
| 24 | |
---|
| 25 | static { |
---|
| 26 | queries.put(7000, new QueryByVehicleId(req, 0)); |
---|
| 27 | |
---|
| 28 | // for(int i=0;i<200;i++) { |
---|
| 29 | // queries.put(40000+(i*1000), new Query(req, i)); |
---|
| 30 | // } |
---|
| 31 | } |
---|
| 32 | } |
---|