source: proiecte/ptvs/src/vnsim/vehicular/routePlan/selfRouted/AreaCode.java @ 31

Last change on this file since 31 was 31, checked in by (none), 14 years ago
File size: 935 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.vehicular.routePlan.selfRouted;
7
8
9
10import java.io.Serializable;
11
12import vnsim.vehicular.routePlan.selfRouted.MajorRoadArea;
13public 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.