class Sensor { float x, y; void set(float x, float y) { this.x = x; this.y = y; } float getX() { return x; } float getY() { return y; } boolean receive(Signal signal) { return (signal.range.contains(x, y)); } void display() { noStroke(); fill(50, 50, 200); ellipse(x, y, 3, 3); } }