01: /**
02: * Copyright (C) 2001-2004 France Telecom R&D
03: */package org.objectweb.speedo.pobjects.intelli;
04:
05: import java.util.ArrayList;
06: import java.util.Collection;
07:
08: /**
09: *
10: *
11: * @author chassase
12: */
13: public class Sensor {
14: int sensorid;
15: Collection states;
16: Area area;
17:
18: /**
19: * @param sensorid
20: */
21: public Sensor(int sensorid) {
22: this .sensorid = sensorid;
23: this .states = new ArrayList();
24: }
25:
26: /**
27: * @return Returns the area.
28: */
29: public Area getArea() {
30: return area;
31: }
32:
33: /**
34: * @param area The area to set.
35: */
36: public void setArea(Area area) {
37: this .area = area;
38: }
39:
40: /**
41: * @return Returns the sensorid.
42: */
43: public int getSensorid() {
44: return sensorid;
45: }
46:
47: /**
48: * @return Returns the states.
49: */
50: public Collection getStates() {
51: return states;
52: }
53: }
|