Rev | Line | |
---|
[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.vehicular.routePlan.selfRouted; |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | import java.io.Serializable; |
---|
| 11 | |
---|
| 12 | import vnsim.vehicular.routePlan.selfRouted.MajorRoadArea; |
---|
| 13 | public class AreaCode implements Serializable { |
---|
| 14 | |
---|
| 15 | /** <code>serialVersionUID</code> */ |
---|
| 16 | private static final long serialVersionUID = -5883719321862303634L; |
---|
| 17 | |
---|
| 18 | public byte[] code; |
---|
| 19 | |
---|
| 20 | public MajorRoadArea belongingTo; |
---|
| 21 | |
---|
| 22 | public AreaCode(int i) { |
---|
| 23 | code = new byte[i]; |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | public String areaCodeToString() { |
---|
| 27 | String rez = new String(); |
---|
| 28 | for (int i = 0; i < code.length; i++) { |
---|
| 29 | rez = rez + code[i] + " "; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | return rez; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.