/************************************************************************************ * Copyright (C) 2008 by Politehnica University of Bucharest and Rutgers University * All rights reserved. * Refer to LICENSE for terms and conditions of use. ***********************************************************************************/ package vnsim.vehicular.scenarios; import java.util.Vector; import vnsim.vehicular.simulator.Location; public class EntryScenario implements java.io.Serializable { /** serialVersionUID */ private static final long serialVersionUID = -5883719321862303634L; public Location entry; public int flow; // vehicles/hour public Vector percentsDriverTypes; public Vector entryExits; public EntryScenario(Location entry) { this.entry = entry; this.flow = 0; this.percentsDriverTypes=new Vector(); this.entryExits=new Vector(); } public boolean equals(EntryScenario es) { if (entry.equals(es.entry)) { return true; } else { return false; } } public EntryExitScenario getEntryExitScenarioForExit(Location l){ EntryExitScenario exs=null; for(int i=0;i