01: package eg.net;
02:
03: // Copyright (c) 2002 Cunningham & Cunningham, Inc.
04: // Released under the terms of the GNU General Public License version 2 or later.
05:
06: import fit.Fixture;
07:
08: public class Simulator extends Fixture {
09: int zip[];
10: GeoCoordinate coord;
11: int nodes = 0;
12:
13: public void newCity() {
14: }
15:
16: public void ok() {
17: nodes++;
18: }
19:
20: public void cancel() {
21: }
22:
23: public void name(String n) {
24: }
25:
26: public void zip(int[] z) {
27: zip = z;
28: }
29:
30: public int[] zip() {
31: return zip;
32: }
33:
34: public void population(Float p) {
35: }
36:
37: public void coord(GeoCoordinate c) {
38: coord = c;
39: }
40:
41: public GeoCoordinate coord() {
42: return coord;
43: }
44:
45: public int nodes() {
46: return nodes;
47: }
48:
49: public Object parse(String string, Class type) throws Exception {
50: if (type.equals(GeoCoordinate.class)) {
51: return GeoCoordinate.parse(string);
52: }
53: return super.parse(string, type);
54: }
55:
56: }
|