source: proiecte/SIMEO/SimeoDemo/Sensor.java @ 168

Last change on this file since 168 was 168, checked in by (none), 14 years ago

Simeo: added initial proof of concept code.

File size: 978 bytes
Line 
1public class Sensor {
2       
3        private float angle, targetAngle, minAngle, maxAngle, force;
4        private boolean changed;
5        private int type;
6
7        public Sensor(float angle, float minAngle, float maxAngle, int type) {
8                this.angle = this.targetAngle = angle;
9                this.force = 0;
10                this.minAngle = minAngle;
11                this.maxAngle = maxAngle;
12                this.type = type;
13        }
14
15        public int getType() {
16                return this.type;
17        }
18        public float getAngle() {
19                return this.angle;
20        }
21        public float getTargetAngle() {
22                return this.targetAngle;
23        }
24        public float getMinAngle() {
25                return this.minAngle;
26        }
27        public float getMaxAngle() {
28                return this.maxAngle;
29        }
30        public float getForce() {
31                return this.force;
32        }
33        public void setAngle(float angle) {
34                this.angle = angle;
35        }
36        public void setTargetAngle(float targetAngle, float force) {
37                this.targetAngle = targetAngle;
38                this.force = force;
39        }
40        public boolean getChanged() {
41                return changed;
42        }
43        public void setChanged(boolean changed) {
44                this.changed = changed;
45        }
46}
Note: See TracBrowser for help on using the repository browser.