KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > intelli > Sensor


1 /**
2  * Copyright (C) 2001-2004 France Telecom R&D
3  */

4 package org.objectweb.speedo.pobjects.intelli;
5
6 import java.util.ArrayList JavaDoc;
7 import java.util.Collection JavaDoc;
8
9 /**
10  *
11  *
12  * @author chassase
13  */

14 public class Sensor {
15     int sensorid;
16     Collection JavaDoc states;
17     Area area;
18     
19     
20     
21     /**
22      * @param sensorid
23      */

24     public Sensor(int sensorid) {
25         this.sensorid = sensorid;
26         this.states = new ArrayList JavaDoc();
27     }
28     /**
29      * @return Returns the area.
30      */

31     public Area getArea() {
32         return area;
33     }
34     /**
35      * @param area The area to set.
36      */

37     public void setArea(Area area) {
38         this.area = area;
39     }
40     /**
41      * @return Returns the sensorid.
42      */

43     public int getSensorid() {
44         return sensorid;
45     }
46     /**
47      * @return Returns the states.
48      */

49     public Collection JavaDoc getStates() {
50         return states;
51     }
52 }
53
Popular Tags